Home

Awesome

ydb-go-yc-metadata

helpers to connect to YDB inside yandex-cloud using metadata service

godoc

Overview <a name="Overview"></a>

Currently package provides helpers to connect to YDB inside yandex-cloud.

Usage <a name="Usage"></a>

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)
    )