Versions in this module Expand all Collapse all v0 v0.11.0 Sep 9, 2026 Changes in this version + func IsPostgreSQLKeyword(word string) bool + type BuildOptions struct + FormatStyle FormatStyle + IndentSize int + MaxLineLength int + NormalizeNames bool + PostgreSQLMode bool + PreserveComments bool + UseDoubleQuotes bool + func DefaultBuildOptions() *BuildOptions + type ColumnDefinition struct + Collation string + Comment string + DataType string + Default string + Generated bool + GeneratedExpression string + GeneratedStored bool + Name string + NotNull bool + type ConstraintDefinition struct + CheckExpression string + Columns []string + Deferrable bool + InitiallyDeferred bool + Name string + OnDelete string + OnUpdate string + RefColumns []string + RefTable string + Type string + type FormatStyle int + const FormatCompact + const FormatDense + const FormatPretty + type FunctionDefinition struct + Body string + Comment string + Language string + Name string + Parameters []*ParameterDefinition + ReturnType string + Schema string + Security string + Strict bool + Volatility string + type IndexColumn struct + Expression string + Name string + Order string + type IndexDefinition struct + Columns []*IndexColumn + Comment string + HadExplicitAccessMethod bool + IfNotExists bool + Method string + Name string + Schema string + Table string + Unique bool + Where string + type ParameterDefinition struct + Default string + Mode string + Name string + Type string + type SQLBuilder struct + func NewSQLBuilder(options *BuildOptions) *SQLBuilder + func (b *SQLBuilder) Comment(comment string) *SQLBuilder + func (b *SQLBuilder) CreateFunction(function *FunctionDefinition) *SQLBuilder + func (b *SQLBuilder) CreateIndex(index *IndexDefinition) *SQLBuilder + func (b *SQLBuilder) CreateTable(table *TableDefinition) *SQLBuilder + func (b *SQLBuilder) Dedent() *SQLBuilder + func (b *SQLBuilder) Errors() []error + func (b *SQLBuilder) FromStatement(stmt types.Statement) *SQLBuilder + func (b *SQLBuilder) HasErrors() bool + func (b *SQLBuilder) Indent() *SQLBuilder + func (b *SQLBuilder) NL() *SQLBuilder + func (b *SQLBuilder) P(phrases ...string) *SQLBuilder + func (b *SQLBuilder) Quote(identifier string) *SQLBuilder + func (b *SQLBuilder) QuoteQualifiedName(schema, name string) *SQLBuilder + func (b *SQLBuilder) Reset() *SQLBuilder + func (b *SQLBuilder) S() *SQLBuilder + func (b *SQLBuilder) Statement(sql string) *SQLBuilder + func (b *SQLBuilder) String() string + func (b *SQLBuilder) Wrap(fn func(*SQLBuilder)) *SQLBuilder + type TableDefinition struct + Columns []*ColumnDefinition + Comment string + Constraints []*ConstraintDefinition + IfNotExists bool + Inherits []string + Name string + Schema string + Tablespace string