/ydb-go-yc-metadata

Primary LanguageGoApache License 2.0Apache-2.0

ydb-go-yc-metadata

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

godoc

Overview

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

Usage

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