table

package
v0.0.0-...-e1d7c56 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Expense = newExpenseTable("public", "expense", "")
View Source
var SchemaMigrations = newSchemaMigrationsTable("public", "schema_migrations", "")
View Source
var User = newUserTable("public", "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 ExpenseTable

type ExpenseTable struct {
	EXCLUDED expenseTable
	// contains filtered or unexported fields
}

func (ExpenseTable) AS

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

AS creates new ExpenseTable with assigned alias

func (ExpenseTable) FromSchema

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

Schema creates new ExpenseTable with assigned schema name

func (ExpenseTable) WithPrefix

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

WithPrefix creates new ExpenseTable with assigned table prefix

func (ExpenseTable) WithSuffix

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

WithSuffix creates new ExpenseTable with assigned table suffix

type SchemaMigrationsTable

type SchemaMigrationsTable struct {
	EXCLUDED schemaMigrationsTable
	// contains filtered or unexported fields
}

func (SchemaMigrationsTable) AS

AS creates new SchemaMigrationsTable with assigned alias

func (SchemaMigrationsTable) FromSchema

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

Schema creates new SchemaMigrationsTable with assigned schema name

func (SchemaMigrationsTable) WithPrefix

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

WithPrefix creates new SchemaMigrationsTable with assigned table prefix

func (SchemaMigrationsTable) WithSuffix

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

WithSuffix creates new SchemaMigrationsTable with assigned table suffix

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