table

package
v0.0.0-...-4657e01 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Document = newDocumentTable()
View Source
var Node = newNodeTable()
View Source
var Posts = newPostsTable()
View Source
var Users = newUsersTable()

Functions

This section is empty.

Types

type DocumentTable

type DocumentTable struct {
	mysql.Table

	//Columns
	ID      mysql.ColumnInteger
	Name    mysql.ColumnString
	Content mysql.ColumnString
	Type    mysql.ColumnString

	AllColumns     mysql.ColumnList
	MutableColumns mysql.ColumnList
}

func (*DocumentTable) AS

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

AS creates new DocumentTable with assigned alias

type NodeTable

type NodeTable struct {
	mysql.Table

	//Columns
	ID         mysql.ColumnInteger
	DocumentID mysql.ColumnInteger
	Name       mysql.ColumnString
	Children   mysql.ColumnBool
	ParentID   mysql.ColumnInteger

	AllColumns     mysql.ColumnList
	MutableColumns mysql.ColumnList
}

func (*NodeTable) AS

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

AS creates new NodeTable with assigned alias

type PostsTable

type PostsTable struct {
	mysql.Table

	//Columns
	ID      mysql.ColumnInteger
	OwnerID mysql.ColumnInteger
	Text    mysql.ColumnString

	AllColumns     mysql.ColumnList
	MutableColumns mysql.ColumnList
}

func (*PostsTable) AS

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

AS creates new PostsTable with assigned alias

type UsersTable

type UsersTable struct {
	mysql.Table

	//Columns
	ID           mysql.ColumnInteger
	Name         mysql.ColumnString
	Username     mysql.ColumnString
	PasswordHash mysql.ColumnString

	AllColumns     mysql.ColumnList
	MutableColumns mysql.ColumnList
}

func (*UsersTable) AS

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

AS creates new UsersTable with assigned alias

Jump to

Keyboard shortcuts

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