ydb-go-sdk move to v3

This commit is contained in:
Konstantin Lebedev
2022-05-02 02:07:47 +05:00
parent 21033ff4c3
commit 50c4f62ed4
10 changed files with 257 additions and 383 deletions

View File

@@ -32,4 +32,5 @@ import (
_ "github.com/chrislusf/seaweedfs/weed/filer/redis2"
_ "github.com/chrislusf/seaweedfs/weed/filer/redis3"
_ "github.com/chrislusf/seaweedfs/weed/filer/sqlite"
_ "github.com/chrislusf/seaweedfs/weed/filer/ydb"
)

View File

@@ -295,6 +295,17 @@ password=""
# skip tls cert validation
insecure_skip_verify = true
[ydb]
enabled = false
useBucketPrefix=true
dsn="grpc://localhost:2136?database=/local"
prefix="en"
poolSizeLimit=50
# Authenticate produced with one of next environment variables:
# YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS=<path/to/sa_key_file> — used service account key file by path
# YDB_ANONYMOUS_CREDENTIALS="1" — used for authenticate with anonymous access. Anonymous access needs for connect to testing YDB installation
# YDB_METADATA_CREDENTIALS="1" — used metadata service for authenticate to YDB from yandex cloud virtual machine or from yandex function
# YDB_ACCESS_TOKEN_CREDENTIALS=<access_token> — used for authenticate to YDB with short-life access token. For example, access token may be IAM token
##########################
##########################