helpers to connect to YDB inside yandex-cloud using metadata service
Currently package provides helpers to connect to YDB inside yandex-cloud.
import (
yc "github.com/ydb-platform/ydb-go-yc-metadata"
)
...
db, err := ydb.Open(
ctx,
os.Getenv("YDB_CONNECTION_STRING"),
yc.WithInternalCA(),
yc.WithCredentials(), // auth inside cloud (virtual machine or yandex function)
)