Documentation ¶
Overview ¶
Code generated by sqlabble, DO NOT EDIT.
Code generated by sqlabble, DO NOT EDIT.
Code generated by sqlabble, DO NOT EDIT.
Index ¶
- type Article
- type ArticleDB
- func (a ArticleDB) ColumnAliases() []stmt.ColumnAlias
- func (a ArticleDB) Columns() []stmt.Column
- func (a ArticleDB) Count(sess *sqlabble.Session, op stmt.ComparisonOrLogicalOperation) (int64, error)
- func (a ArticleDB) Exec(sess *sqlabble.Session, st stmt.Statement) (sql.Result, error)
- func (a ArticleDB) Map(rows *sql.Rows) ([]Article, error)
- func (a ArticleDB) Query(sess *sqlabble.Session, st stmt.Statement) ([]Article, error)
- func (a ArticleDB) QueryOne(sess *sqlabble.Session, st stmt.Statement) (Article, error)
- func (a ArticleDB) Register(mapper map[string]interface{}, dist *Article, aliases ...string)
- func (a ArticleDB) Selectors() []stmt.ValOrColOrAliasOrFuncOrSubOrFormula
- type Comment
- type CommentDB
- func (c CommentDB) ColumnAliases() []stmt.ColumnAlias
- func (c CommentDB) Columns() []stmt.Column
- func (c CommentDB) Count(sess *sqlabble.Session, op stmt.ComparisonOrLogicalOperation) (int64, error)
- func (c CommentDB) Exec(sess *sqlabble.Session, st stmt.Statement) (sql.Result, error)
- func (c CommentDB) Map(rows *sql.Rows) ([]Comment, error)
- func (c CommentDB) Query(sess *sqlabble.Session, st stmt.Statement) ([]Comment, error)
- func (c CommentDB) QueryOne(sess *sqlabble.Session, st stmt.Statement) (Comment, error)
- func (c CommentDB) Register(mapper map[string]interface{}, dist *Comment, aliases ...string)
- func (c CommentDB) Selectors() []stmt.ValOrColOrAliasOrFuncOrSubOrFormula
- type Post
- type PostDB
- func (p PostDB) ColumnAliases() []stmt.ColumnAlias
- func (p PostDB) Columns() []stmt.Column
- func (p PostDB) Count(sess *sqlabble.Session, op stmt.ComparisonOrLogicalOperation) (int64, error)
- func (p PostDB) Exec(sess *sqlabble.Session, st stmt.Statement) (sql.Result, error)
- func (p PostDB) Map(rows *sql.Rows) ([]Post, error)
- func (p PostDB) Query(sess *sqlabble.Session, st stmt.Statement) ([]Post, error)
- func (p PostDB) QueryOne(sess *sqlabble.Session, st stmt.Statement) (Post, error)
- func (p PostDB) Register(mapper map[string]interface{}, dist *Post, aliases ...string)
- func (p PostDB) Selectors() []stmt.ValOrColOrAliasOrFuncOrSubOrFormula
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { ArticleID int `db:"article_id"` Subject string `db:"subject"` Body string `db:"body"` }
+db:"articles"
type ArticleDB ¶
type ArticleDB struct { Table stmt.Table TableAlias stmt.TableAlias ArticleIDColumn stmt.Column ArticleIDColumnAlias stmt.ColumnAlias SubjectColumn stmt.Column SubjectColumnAlias stmt.ColumnAlias BodyColumn stmt.Column BodyColumnAlias stmt.ColumnAlias }
ArticleDB Article table
func NewArticleDB ¶
NewArticleDB Create a/an ArticleDB
func (ArticleDB) ColumnAliases ¶
func (a ArticleDB) ColumnAliases() []stmt.ColumnAlias
ColumnAliases -
func (ArticleDB) Count ¶
func (a ArticleDB) Count(sess *sqlabble.Session, op stmt.ComparisonOrLogicalOperation) (int64, error)
Count count records
func (ArticleDB) Selectors ¶
func (a ArticleDB) Selectors() []stmt.ValOrColOrAliasOrFuncOrSubOrFormula
Selectors -
type Comment ¶
type Comment struct { CommentID int `db:"comment_id"` ArticleID int `db:"article_id"` Article Article }
+db:"comments"
type CommentDB ¶
type CommentDB struct { Table stmt.Table TableAlias stmt.TableAlias CommentIDColumn stmt.Column CommentIDColumnAlias stmt.ColumnAlias ArticleIDColumn stmt.Column ArticleIDColumnAlias stmt.ColumnAlias Article ArticleDB }
CommentDB Comment table
func NewCommentDB ¶
NewCommentDB Create a/an CommentDB
func (CommentDB) ColumnAliases ¶
func (c CommentDB) ColumnAliases() []stmt.ColumnAlias
ColumnAliases -
func (CommentDB) Count ¶
func (c CommentDB) Count(sess *sqlabble.Session, op stmt.ComparisonOrLogicalOperation) (int64, error)
Count count records
func (CommentDB) Selectors ¶
func (c CommentDB) Selectors() []stmt.ValOrColOrAliasOrFuncOrSubOrFormula
Selectors -
type PostDB ¶
type PostDB struct { Table stmt.Table TableAlias stmt.TableAlias PostIDColumn stmt.Column PostIDColumnAlias stmt.ColumnAlias ArticleIDColumn stmt.Column ArticleIDColumnAlias stmt.ColumnAlias Article ArticleDB }
PostDB Post table
func (PostDB) Selectors ¶
func (p PostDB) Selectors() []stmt.ValOrColOrAliasOrFuncOrSubOrFormula
Selectors -
Source Files ¶
Click to show internal directories.
Click to hide internal directories.