Documentation ¶
Index ¶
- Constants
- func IsOperationError(err error) (ok bool, code int32, name string)
- func IsStatusAlreadyExistsError(err error) bool
- func IsStatusNotFoundError(err error) bool
- func IsStatusSchemeError(err error) bool
- func IsTimeoutError(err error) bool
- func IsTransportError(err error) (ok bool, code int32, name string)
- func IterateByIssues(err error, it func(message string, code uint32, severity uint32))
- type ConnectParams
- type Connection
- type DB
- type Option
- func With(options ...config.Option) Option
- func WithAccessTokenCredentials(accessToken string) Option
- func WithAnonymousCredentials() Option
- func WithBalancingConfig(balancerConfig config.BalancerConfig) Option
- func WithCertificate(cert *x509.Certificate) Option
- func WithCertificatesFromFile(caFile string) Option
- func WithCertificatesFromPem(bytes []byte) Option
- func WithConnectParams(params ConnectParams) Option
- func WithConnectionString(connection string) Option
- func WithCreateCredentialsFunc(createCredentials func(ctx context.Context) (credentials.Credentials, error)) Option
- func WithCredentials(c credentials.Credentials) Option
- func WithDialTimeout(timeout time.Duration) Option
- func WithDiscoveryInterval(discoveryInterval time.Duration) Option
- func WithDriverConfigOptions(options ...config.Option) Option
- func WithGrpcConnectionTTL(ttl time.Duration) Option
- func WithSessionPoolCreateSessionTimeout(createSessionTimeout time.Duration) Option
- func WithSessionPoolDeleteTimeout(deleteTimeout time.Duration) Option
- func WithSessionPoolIdleThreshold(idleThreshold time.Duration) Option
- func WithSessionPoolKeepAliveMinSize(keepAliveMinSize int) Option
- func WithSessionPoolKeepAliveTimeout(keepAliveTimeout time.Duration) Option
- func WithSessionPoolSizeLimit(sizeLimit int) Option
- func WithTableConfigOption(option config.Option) Option
- func WithTraceDriver(trace trace.Driver) Option
- func WithTraceTable(trace trace.Table) Option
Constants ¶
View Source
const Version = meta.Version
Version alias for except cycle import
Variables ¶
This section is empty.
Functions ¶
func IsStatusNotFoundError ¶
func IsStatusSchemeError ¶
func IsTimeoutError ¶
Types ¶
type ConnectParams ¶
func ConnectionString ¶
func ConnectionString(uri string) (ConnectParams, error)
func EndpointDatabase ¶
func EndpointDatabase(endpoint string, database string, secure bool) ConnectParams
func MustConnectionString ¶
func MustConnectionString(uri string) ConnectParams
type Connection ¶
type Option ¶
func WithAnonymousCredentials ¶
func WithAnonymousCredentials() Option
func WithBalancingConfig ¶
func WithBalancingConfig(balancerConfig config.BalancerConfig) Option
func WithCertificate ¶
func WithCertificate(cert *x509.Certificate) Option
func WithCertificatesFromPem ¶
func WithConnectParams ¶
func WithConnectParams(params ConnectParams) Option
func WithConnectionString ¶
func WithCreateCredentialsFunc ¶
func WithCreateCredentialsFunc(createCredentials func(ctx context.Context) (credentials.Credentials, error)) Option
func WithCredentials ¶
func WithCredentials(c credentials.Credentials) Option
func WithDialTimeout ¶
func WithDiscoveryInterval ¶
func WithDriverConfigOptions ¶
func WithGrpcConnectionTTL ¶
func WithTableConfigOption ¶
func WithTraceDriver ¶
WithTraceDriver returns deadline which has associated Driver with it.
func WithTraceTable ¶
WithTraceTable returns deadline which has associated Driver with it.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
decimal
Package decimal provides tools for working with YDB's decimal types.
|
Package decimal provides tools for working with YDB's decimal types. |
ydbtest
Package ydbtest provides tools for stubbing ydb server up.
|
Package ydbtest provides tools for stubbing ydb server up. |
ydbtypes
Package ydbtypes provides tools for integration ydb types with go/types package.
|
Package ydbtypes provides tools for integration ydb types with go/types package. |
Click to show internal directories.
Click to hide internal directories.