Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreparexBuilder ¶
type PreparexBuilder interface { PreparexContext QueryHook(query string) string }
PreparexBuilder preparex builder interface for sqlx
type PreparexContext ¶
type PreparexContext interface { // PrepareContext prepares a statement. // The provided context is used for the preparation of the statement, not for // the execution of the statement. PreparexContext(ctx context.Context, query string) (*sqlx.Stmt, error) // PrepareNamedContext returns an sqlx.NamedStmt PrepareNamedContext(ctx context.Context, query string) (*sqlx.NamedStmt, error) // Rebind rebind query to adapte SQL Driver Rebind(query string) string }
PreparexContext enhances the Conn interface with context.
type Shutter ¶
type Shutter struct { yesql.Namespace `yesql:"shutter"` DecrTagsById string `yesql:"decr_tags_by_id"` IncrTagsById string `yesql:"incr_tags_by_id"` TagsByIdA string `yesql:"tags_by_id_a"` TagsByIdB string `yesql:"tags_by_id_b"` TagsForIncr string `yesql:"tags_for_incr"` HotTags *sqlx.Stmt `yesql:"hot_tags"` TagsByKeywordA *sqlx.Stmt `yesql:"tags_by_keyword_a"` TagsByKeywordB *sqlx.Stmt `yesql:"tags_by_keyword_b"` InsertTag *sqlx.NamedStmt `yesql:"insert_tag"` NewestTags *sqlx.NamedStmt `yesql:"newest_tags"` }
func BuildShutter ¶
func BuildShutter(p PreparexBuilder, ctx ...context.Context) (obj *Shutter, err error)
type TagsInfo ¶
type TagsInfo struct { yesql.Namespace `yesql:"tags_info"` DecrTagsById string `yesql:"decr_tags_by_id"` IncrTagsById string `yesql:"incr_tags_by_id"` TagsByIdA string `yesql:"tags_by_id_a"` TagsByIdB string `yesql:"tags_by_id_b"` TagsForIncr string `yesql:"tags_for_incr"` HotTags *sqlx.Stmt `yesql:"hot_tags"` TagsByKeywordA *sqlx.Stmt `yesql:"tags_by_keyword_a"` TagsByKeywordB *sqlx.Stmt `yesql:"tags_by_keyword_b"` InsertTag *sqlx.NamedStmt `yesql:"insert_tag"` NewestTags *sqlx.NamedStmt `yesql:"newest_tags"` }
func BuildTagsInfo ¶
func BuildTagsInfo(p PreparexBuilder, ctx ...context.Context) (obj *TagsInfo, err error)
type Topic ¶
type Topic struct { yesql.Namespace `yesql:"topic"` DecrTagsById string `yesql:"decr_tags_by_id"` IncrTagsById string `yesql:"incr_tags_by_id"` TagsByIdA string `yesql:"tags_by_id_a"` TagsByIdB string `yesql:"tags_by_id_b"` TagsForIncr string `yesql:"tags_for_incr"` HotTags *sqlx.Stmt `yesql:"hot_tags"` TagsByKeywordA *sqlx.Stmt `yesql:"tags_by_keyword_a"` TagsByKeywordB *sqlx.Stmt `yesql:"tags_by_keyword_b"` InsertTag *sqlx.NamedStmt `yesql:"insert_tag"` NewestTags *sqlx.NamedStmt `yesql:"newest_tags"` }
func BuildTopic ¶
func BuildTopic(p PreparexBuilder, ctx ...context.Context) (obj *Topic, err error)
type Yesql ¶
type Yesql struct { LoginInfoD string `yesql:"login_info_d"` LogoutInfoC string `yesql:"logout_info_c"` UserInfoC string `yesql:"user_info_c"` UserInfoD string `yesql:"user_info_d"` LoginInfoB *sqlx.Stmt `yesql:"login_info_b"` UserInfoA *sqlx.Stmt `yesql:"user_info_a"` UserInfoB *sqlx.Stmt `yesql:"user_info_b"` LoginInfoA *sqlx.NamedStmt `yesql:"login_info_a"` LoginInfoE *sqlx.NamedStmt `yesql:"login_info_e"` }
func BuildYesql ¶
func BuildYesql(p PreparexBuilder, ctx ...context.Context) (obj *Yesql, err error)
Click to show internal directories.
Click to hide internal directories.