table

package
v0.0.0-...-a524ad6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var User = newUserTable("", "user", "")

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 UserTable

type UserTable struct {
	EXCLUDED userTable
	// contains filtered or unexported fields
}

func (UserTable) AS

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

AS creates new UserTable with assigned alias

func (UserTable) FromSchema

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

Schema creates new UserTable with assigned schema name

func (UserTable) WithPrefix

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

WithPrefix creates new UserTable with assigned table prefix

func (UserTable) WithSuffix

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

WithSuffix creates new UserTable with assigned table suffix

Jump to

Keyboard shortcuts

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