table

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GooseDbVersion = newGooseDbVersionTable("goque", "goose_db_version", "")
View Source
var Task = newTaskTable("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 {
	NEW 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 TaskTable

type TaskTable struct {
	NEW taskTable
	// contains filtered or unexported fields
}

func (TaskTable) AS

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

AS creates new TaskTable with assigned alias

func (TaskTable) FromSchema

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

Schema creates new TaskTable with assigned schema name

func (TaskTable) WithPrefix

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

WithPrefix creates new TaskTable with assigned table prefix

func (TaskTable) WithSuffix

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

WithSuffix creates new TaskTable with assigned table suffix

Jump to

Keyboard shortcuts

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