table

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GooseMigrations = newGooseMigrationsTable("public", "goose_migrations", "")
View Source
var QueryResults = newQueryResultsTable("public", "query_results", "")

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 GooseMigrationsTable

type GooseMigrationsTable struct {
	EXCLUDED gooseMigrationsTable
	// contains filtered or unexported fields
}

func (GooseMigrationsTable) AS

AS creates new GooseMigrationsTable with assigned alias

func (GooseMigrationsTable) FromSchema

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

Schema creates new GooseMigrationsTable with assigned schema name

func (GooseMigrationsTable) WithPrefix

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

WithPrefix creates new GooseMigrationsTable with assigned table prefix

func (GooseMigrationsTable) WithSuffix

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

WithSuffix creates new GooseMigrationsTable with assigned table suffix

type QueryResultsTable

type QueryResultsTable struct {
	EXCLUDED queryResultsTable
	// contains filtered or unexported fields
}

func (QueryResultsTable) AS

AS creates new QueryResultsTable with assigned alias

func (QueryResultsTable) FromSchema

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

Schema creates new QueryResultsTable with assigned schema name

func (QueryResultsTable) WithPrefix

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

WithPrefix creates new QueryResultsTable with assigned table prefix

func (QueryResultsTable) WithSuffix

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

WithSuffix creates new QueryResultsTable with assigned table suffix

Jump to

Keyboard shortcuts

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