table

package
v0.8.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GooseDbVersion = newGooseDbVersionTable("", "goose_db_version", "")
View Source
var GoqueTask = newGoqueTaskTable("", "goque_task", "")

Functions

func UseSchema

func UseSchema(schema string)

UseSchema sets a new schema name for all generated table SQL builder types. It is recommended to invoke this method only once at the beginning of the program.

Types

type GooseDbVersionTable

type GooseDbVersionTable struct {
	EXCLUDED gooseDbVersionTable
	// contains filtered or unexported fields
}

func (GooseDbVersionTable) AS

AS creates new GooseDbVersionTable with assigned alias

func (GooseDbVersionTable) FromSchema

func (a GooseDbVersionTable) FromSchema(schemaName string) *GooseDbVersionTable

Schema creates new GooseDbVersionTable with assigned schema name

func (GooseDbVersionTable) WithPrefix

func (a GooseDbVersionTable) WithPrefix(prefix string) *GooseDbVersionTable

WithPrefix creates new GooseDbVersionTable with assigned table prefix

func (GooseDbVersionTable) WithSuffix

func (a GooseDbVersionTable) WithSuffix(suffix string) *GooseDbVersionTable

WithSuffix creates new GooseDbVersionTable with assigned table suffix

type GoqueTaskTable added in v0.7.0

type GoqueTaskTable struct {
	EXCLUDED goqueTaskTable
	// contains filtered or unexported fields
}

func (GoqueTaskTable) AS added in v0.7.0

func (a GoqueTaskTable) AS(alias string) *GoqueTaskTable

AS creates new GoqueTaskTable with assigned alias

func (GoqueTaskTable) FromSchema added in v0.7.0

func (a GoqueTaskTable) FromSchema(schemaName string) *GoqueTaskTable

Schema creates new GoqueTaskTable with assigned schema name

func (GoqueTaskTable) WithPrefix added in v0.7.0

func (a GoqueTaskTable) WithPrefix(prefix string) *GoqueTaskTable

WithPrefix creates new GoqueTaskTable with assigned table prefix

func (GoqueTaskTable) WithSuffix added in v0.7.0

func (a GoqueTaskTable) WithSuffix(suffix string) *GoqueTaskTable

WithSuffix creates new GoqueTaskTable with assigned table suffix

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL