Versions in this module Expand all Collapse all v0 v0.26.1 Nov 9, 2026 v0.26.0 Nov 8, 2026 v0.25.2 Nov 8, 2026 v0.25.1 Nov 8, 2026 v0.25.0 Nov 8, 2026 Changes in this version type Error + func (err *Error) ErrVerbose(_ string) string v0.24.3 Nov 4, 2026 v0.24.2 Nov 4, 2026 v0.24.1 Nov 2, 2026 v0.24.0 Nov 1, 2026 Changes in this version type Error + func (err *Error) AuthenticationRefused() bool v0.23.1 Nov 1, 2026 v0.23.0 Oct 30, 2026 Changes in this version type Connector + func (c *Connector) CreateSearchIndex(ctx context.Context, table string, ix SearchIndex, opts ...SearchIndexOption) error + func (c *Connector) DeleteSearchIndex(ctx context.Context, table, name string, opts ...DeleteOption) error + func (c *Connector) ListSearchIndexes(ctx context.Context, table string) ([]string, error) + func (c *Connector) ListTables(ctx context.Context) ([]string, error) + type SearchField struct + Name string + Sort bool + Store bool + Type SearchFieldType + type SearchFieldType uint8 + const SearchBoolean + const SearchDouble + const SearchKeyword + const SearchLong + const SearchText + func (t SearchFieldType) String() string + type SearchIndex struct + Fields []SearchField + Name string + type SearchIndexOption = dbimp.Option[searchOptions] + func WithSearchTimeToLive(d time.Duration) SearchIndexOption v0.22.0 Oct 30, 2026 Changes in this version + const ErrExists + const ErrNotFound + type Column struct + Name string + Type ColumnType + type ColumnType uint8 + const Binary + const Boolean + const Double + const Integer + const String + func (t ColumnType) String() string type Connector + func (c *Connector) CreateIndex(ctx context.Context, table string, ix Index, opts ...IndexOption) error + func (c *Connector) CreateTable(ctx context.Context, t Table, opts ...TableOption) error + func (c *Connector) DeleteTable(ctx context.Context, name string, opts ...DeleteOption) error + type DeleteOption = dbimp.Option[deleteOptions] + func WithIfExists() DeleteOption + type Index struct + Columns []string + Keys []string + Name string + Sync bool + type IndexOption = dbimp.Option[indexOptions] + func WithBaseData(include bool) IndexOption + type Table struct + Columns []Column + Indexes []Index + Keys []Column + Name string + type TableOption = dbimp.Option[tableOptions] + func WithAllowUpdate(allow bool) TableOption + func WithDeviation(d time.Duration) TableOption + func WithLocalTransaction(enable bool) TableOption + func WithMaxVersions(n int) TableOption + func WithReservedThroughput(read, write int) TableOption + func WithStream(d time.Duration) TableOption + func WithTimeToLive(d time.Duration) TableOption v0.21.1 Oct 29, 2026 v0.21.0 Oct 29, 2026 Changes in this version + const ErrNoCredentials + const Name + func WithOptions(ctx context.Context, opts ...Option) context.Context + type Config struct + Host string + Instance string + Password string + Port int + TLS bool + User string + func ParseDSN(dsn string) (*Config, error) + func (cfg *Config) FormatDSN() string + type Connector struct + func NewConnector(cfg Config) *Connector + func (c *Connector) Close() error + func (c *Connector) Connect(context.Context) (driver.Conn, error) + func (c *Connector) Driver() driver.Driver + type Driver struct + func (Driver) Open(string) (driver.Conn, error) + func (Driver) OpenConnector(dsn string) (driver.Connector, error) + type Error struct + Code string + HTTPStatus int + Message string + RequestID string + func (err *Error) Error() string + func (err *Error) Is(target error) bool + func (err *Error) Unwrap() error + type Option = dbimp.Option[options] + func WithDatabase(name string) Option + func WithParameter(name string, value any) Option + func WithReadonly(readonly bool) Option + func WithTimeout(d time.Duration) Option