Documentation
¶
Index ¶
- func Abort(message string) error
- func AddPartitions(ctx *cli.Context) error
- func AdvanceDate(date time.Time, period string, count int) time.Time
- func Analyze(ctx *cli.Context) error
- func Connection(ctx *cli.Context) (*sqlx.DB, error)
- func Contains(s []string, e string) bool
- func FetchSettings(db *sqlx.DB, originalTable Table, table Table) (string, string, string, bool)
- func Fill(ctx *cli.Context) error
- func LogSQL(s string)
- func MakeFkDef(def string, table Table) string
- func MakeIndexDef(def string, table Table) string
- func NameFormat(period string) string
- func PartitionDate(partition Table, nameFormat string) time.Time
- func Prep(ctx *cli.Context) error
- func QuoteColumns(key []string) string
- func QuoteIdent(column string) string
- func QuoteNoSchema(table Table) string
- func QuoteTable(table Table) string
- func RoundDate(t time.Time, period string) time.Time
- func RunQueries(db *sqlx.DB, queries []string, ctx *cli.Context) error
- func RunQueriesWithoutTransaction(db *sqlx.DB, queries []string, ctx *cli.Context) error
- func RunQuery(db *sqlx.DB, query string, ctx *cli.Context) error
- func SQLDate(time time.Time, cast string, addCast bool) string
- func ServerVersionNum(db *sqlx.DB) int
- func Swap(ctx *cli.Context) error
- func Unprep(ctx *cli.Context) error
- func Unswap(ctx *cli.Context) error
- type Sequence
- type Table
- func (t Table) ColumnCast(db *sqlx.DB, column string) string
- func (t Table) Columns(db *sqlx.DB) []string
- func (t Table) ExistingTables(db *sqlx.DB, like string) []Table
- func (t Table) Exists(db *sqlx.DB) bool
- func (t Table) FetchComment(db *sqlx.DB) string
- func (t Table) FetchTrigger(db *sqlx.DB, triggerName string) string
- func (t Table) ForeignKeys(db *sqlx.DB) []string
- func (t Table) FullName() string
- func (t Table) IndexDefs(db *sqlx.DB) []string
- func (t Table) IntermediateTable() Table
- func (t Table) MaxID(db *sqlx.DB, primaryKey string, where string, below int) int
- func (t Table) MinID(db *sqlx.DB, primaryKey string, column string, cast string, ...) int
- func (t Table) Partitions(db *sqlx.DB) []Table
- func (t Table) PrimaryKey(db *sqlx.DB) []string
- func (t Table) Regclass() string
- func (t Table) RetiredTable() Table
- func (t Table) Sequences(db *sqlx.DB) []Sequence
- func (t Table) TriggerName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPartitions ¶
func FetchSettings ¶
func MakeIndexDef ¶
func NameFormat ¶
func QuoteColumns ¶
func QuoteIdent ¶
func QuoteNoSchema ¶
func QuoteTable ¶
func ServerVersionNum ¶
Types ¶
type Table ¶
func CreateTable ¶
func (Table) IntermediateTable ¶
func (Table) RetiredTable ¶
func (Table) TriggerName ¶
Click to show internal directories.
Click to hide internal directories.