Versions in this module Expand all Collapse all v1 v1.0.0 Aug 5, 2026 Changes in this version + const DefaultMaxIdleConns + const DefaultMaxOpenConns + const MaxCellBytes + const ObjectMatView + const ObjectTable + const ObjectView + const ReadStmtTimeout + var ErrUnsupported = errors.New("operation not supported by this engine") + func AddForeignKeyDDL(d Dialect, t TableRef, name string, cols []string, refTable string, ...) string + func AssembleCreateTable(qualified string, colDefs, quotedPK []string) string + func BaseTypeName(typ string) string + func BasicColumnDef(d Dialect, c ColumnSpec) string + func CheckColumnScope(g GrantSpec, privs []string, grant bool, columnPrivs []string) error + func ChooseFrameDelimiter(body string) string + func DefaultLimitClause(limit int, offset int64) string + func DropColumnDDL(d Dialect, t TableRef, col string) string + func FloorWarning(d Dialect, info ServerInfo) string + func FormatCollationMarker(kind, name, collation string) string + func FormatFrameMarker(delim string) string + func GroupableDropClass(class string) bool + func HasSelfEdge(name string, deps map[string][]string) bool + func HasUnsafeIdentifierRune(s string) bool + func HumanBytesIEC(n int64) string + func IndexKeyParts(d Dialect, cols []IndexColumn) string + func MemoizedDump(ctx context.Context, key string, load func() (any, error)) (any, error) + func NextvalTextRefs(expr string) (refs []string, dynamic bool) + func NonFiniteFloat(s string) string + func NormalizePrivileges(privs []string, check func(string) bool) ([]string, error) + func ParseFrameMarker(line string) (delim string, ok bool) + func ParseQualifiedSeqLiteral(content string) (schema, name string, ok bool) + func PrivilegeList(privs, cols []string, quote func(string) string) string + func QuoteAnsiIdent(name string) string + func QuoteAnsiString(s string) string + func QuoteEach(d Dialect, names []string) []string + func Register(d Dialect) + func RegisteredNames() []string + func RenameColumnDDL(d Dialect, t TableRef, old, newName string) string + func RenderValueLiteral(quote func(string) string, hooks ValueLiteralHooks, col ResultColumn, v Value) string + func RewriteSequenceRefs(ddl string, rewrites map[string]string) string + func RoutineKeyword(r model.Routine) string + func SCC(names []string, deps map[string][]string) [][]string + func SeqRefKey(schema, name string) string + func ServerFlavorFromContext(ctx context.Context) string + func SplitAccount(s string) (user, host string) + func StreamResult(rows *sql.Rows, perRow func(cols []ResultColumn, row []Value) error) error + func StringSet(names []string) map[string]bool + func TopoOrder(names []string, deps map[string][]string) []string + func UnbracketHost(host string) string + func ValidNewIdentifier(caps Capabilities, s string) bool + func ValidPrivilegeKeyword(s string) bool + func ValidateCreateTable(cols []ColumnSpec, pk []string) error + func WithDumpMemo(ctx context.Context) context.Context + func WithReadTimeout(ctx context.Context) (context.Context, context.CancelFunc) + func WithServerFlavor(ctx context.Context, flavor string) context.Context + func XHexLiteral(b []byte) string + type BulkIntrospector interface + BulkColumns func(ctx context.Context, db *sql.DB, scope Scope) (map[string][]model.Column, error) + BulkForeignKeys func(ctx context.Context, db *sql.DB, scope Scope) (map[string][]model.ForeignKey, error) + type Capabilities struct + AccountHasHost bool + CanDropConnectedDatabase bool + CanManageDatabases bool + DatabasesShareConnection bool + ExecReportsChangedRows bool + HasEvents bool + HasForeignKeys bool + HasSchemas bool + HasStoredRoutines bool + HasTriggers bool + HasUsers bool + HasViews bool + IdentifierMaxBytes int + IsNetworkEngine bool + RestrictedDropColumn bool + ShowsSSLModeUI bool + SupportsCharset bool + SupportsColumnModify bool + SupportsColumnPosition bool + SupportsColumnRename bool + SupportsExplain bool + SupportsForeignKeyDDL bool + SupportsRoleAttributes bool + SupportsRoles bool + SupportsTransactionalDDL bool + SupportsTruncate bool + type Collation struct + Charset string + Default bool + Name string + type CollationLister interface + ListCollations func(ctx context.Context, db *sql.DB) ([]Collation, error) + type CollationProber interface + CollationProbeSQL func() string + type ColumnModifier interface + ModifyColumnSQL func(t TableRef, old string, c ColumnSpec) ([]string, error) + type ColumnPlacement int + const PlaceAfter + const PlaceDefault + const PlaceFirst + type ColumnPrivileger interface + ColumnGrantablePrivileges func() []string + type ColumnRenamer interface + RenameColumnSQL func(t TableRef, old, newName string) ([]string, error) + type ColumnSpec struct + AutoIncrement bool + Charset string + Collation string + Comment string + Default *string + DefaultExpr bool + Identity string + Name string + Nullable bool + OnUpdate string + Placement ColumnPlacement + PlacementAfter string + SameBaseType bool + Type string + Unsigned bool + Zerofill bool + type ConnParams struct + Database string + DialControl func(network, address string, c syscall.RawConn) error + FilePath string + Host string + OnStatement StatementObserver + Params map[string]string + Password string + Port int + SSLMode string + Socket string + Tuning Tuning + User string + type Connection struct + func Open(ctx context.Context, d Dialect, p ConnParams) (*Connection, error) + func (c *Connection) AlterUser(ctx context.Context, u UserSpec) error + func (c *Connection) AuditTeardown(ctx context.Context, planned []TeardownDrop) ([]string, error) + func (c *Connection) Browse(ctx context.Context, t TableRef, page Pagination, sorts []Sort) (*ResultSet, error) + func (c *Connection) BulkColumns(ctx context.Context, scope Scope) (map[string][]model.Column, bool, error) + func (c *Connection) BulkForeignKeys(ctx context.Context, scope Scope) (map[string][]model.ForeignKey, bool, error) + func (c *Connection) CanManageEvents() bool + func (c *Connection) CanManagePrivileges() bool + func (c *Connection) CanManageRoles() bool + func (c *Connection) CanManageRoutines() bool + func (c *Connection) CanManageTriggers() bool + func (c *Connection) CanManageUsers() bool + func (c *Connection) Capabilities() Capabilities + func (c *Connection) Close() error + func (c *Connection) ColumnGrantablePrivileges() []string + func (c *Connection) Columns(ctx context.Context, t TableRef) ([]model.Column, error) + func (c *Connection) CountRows(ctx context.Context, t TableRef) (int64, error) + func (c *Connection) CountRowsBounded(ctx context.Context, t TableRef, max int64) (n int64, exact bool, err error) + func (c *Connection) CreateProgram(ctx context.Context, create string) error + func (c *Connection) CreateSQL(ctx context.Context, t TableRef) (string, error) + func (c *Connection) CreateUser(ctx context.Context, u UserSpec) error + func (c *Connection) DB() *sql.DB + func (c *Connection) DataSelectOnly(ctx context.Context, scope Scope, tables []string) (map[string]bool, error) + func (c *Connection) Dialect() Dialect + func (c *Connection) DropEvent(ctx context.Context, s Scope, e model.Event) error + func (c *Connection) DropRoutine(ctx context.Context, s Scope, r model.Routine) error + func (c *Connection) DropTrigger(ctx context.Context, s Scope, t model.Trigger) error + func (c *Connection) DropUser(ctx context.Context, name, host string) error + func (c *Connection) DumpDataTables(ctx context.Context, scope Scope, tables []string) ([]string, error) + func (c *Connection) DumpForeignTable(ctx context.Context, scope Scope, name string) (DumpPlan, error) + func (c *Connection) DumpGlobalObjects(ctx context.Context, structure bool) (DumpPlan, error) + func (c *Connection) DumpInheritsChildCreate(ctx context.Context, t TableRef, parents []string) (string, error) + func (c *Connection) DumpObjects(ctx context.Context, scope Scope, tables []string, dbScope, structure bool) (DumpPlan, error) + func (c *Connection) DumpTableCreate(ctx context.Context, t TableRef) (string, error) + func (c *Connection) DumpTableCreateStaged(ctx context.Context, t TableRef, parents []string, ...) (string, []DumpScript, error) + func (c *Connection) DumpView(ctx context.Context, scope Scope, name string, withData bool) (plan DumpPlan, ok bool, err error) + func (c *Connection) Engine() string + func (c *Connection) EstimateRows(ctx context.Context, t TableRef) (int64, error) + func (c *Connection) Exec(ctx context.Context, query string) (ExecResult, error) + func (c *Connection) ExecScript(ctx context.Context, stmts []string, useTx bool) error + func (c *Connection) Explain(ctx context.Context, query string, analyze bool) (*ResultSet, error) + func (c *Connection) ExplainSQL(query string, analyze bool) (string, bool) + func (c *Connection) FloorWarning() string + func (c *Connection) ForeignKeys(ctx context.Context, t TableRef) ([]model.ForeignKey, error) + func (c *Connection) Grant(ctx context.Context, g GrantSpec) error + func (c *Connection) GrantRole(ctx context.Context, g RoleGrant) error + func (c *Connection) GrantRoutine(ctx context.Context, g RoutineGrant) error + func (c *Connection) GrantablePrivileges(table bool) []string + func (c *Connection) Indexes(ctx context.Context, t TableRef) ([]model.Index, error) + func (c *Connection) Info() ServerInfo + func (c *Connection) InheritanceParents(ctx context.Context, scope Scope, tables []string) (map[string][]string, error) + func (c *Connection) IsForeignTable(ctx context.Context, scope Scope, name string) (bool, error) + func (c *Connection) KillProcess(ctx context.Context, id int64) error + func (c *Connection) ListCollations(ctx context.Context) ([]Collation, error) + func (c *Connection) ListDatabaseNames(ctx context.Context) ([]model.Database, error) + func (c *Connection) ListDatabases(ctx context.Context) ([]model.Database, error) + func (c *Connection) ListEvents(ctx context.Context, scope Scope) ([]model.Event, error) + func (c *Connection) ListRoutines(ctx context.Context, scope Scope) ([]model.Routine, error) + func (c *Connection) ListSchemas(ctx context.Context, database string) ([]model.Schema, error) + func (c *Connection) ListTableNames(ctx context.Context, scope Scope) ([]model.Table, error) + func (c *Connection) ListTables(ctx context.Context, scope Scope) ([]model.Table, error) + func (c *Connection) ListTriggers(ctx context.Context, scope Scope) ([]model.Trigger, error) + func (c *Connection) ListUsers(ctx context.Context) ([]model.User, error) + func (c *Connection) ListViews(ctx context.Context, scope Scope) ([]model.View, error) + func (c *Connection) ObjectDefinition(ctx context.Context, scope Scope, kind ProgramKind, name string) (def string, ok bool, err error) + func (c *Connection) Ping(ctx context.Context) error + func (c *Connection) Privileges(ctx context.Context, ref TableRef) ([]model.Privilege, error) + func (c *Connection) ProcessIDColumn() string + func (c *Connection) QualifiedName(t TableRef) string + func (c *Connection) Query(ctx context.Context, query string, limit int) (*ResultSet, error) + func (c *Connection) ReplaceProgram(ctx context.Context, drop []string, create, restore string) error + func (c *Connection) Revoke(ctx context.Context, g GrantSpec) error + func (c *Connection) RevokeRole(ctx context.Context, g RoleGrant) error + func (c *Connection) RevokeRoutine(ctx context.Context, g RoutineGrant) error + func (c *Connection) RoleMemberships(ctx context.Context) ([]model.RoleMembership, error) + func (c *Connection) RoutineGrantablePrivileges() []string + func (c *Connection) RoutinePrivileges(ctx context.Context, s Scope, r model.Routine) ([]model.Privilege, error) + func (c *Connection) RunTableMaintenance(ctx context.Context, t TableRef, op string) (*ResultSet, error) + func (c *Connection) SearchExpr(col string) string + func (c *Connection) SetStatementObserver(fn StatementObserver) + func (c *Connection) Stream(ctx context.Context, query string, perRow func([]ResultColumn, []Value) error) error + func (c *Connection) StreamArgs(ctx context.Context, query string, args []any, ...) error + func (c *Connection) TableMaintenanceOps() []TableMaintenanceOp + func (c *Connection) Tuning() Tuning + func (c *Connection) ValueLiteral(col ResultColumn, v Value) string + func (c *Connection) WithReadTimeout(ctx context.Context) (context.Context, context.CancelFunc) + type DDLErrorHint interface + DDLErrorHint func(err error) (hint string, ok bool) + type DataScoper interface + DataSelectOnly func(ctx context.Context, db *sql.DB, scope Scope, tables []string) (map[string]bool, error) + type DatabaseManager interface + CreateDatabaseSQL func(name, collation string) string + DropDatabaseSQL func(name string) string + type DatabaseRebinder interface + RebindDatabase func(p ConnParams, database string) ConnParams + type DefinitionViewer interface + ObjectDefinition func(ctx context.Context, db *sql.DB, scope Scope, kind ProgramKind, name string) (string, error) + type Dialect interface + BuildDSN func(p ConnParams) (string, error) + Capabilities func() Capabilities + Columns func(ctx context.Context, db *sql.DB, t TableRef) ([]model.Column, error) + CreateSQL func(ctx context.Context, db *sql.DB, t TableRef) (string, error) + DefaultPort func() int + DisplayName func() string + ExplainSQL func(query string, analyze bool) (sql string, ok bool) + ForeignKeys func(ctx context.Context, db *sql.DB, t TableRef) ([]model.ForeignKey, error) + Indexes func(ctx context.Context, db *sql.DB, t TableRef) ([]model.Index, error) + InsertDefaultRowSQL func(qualified string) string + LimitClause func(limit int, offset int64) string + ListDatabases func(ctx context.Context, db *sql.DB) ([]model.Database, error) + ListEvents func(ctx context.Context, db *sql.DB, scope Scope) ([]model.Event, error) + ListRoutines func(ctx context.Context, db *sql.DB, scope Scope) ([]model.Routine, error) + ListSchemas func(ctx context.Context, db *sql.DB, database string) ([]model.Schema, error) + ListTables func(ctx context.Context, db *sql.DB, scope Scope) ([]model.Table, error) + ListTriggers func(ctx context.Context, db *sql.DB, scope Scope) ([]model.Trigger, error) + ListUsers func(ctx context.Context, db *sql.DB) ([]model.User, error) + ListViews func(ctx context.Context, db *sql.DB, scope Scope) ([]model.View, error) + Name func() string + Placeholder func(n int) string + QualifyTable func(t TableRef) string + QuoteIdent func(name string) string + QuoteString func(s string) string + SQLDriverName func() string + ServerInfo func(ctx context.Context, db *sql.DB) (ServerInfo, error) + func All() []Dialect + func Get(name string) (Dialect, bool) + func Specialize(d Dialect, info ServerInfo) Dialect + type DropForm struct + Class string + Ref string + RoutineRef string + type DumpClause struct + Deps []string + Finalize []DumpScript + PreData bool + Text string + type DumpMarker struct + Collation string + Kind string + Name string + func ParseCollationMarker(line string) (DumpMarker, bool) + type DumpMemo struct + type DumpPlan struct + Collations []DumpScript + DataOnlyTables []string + ForeignData []DumpScript + PostData []DumpScript + Routines []DumpScript + SchemaComment string + SequenceRewrites map[string]string + Sequences []DumpScript + StagedDefaultColumns map[string][]string + StructureOnlyTables []string + SuppressedRelations []string + TableNodes map[string]DumpTableNode + Types []DumpScript + ViewEdges [][2]string + Views []DumpScript + Warnings []string + type DumpScript struct + Clauses []DumpClause + Comment string + DependsOn []string + Drop string + DropForm DropForm + DropInline bool + Kind string + Markers []string + Name string + NeedsDelimiter bool + OpaqueFrame bool + Post []string + Pre []string + SQL string + StageOf string + Stub string + StubDeps []string + type DumpTableNode struct + DeferrableConstraints map[string][]string + DeferrableDefaults map[string][]string + Deps []string + Name string + type Dumper interface + DumpDataTables func(ctx context.Context, db *sql.DB, scope Scope, tables []string) ([]string, error) + DumpObjects func(ctx context.Context, db *sql.DB, scope Scope, tables []string, ...) (DumpPlan, error) + DumpPostamble func(w io.Writer) + DumpPreamble func(w io.Writer) + DumpTableCreate func(ctx context.Context, db *sql.DB, t TableRef) (string, error) + ValueLiteral func(col ResultColumn, v Value) string + type EventManager interface + DropEventSQL func(s Scope, e model.Event) ([]string, error) + NewEventTemplate func() string + type ExecResult struct + RowsAffected int64 + type ExportConnAdjuster interface + ExportConnParams func(p ConnParams) ConnParams + type FilePathValidator interface + ValidateFilePath func(path string) error + type ForeignKeyEditor interface + AddForeignKeySQL func(t TableRef, name string, cols []string, refTable string, refCols []string, ...) ([]string, error) + DropForeignKeySQL func(t TableRef, name string) ([]string, error) + type ForeignTableDumper interface + DumpForeignTable func(ctx context.Context, db *sql.DB, scope Scope, name string) (DumpPlan, error) + IsForeignTable func(ctx context.Context, db *sql.DB, scope Scope, name string) (bool, error) + type GlobalDumper interface + DumpGlobalObjects func(ctx context.Context, db *sql.DB, structure bool) (DumpPlan, error) + type GrantSpec struct + Columns []string + Database string + DatabasePatterns []string + Grantee string + Host string + Privileges []string + Schema string + Table string + WithGrant bool + type Grouper struct + func NewGrouper[K comparable, T any]() *Grouper[K, T] + func (g *Grouper[K, T]) GetOrAdd(key K, create func() T) *T + func (g *Grouper[K, T]) Slice() []T + type IndexColumn struct + Desc bool + Name string + Prefix int + type IndexOptioner interface + IndexOptions func() IndexOptions + type IndexOptions struct + Methods []string + SupportsDesc bool + SupportsPartial bool + SupportsPrefix bool + type IndexSpec struct + Columns []IndexColumn + Method string + Name string + Unique bool + Where string + type Inheritor interface + DumpInheritsChildCreate func(ctx context.Context, db *sql.DB, t TableRef, parents []string) (string, error) + InheritanceParents func(ctx context.Context, db *sql.DB, scope Scope, tables []string) (map[string][]string, error) + type LexerProfile struct + BackslashStrings bool + BatchSeparator string + BracketIdentifiers bool + DashCommentNeedsSpace bool + DelimiterDirectives bool + DollarInWords bool + DollarQuotes bool + EscapeStringE bool + HashComments bool + NestedBlockComments bool + Returning ReturningCaps + RoutineBodyRe *regexp.Regexp + func DefaultLexerProfile() LexerProfile + func ProfileOf(d Dialect) LexerProfile + type LoginDatabaseHint struct + Default string + Label string + Note string + Placeholder string + type LoginFormHinter interface + LoginDatabaseHint func() LoginDatabaseHint + type MaintenanceDatabaseLister interface + MaintenanceDatabases func() []string + type Monitor interface + Processes func(ctx context.Context, db *sql.DB) (*ResultSet, error) + Status func(ctx context.Context, db *sql.DB) ([]model.Variable, error) + Variables func(ctx context.Context, db *sql.DB) ([]model.Variable, error) + type NameLister interface + ListDatabaseNames func(ctx context.Context, db *sql.DB) ([]model.Database, error) + ListTableNames func(ctx context.Context, db *sql.DB, scope Scope) ([]model.Table, error) + type NestedGrouper struct + func NewNestedGrouper[K1, K2 comparable, T any]() *NestedGrouper[K1, K2, T] + func (n *NestedGrouper[K1, K2, T]) GetOrAdd(outer K1, inner K2, create func() T) *T + func (n *NestedGrouper[K1, K2, T]) Map() map[K1][]T + type Pagination struct + Limit int + Offset int64 + type ParamsNormalizer interface + NormalizeParams func(p ConnParams) ConnParams + type Pinned struct + func OpenPinned(ctx context.Context, d Dialect, p ConnParams) (*Pinned, error) + func (p *Pinned) Close() error + func (p *Pinned) Dialect() Dialect + func (p *Pinned) Engine() string + func (p *Pinned) Exec(ctx context.Context, query string) (ExecResult, error) + func (p *Pinned) Explain(ctx context.Context, query string, analyze bool) (*ResultSet, error) + func (p *Pinned) ExplainSQL(query string, analyze bool) (string, bool) + func (p *Pinned) Query(ctx context.Context, query string, limit int) (*ResultSet, error) + type PoolOpener interface + OpenPool func(p ConnParams) (*sql.DB, error) + type PrivilegeManager interface + GrantSQL func(g GrantSpec) ([]string, error) + GrantablePrivileges func(table bool) []string + RevokeSQL func(g GrantSpec) ([]string, error) + type Privileger interface + Privileges func(ctx context.Context, db *sql.DB, ref TableRef) ([]model.Privilege, error) + type ProcessManager interface + KillProcessSQL func(id int64) string + ProcessIDColumn func() string + type ProgramKind string + const ProgramEvent + const ProgramFunction + const ProgramProcedure + const ProgramTrigger + func ProgramDDLKind(stmt string) (ProgramKind, bool) + type ResultColumn struct + Binary bool + DBType string + Name string + Numeric bool + type ResultSet struct + Columns []ResultColumn + Rows [][]Value + Truncated bool + func ScanResult(rows *sql.Rows, limit int) (*ResultSet, error) + func ScanResultVerbatim(rows *sql.Rows, limit int) (*ResultSet, error) + type ReturningCaps struct + Delete bool + Insert bool + Merge bool + Replace bool + Update bool + func (rc ReturningCaps) Allows(keyword string) bool + type RoleGrant struct + AdminOption bool + Member string + MemberHost string + Role string + RoleHost string + type RoleManager interface + GrantRoleSQL func(g RoleGrant) ([]string, error) + RevokeRoleSQL func(g RoleGrant) ([]string, error) + RoleMemberships func(ctx context.Context, db *sql.DB) ([]model.RoleMembership, error) + type RoutineGrant struct + Grantee string + Host string + Privileges []string + Routine model.Routine + Scope Scope + WithGrant bool + type RoutineManager interface + DropRoutineSQL func(s Scope, r model.Routine) ([]string, error) + NewRoutineTemplate func(kind ProgramKind) string + type RoutinePrivileger interface + GrantRoutineSQL func(g RoutineGrant) ([]string, error) + RevokeRoutineSQL func(g RoutineGrant) ([]string, error) + RoutineGrantablePrivileges func() []string + RoutinePrivileges func(ctx context.Context, db *sql.DB, s Scope, r model.Routine) ([]model.Privilege, error) + type RowEstimator interface + EstimateRows func(ctx context.Context, db *sql.DB, t TableRef) (int64, error) + type SchemaEditor interface + AddColumnSQL func(t TableRef, c ColumnSpec) ([]string, error) + AddIndexSQL func(t TableRef, spec IndexSpec) ([]string, error) + ColumnTypes func() []string + CreateTableSQL func(t TableRef, cols []ColumnSpec, pk []string) ([]string, error) + DropColumnSQL func(t TableRef, col string) ([]string, error) + DropIndexSQL func(t TableRef, name string) ([]string, error) + DropObjectSQL func(t TableRef, kind string) ([]string, error) + RenameObjectSQL func(t TableRef, newName, kind string) ([]string, error) + type SchemaManager interface + CreateSchemaSQL func(name string) string + DropSchemaSQL func(name string) string + type Scope struct + Database string + Schema string + type SearchCaster interface + SearchExpr func(quotedIdent string) string + type ServerDumpFramer interface + ServerDumpProfile func() ServerDumpProfile + UnaddressableDatabase func(name string) string + WriteDatabaseSectionHeader func(w io.Writer, name, collation string) + WriteServerDumpHeader func(w io.Writer) + type ServerDumpProfile struct + FormNote string + PerSectionPreamble bool + UsesConnectMarkers bool + type ServerInfo struct + Charset string + Collation string + Database string + Engine string + Flavor string + Host string + Port int + SQLMode string + User string + Version string + type ServerSpecializer interface + WithServerInfo func(info ServerInfo) Dialect + type Sort struct + Column string + Descending bool + type StagedTableDumper interface + DumpTableCreateStaged func(ctx context.Context, db *sql.DB, t TableRef, parents []string, ...) (string, []DumpScript, error) + type StatementEvent struct + Duration time.Duration + Err error + Rows int64 + SQL string + UserSQL bool + type StatementLexer interface + LexerProfile func() LexerProfile + type StatementObserver func(ctx context.Context, ev StatementEvent) + type StorageDDL struct + ID string + Int64 string + TableOptions string + Text string + type StorageHost interface + StorageDDL func() StorageDDL + type TableMaintainer interface + TableMaintenanceOps func() []TableMaintenanceOp + TableMaintenanceSQL func(t TableRef, op string) (string, error) + type TableMaintenanceOp struct + Confirm string + Label string + Name string + Note string + type TableRef struct + Database string + Schema string + Table string + type TeardownAuditor interface + AuditTeardown func(ctx context.Context, db *sql.DB, planned []TeardownDrop) ([]string, error) + type TeardownDrop struct + Node string + SQL string + type TriggerManager interface + DropTriggerSQL func(s Scope, t model.Trigger) ([]string, error) + NewTriggerTemplate func(table string) string + type Tuning struct + MaxIdleConns int + MaxOpenConns int + ReadStmtTimeout time.Duration + type UserManager interface + AlterUserSQL func(u UserSpec) ([]string, error) + CreateUserSQL func(u UserSpec) ([]string, error) + DropUserSQL func(name, host string) ([]string, error) + type UserSpec struct + CanLogin bool + CreateDB bool + CreateRole bool + Host string + Name string + Password string + SetPassword bool + Super bool + type Value struct + Binary bool + Bytes []byte + Null bool + Str string + func (v Value) String() string + type ValueListTyper interface + ValueListType func(base string, values []string) (string, error) + ValueListTypes func() []string + type ValueLiteralHooks struct + BinaryLiteral func(b []byte) string + NonFinite func(class string) string + TextSpecial func(col ResultColumn, s string) (lit string, ok bool) + type VersionFloor interface + ServerBelowFloor func() (floor string, below bool) + type ViewDumper interface + DumpView func(ctx context.Context, db *sql.DB, scope Scope, name string, withData bool) (DumpPlan, error) v1.0.0-rc.2 Aug 5, 2026 v1.0.0-rc.1 Aug 5, 2026