Documentation ¶
Index ¶
- func New() dbal.Grammar
- type Postgres
- func (grammarSQL Postgres) AlterTable(table *dbal.Table) error
- func (grammarSQL Postgres) CompileColumns(query *dbal.Query, columns []interface{}, bindingOffset *int) string
- func (grammarSQL Postgres) CompileDelete(query *dbal.Query) (string, []interface{})
- func (grammarSQL Postgres) CompileInsertGetID(query *dbal.Query, columns []interface{}, values [][]interface{}, ...) (string, []interface{})
- func (grammarSQL Postgres) CompileInsertOrIgnore(query *dbal.Query, columns []interface{}, values [][]interface{}) (string, []interface{})
- func (grammarSQL Postgres) CompileLock(query *dbal.Query, lock interface{}) string
- func (grammarSQL Postgres) CompileSelect(query *dbal.Query) string
- func (grammarSQL Postgres) CompileSelectOffset(query *dbal.Query, offset *int) string
- func (grammarSQL Postgres) CompileTruncate(query *dbal.Query) ([]string, [][]interface{})
- func (grammarSQL Postgres) CompileUpdate(query *dbal.Query, values map[string]interface{}) (string, []interface{})
- func (grammarSQL Postgres) CompileUpsert(query *dbal.Query, columns []interface{}, values [][]interface{}, ...) (string, []interface{})
- func (grammarSQL Postgres) CompileWheres(query *dbal.Query, wheres []dbal.Where, bindingOffset *int) string
- func (grammarSQL Postgres) CreateTable(table *dbal.Table) error
- func (grammarSQL Postgres) CreateType(table *dbal.Table, types map[string][]string) error
- func (grammarSQL Postgres) ExecSQL(table *dbal.Table, sql string) error
- func (grammarSQL Postgres) GetColumnListing(dbName string, tableName string) ([]*dbal.Column, error)
- func (grammarSQL Postgres) GetIndexListing(dbName string, tableName string) ([]*dbal.Index, error)
- func (grammarSQL Postgres) GetOperators() []string
- func (grammarSQL Postgres) GetTable(name string) (*dbal.Table, error)
- func (grammarSQL Postgres) GetTables() ([]string, error)
- func (grammarSQL Postgres) GetVersion() (*dbal.Version, error)
- func (grammarSQL Postgres) NewWith(db *sqlx.DB, config *dbal.Config, option *dbal.Option) (dbal.Grammar, error)
- func (grammarSQL Postgres) NewWithRead(write *sqlx.DB, writeConfig *dbal.Config, read *sqlx.DB, ...) (dbal.Grammar, error)
- func (grammarSQL Postgres) ProcessInsertGetID(sql string, bindings []interface{}, sequence string) (int64, error)
- func (grammarSQL Postgres) RenameTable(old string, new string) error
- func (grammarSQL Postgres) SQLAddColumn(column *dbal.Column) string
- func (grammarSQL Postgres) SQLAddComment(column *dbal.Column) string
- func (grammarSQL Postgres) SQLAddIndex(index *dbal.Index) string
- func (grammarSQL Postgres) SQLAddPrimary(primary *dbal.Primary) string
- func (grammarSQL Postgres) SQLAlterColumnType(Column *dbal.Column) string
- func (grammarSQL Postgres) SQLAlterIndex(index *dbal.Index) string
- func (grammarSQL Postgres) TableExists(name string) (bool, error)
- func (grammarSQL Postgres) Upsert(query *dbal.Query, values []orm.R, uniqueBy []interface{}, ...) (sql.Result, error)
- func (grammarSQL Postgres) WhereDate(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL Postgres) WhereDateBased(typ string, query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL Postgres) WhereDay(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL Postgres) WhereMonth(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL Postgres) WhereTime(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL Postgres) WhereYear(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- type Quoter
- func (quoter *Quoter) Columnize(columns []interface{}) string
- func (quoter Quoter) ID(name string) string
- func (quoter *Quoter) Parameter(value interface{}, num int) string
- func (quoter *Quoter) Parameterize(values []interface{}, offset int) string
- func (quoter Quoter) VAL(v interface{}) string
- func (quoter *Quoter) Wrap(value interface{}) string
- func (quoter *Quoter) WrapAliasedValue(value string) string
- func (quoter *Quoter) WrapTable(value interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Postgres ¶
func (Postgres) CompileColumns ¶
func (Postgres) CompileDelete ¶
func (Postgres) CompileInsertGetID ¶
func (Postgres) CompileInsertOrIgnore ¶
func (Postgres) CompileLock ¶
func (Postgres) CompileSelectOffset ¶
func (Postgres) CompileTruncate ¶
func (Postgres) CompileUpdate ¶
func (Postgres) CompileUpsert ¶
func (Postgres) CompileWheres ¶
func (Postgres) CreateType ¶
func (Postgres) GetColumnListing ¶
func (Postgres) GetIndexListing ¶
func (Postgres) GetOperators ¶
func (Postgres) NewWithRead ¶
func (Postgres) ProcessInsertGetID ¶
func (Postgres) SQLAddComment ¶
func (Postgres) SQLAddPrimary ¶
func (Postgres) SQLAlterColumnType ¶
func (Postgres) WhereDateBased ¶
func (Postgres) WhereMonth ¶
Click to show internal directories.
Click to hide internal directories.