Versions in this module Expand all Collapse all v0 v0.0.1 Oct 23, 2026 Changes in this version + const DriverName + const StructuredQueryDialect + const Version + var ErrCollectionNotFound = errors.New("collection not found") + var ErrReadOnlyTransaction = errors.New("dalgo2mssql: SQL Server has no read-only transactions; use a read-only login") + var ErrSchemaNotFound = errors.New("schema not found") + func NewConnector(dsn string) (driver.Connector, error) + type CatalogError struct + Number int32 + Op string + func (e *CatalogError) Error() string + func (e *CatalogError) Unwrap() error + type ConnectionError struct + Kind ConnectionErrorKind + Op string + func (e *ConnectionError) Error() string + func (e *ConnectionError) Unwrap() error + type ConnectionErrorKind string + const KindConnection + const KindOpen + const KindPing + const KindSchema + type Database struct + func NewDatabase(ctx context.Context, dsn string, opts ...Option) (*Database, error) + func (d *Database) Adapter() dal.Adapter + func (d *Database) Close() error + func (d *Database) DescribeCollection(ctx context.Context, ref *dal.CollectionRef) (*dbschema.CollectionDef, error) + func (d *Database) ListCollections(ctx context.Context, _ *record.Key) ([]dal.CollectionRef, error) + func (d *Database) ListConstraints(ctx context.Context, ref *dal.CollectionRef) ([]dbschema.ConstraintDef, error) + func (d *Database) ListIndexes(ctx context.Context, ref *dal.CollectionRef) ([]dbschema.IndexDef, error) + func (d *Database) ListReferrers(ctx context.Context, ref *dal.CollectionRef) ([]dbschema.Referrer, error) + func (d *Database) ListViews(ctx context.Context) ([]dal.CollectionRef, error) + func (d *Database) SchemaName() string + type DriverError struct + Op string + func (e *DriverError) Error() string + func (e *DriverError) Unwrap() error + type Option func(*options) + func WithDalSchema(schema dal.Schema) Option + func WithDbOptions(dbOptions dalgo2sql.DbOptions) Option + func WithSchema(name string) Option