package db

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/db"

Index

Types

type Cluster

type Cluster interface {
	// ClientConnInterface interface allows Cluster use as grpc.ClientConnInterface
	// with lazy getting raw grpc-connection in Invoke() or NewStream() stages.
	// Lazy getting grpc-connection must use for embedded client-side balancing
	// DB may be put into code-generated client constructor as is.
	grpc.ClientConnInterface
	closer.Closer
}

type Connection

type Connection interface {
	Cluster

	// Endpoint returns initial endpoint
	Endpoint() string

	// Name returns database name
	Name() string

	// Secure returns true if database connection is secure
	Secure() bool
}

func New

func New(
	ctx context.Context,
	cfg config.Config,
	pool conn.Pool,
) (_ Connection, err error)

Source Files

connection.go database.go

Version
v3.9.4
Published
Feb 11, 2022
Platform
darwin/amd64
Imports
14 packages
Last checked
2 seconds ago

Tools for package owners.