Versions in this module Expand all Collapse all v0 v0.1.1 Oct 7, 2026 v0.1.0 Oct 7, 2026 Changes in this version + const ErrTruncated + const Name + func WithOptions(ctx context.Context, opts ...Option) context.Context + type ClassError string + const ErrConnection + const ErrData + const ErrIntegrity + const ErrRollback + const ErrSyntax + const ErrTimeout + func (c ClassError) Error() string + type ColumnInfo struct + Catalog string + DataType int + Default string + Digits int + Name string + Nullable int + Ordinal int + Remarks string + Schema string + Size int + Table string + TypeName string + type Config struct + ConnString string + Location *time.Location + Manager string + OnWarning func(*Error) + TraceFile string + WChar int + func ParseDSN(dsn string) (Config, error) + type Conn interface + Columns func(ctx context.Context, catalog, schema, table, column string) ([]ColumnInfo, error) + GetInfoString func(info InfoType) (string, error) + GetInfoUint16 func(info InfoType) (uint16, error) + GetInfoUint32 func(info InfoType) (uint32, error) + PrimaryKeys func(ctx context.Context, catalog, schema, table string) ([]PrimaryKeyInfo, error) + Tables func(ctx context.Context, catalog, schema, table, tableTypes string) ([]TableInfo, error) + type Connector struct + func NewConnector(cfg Config) (*Connector, error) + func (*Connector) Driver() driver.Driver + func (c *Connector) Close() error + func (c *Connector) Connect(ctx context.Context) (driver.Conn, error) + type DataSource struct + Description string + Name string + func DataSources(cfg Config) ([]DataSource, error) + type Driver struct + func (*Driver) Open(string) (driver.Conn, error) + func (*Driver) OpenConnector(dsn string) (driver.Connector, error) + type DriverInfo struct + Attributes map[string]string + Name string + func Drivers(cfg Config) ([]DriverInfo, error) + type Error struct + Message string + Native int32 + Next []Error + Op string + State string + func (e *Error) ConnectionError() bool + func (e *Error) Error() string + func (e *Error) Is(target error) bool + func (e *Error) Unwrap() []error + type InfoType uint16 + const InfoDBMSName + const InfoDBMSVersion + const InfoDataSourceName + const InfoDriverName + const InfoDriverODBCVersion + const InfoDriverVersion + const InfoIdentifierQuoteChar + type Option = dbimp.Option[options] + func WithDatabase(name string) Option + func WithFetchSize(n int) Option + func WithMaxRows(n int64) Option + func WithNoScan(v bool) Option + func WithParameter(name string, value any) Option + func WithReadonly(v bool) Option + func WithTimeout(d time.Duration) Option + type PrimaryKeyInfo struct + Catalog string + Column string + Name string + Schema string + Sequence int + Table string + type TableInfo struct + Catalog string + Name string + Remarks string + Schema string + Type string