package connector
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/connector"
Index ¶
- Constants
- Variables
- type Connector
- func Open(parent ydbDriver, balancer grpc.ClientConnInterface, opts ...Option) (_ *Connector, err error)
- func Unwrap[T *sql.DB | *sql.Conn](v T) (connector *Connector, _ error)
- func (c *Connector) Bindings() bind.Bindings
- func (c *Connector) Clock() clockwork.Clock
- func (c *Connector) Close() error
- func (c *Connector) Connect(ctx context.Context) (driver.Conn, error)
- func (c *Connector) Driver() driver.Driver
- func (c *Connector) Name() string
- func (c *Connector) Open(name string) (driver.Conn, error)
- func (c *Connector) Parent() ydbDriver
- func (c *Connector) Query() *query.Client
- func (c *Connector) RetryBudget() budget.Budget
- func (c *Connector) Scheme() scheme.Client
- func (c *Connector) Scripting() scripting.Client
- func (c *Connector) Table() table.Client
- func (c *Connector) Trace() *trace.DatabaseSQL
- func (c *Connector) TraceRetry() *trace.Retry
- type Option
- func OverQueryService() Option
- func OverTableService() Option
- func WithDefaultQueryMode(mode tableSql.QueryMode) Option
- func WithDisableServerBalancer() Option
- func WithFakeTx(modes ...tableSql.QueryMode) Option
- func WithIdleThreshold(idleThreshold time.Duration) Option
- func WithOnClose(onClose func(*Connector)) Option
- func WithQueryOptions(opts ...querySql.Option) Option
- func WithRetryBudget(budget budget.Budget) Option
- func WithTableOptions(opts ...tableSql.Option) Option
- func WithTrace( t *trace.DatabaseSQL, opts ...trace.DatabaseSQLComposeOption, ) Option
- func WithTraceRetry( t *trace.Retry, opts ...trace.RetryComposeOption, ) Option
- type QueryBindOption
Constants ¶
const ( QUERY_SERVICE = iota + 1 //nolint:revive,stylecheck TABLE_SERVICE //nolint:revive,stylecheck )
Variables ¶
Types ¶
type Connector ¶
type Connector struct { TableOpts []tableSql.Option QueryOpts []querySql.Option // contains filtered or unexported fields }
func Open ¶
func Open(parent ydbDriver, balancer grpc.ClientConnInterface, opts ...Option) (_ *Connector, err error)
func Unwrap ¶
func (*Connector) Bindings ¶
func (*Connector) Clock ¶
func (*Connector) Close ¶
func (*Connector) Connect ¶
func (*Connector) Driver ¶
func (*Connector) Name ¶
func (*Connector) Open ¶
func (*Connector) Parent ¶
func (c *Connector) Parent() ydbDriver
func (*Connector) Query ¶
func (*Connector) RetryBudget ¶
func (*Connector) Scheme ¶
func (*Connector) Scripting ¶
func (*Connector) Table ¶
func (*Connector) Trace ¶
func (c *Connector) Trace() *trace.DatabaseSQL
func (*Connector) TraceRetry ¶
type Option ¶
func OverQueryService ¶
func OverQueryService() Option
func OverTableService ¶
func OverTableService() Option
func WithDefaultQueryMode ¶
func WithDisableServerBalancer ¶
func WithDisableServerBalancer() Option
func WithFakeTx ¶
func WithIdleThreshold ¶
func WithOnClose ¶
func WithQueryOptions ¶
func WithRetryBudget ¶
func WithTableOptions ¶
func WithTrace ¶
func WithTrace( t *trace.DatabaseSQL, opts ...trace.DatabaseSQLComposeOption, ) Option
func WithTraceRetry ¶
func WithTraceRetry( t *trace.Retry, opts ...trace.RetryComposeOption, ) Option
type QueryBindOption ¶
func WithQueryBind ¶
func WithQueryBind(bind bind.Bind) QueryBindOption
func WithTablePathPrefix ¶
func WithTablePathPrefix(tablePathPrefix string) QueryBindOption
Source Files ¶
conn.go connector.go errors.go options.go unwrap.go
- Version
- v3.92.6
- Published
- Nov 19, 2024
- Platform
- linux/amd64
- Imports
- 32 packages
- Last checked
- 6 minutes ago –
Tools for package owners.