table

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Content = newContentTable("hmb", "content", "")
View Source
var Story = newStoryTable("hmb", "story", "")
View Source
var StoryTag = newStoryTagTable("hmb", "story_tag", "")
View Source
var Tag = newTagTable("hmb", "tag", "")

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 ContentTable

type ContentTable struct {
	EXCLUDED contentTable
	// contains filtered or unexported fields
}

func (ContentTable) AS

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

AS creates new ContentTable with assigned alias

func (ContentTable) FromSchema

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

Schema creates new ContentTable with assigned schema name

func (ContentTable) WithPrefix

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

WithPrefix creates new ContentTable with assigned table prefix

func (ContentTable) WithSuffix

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

WithSuffix creates new ContentTable with assigned table suffix

type StoryTable

type StoryTable struct {
	EXCLUDED storyTable
	// contains filtered or unexported fields
}

func (StoryTable) AS

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

AS creates new StoryTable with assigned alias

func (StoryTable) FromSchema

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

Schema creates new StoryTable with assigned schema name

func (StoryTable) WithPrefix

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

WithPrefix creates new StoryTable with assigned table prefix

func (StoryTable) WithSuffix

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

WithSuffix creates new StoryTable with assigned table suffix

type StoryTagTable added in v0.0.3

type StoryTagTable struct {
	EXCLUDED storyTagTable
	// contains filtered or unexported fields
}

func (StoryTagTable) AS added in v0.0.3

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

AS creates new StoryTagTable with assigned alias

func (StoryTagTable) FromSchema added in v0.0.3

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

Schema creates new StoryTagTable with assigned schema name

func (StoryTagTable) WithPrefix added in v0.0.3

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

WithPrefix creates new StoryTagTable with assigned table prefix

func (StoryTagTable) WithSuffix added in v0.0.3

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

WithSuffix creates new StoryTagTable with assigned table suffix

type TagTable

type TagTable struct {
	EXCLUDED tagTable
	// contains filtered or unexported fields
}

func (TagTable) AS

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

AS creates new TagTable with assigned alias

func (TagTable) FromSchema

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

Schema creates new TagTable with assigned schema name

func (TagTable) WithPrefix

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

WithPrefix creates new TagTable with assigned table prefix

func (TagTable) WithSuffix

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

WithSuffix creates new TagTable with assigned table suffix

Jump to

Keyboard shortcuts

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