Help us shape the future of Go! Take the 2026 Go Developer Survey

table

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APITokens = newAPITokensTable("public", "api_tokens", "")
View Source
var Customers = newCustomersTable("public", "customers", "")
View Source
var Orders = newOrdersTable("public", "orders", "")

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 APITokensTable

type APITokensTable struct {
	EXCLUDED aPITokensTable
	// contains filtered or unexported fields
}

func (APITokensTable) AS

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

AS creates new APITokensTable with assigned alias

func (APITokensTable) FromSchema

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

Schema creates new APITokensTable with assigned schema name

func (APITokensTable) WithPrefix

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

WithPrefix creates new APITokensTable with assigned table prefix

func (APITokensTable) WithSuffix

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

WithSuffix creates new APITokensTable with assigned table suffix

type CustomersTable

type CustomersTable struct {
	EXCLUDED customersTable
	// contains filtered or unexported fields
}

func (CustomersTable) AS

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

AS creates new CustomersTable with assigned alias

func (CustomersTable) FromSchema

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

Schema creates new CustomersTable with assigned schema name

func (CustomersTable) WithPrefix

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

WithPrefix creates new CustomersTable with assigned table prefix

func (CustomersTable) WithSuffix

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

WithSuffix creates new CustomersTable with assigned table suffix

type OrdersTable

type OrdersTable struct {
	EXCLUDED ordersTable
	// contains filtered or unexported fields
}

func (OrdersTable) AS

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

AS creates new OrdersTable with assigned alias

func (OrdersTable) FromSchema

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

Schema creates new OrdersTable with assigned schema name

func (OrdersTable) WithPrefix

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

WithPrefix creates new OrdersTable with assigned table prefix

func (OrdersTable) WithSuffix

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

WithSuffix creates new OrdersTable with assigned table suffix

Jump to

Keyboard shortcuts

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