Versions in this module Expand all Collapse all v2 v2.0.4 Jan 11, 2026 v2.0.3 Jan 11, 2026 Changes in this version + func Drop(ctx context.Context, dbc DB, schemasuffix string) error + func Exists(ctx context.Context, dbc DB, schemasuffix string) (bool, error) + func SchemaName(suffix string) string + func SchemaSuffixFromHash(doc sqldocument.Document) string + type Batch struct + Lines string + StartPos sqldocument.Pos + func (b Batch) LineNumberInInput(outputline int) int + func (b Batch) RelativeLineNumberInInput(outputline int) int + type DB interface + BeginTx func(ctx context.Context, txOptions *sql.TxOptions) (*sql.Tx, error) + Conn func(ctx context.Context) (*sql.Conn, error) + Driver func() driver.Driver + ExecContext func(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + QueryContext func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + QueryRowContext func(ctx context.Context, query string, args ...interface{}) *sql.Row + type Deployable struct + CodeBase sqldocument.Document + ParsedFiles []string + SchemaSuffix string + func Include(opts Options, fsys ...fs.FS) (result Deployable, err error) + func MustInclude(opts Options, fsys ...fs.FS) Deployable + func (d *Deployable) EnsureUploaded(ctx context.Context, dbc DB) error + func (d *Deployable) IsUploadedFromCache(dbc DB) bool + func (d *Deployable) ListUploaded(ctx context.Context, dbc DB) ([]*SchemaObject, error) + func (d *Deployable) Upload(ctx context.Context, dbc DB) error + func (d Deployable) CodePatch(dbc *sql.DB, sql string) string + func (d Deployable) DropAndUpload(ctx context.Context, dbc DB) error + func (d Deployable) IntConst(s string) (int, error) + func (d Deployable) MustIntConst(s string) int + func (d Deployable) Patch(sql string) string + func (d Deployable) WithSchemaSuffix(schemaSuffix string) Deployable + type MSSQLUserError struct + Batch Batch + Wrapped mssql.Error + func (s MSSQLUserError) Error() string + type Options struct + IncludeTags []string + PartialParseResults bool + type PreprocessedFile struct + Batches []Batch + func Preprocess(doc sqldocument.Document, schemasuffix string, driver driver.Driver) (PreprocessedFile, error) + type PreprocessorError struct + Message string + Pos sqldocument.Pos + func (p PreprocessorError) Error() string + type SQLCodeParseErrors struct + Errors []sqldocument.Error + func (e SQLCodeParseErrors) Error() string + type SchemaObject struct + CreateDate time.Time + ModifyDate time.Time + Name string + Objects int + SchemaId int + func (s *SchemaObject) Suffix() string Other modules containing this package github.com/vippsas/sqlcode