Documentation ¶
Index ¶
- func Register(driver string, helper Helper)
- type ArticleStmts
- type DB
- func (db *DB) CreateWithID(tx *sqlx.Tx, sql string, arg interface{}) (id int64, err error)
- func (db *DB) Open(driver, connect string) (err error)
- func (db DB) SQL() SqlStmts
- func (db *DB) WhereMultipleORs(column, prefix string, length int, equal bool) string
- func (db *DB) WithNamedStmt(query string, tx *sqlx.Tx, cb func(*sqlx.NamedStmt) error) error
- func (db *DB) WithStmt(query string, tx *sqlx.Tx, cb func(*sqlx.Stmt) error) error
- func (db *DB) WithTx(cb func(*sqlx.Tx) error) error
- type ExtractStmts
- type FeedStmts
- type Helper
- type ScoresStmts
- type SqlStmts
- type SubscriptionStmts
- type TagStmts
- type ThumbnailStmts
- type UserStmts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArticleStmts ¶
type ArticleStmts struct { Create string Update string GetUserlessTemplate string GetTemplate string CountTemplate string CountUserFeedsJoin string StateReadColumn string StateUnreadJoin string StateFavoriteJoin string GetIDsTemplate string DeleteStaleUnreadRecords string GetScoreJoin string GetUntaggedJoin string ReadStateInsertTemplate string ReadStateDeleteTemplate string FavoriteStateInsertTemplate string FavoriteStateDeleteTemplate string }
type DB ¶
func (*DB) CreateWithID ¶
func (*DB) WhereMultipleORs ¶
func (*DB) WithNamedStmt ¶
type ExtractStmts ¶
type ScoresStmts ¶
type SqlStmts ¶
type SqlStmts struct { Article ArticleStmts Extract ExtractStmts Feed FeedStmts Scores ScoresStmts Subscription SubscriptionStmts Tag TagStmts Thumbnail ThumbnailStmts User UserStmts }
type SubscriptionStmts ¶
type ThumbnailStmts ¶
Click to show internal directories.
Click to hide internal directories.