Documentation
¶
Index ¶
- Variables
- func UseSchema(schema string)
- type ExpenseTable
- type SchemaMigrationsTable
- func (a SchemaMigrationsTable) AS(alias string) *SchemaMigrationsTable
- func (a SchemaMigrationsTable) FromSchema(schemaName string) *SchemaMigrationsTable
- func (a SchemaMigrationsTable) WithPrefix(prefix string) *SchemaMigrationsTable
- func (a SchemaMigrationsTable) WithSuffix(suffix string) *SchemaMigrationsTable
- type UserTable
Constants ¶
This section is empty.
Variables ¶
var Expense = newExpenseTable("public", "expense", "")
var SchemaMigrations = newSchemaMigrationsTable("public", "schema_migrations", "")
var User = newUserTable("public", "user_", "")
Functions ¶
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 ¶
func (a SchemaMigrationsTable) AS(alias string) *SchemaMigrationsTable
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) FromSchema ¶
Schema creates new UserTable with assigned schema name
func (UserTable) WithPrefix ¶
WithPrefix creates new UserTable with assigned table prefix
func (UserTable) WithSuffix ¶
WithSuffix creates new UserTable with assigned table suffix