MCPcopy Create free account
hub / github.com/kataras/iris / Register

Function Register

x/sqlx/sqlx.go:54–56  ·  view source on GitHub ↗

Register caches a struct value to the default schema.

(tableName string, value interface{})

Source from the content-addressed store, hash-verified

52
53// Register caches a struct value to the default schema.
54func Register(tableName string, value interface{}) *Schema {
55 return DefaultSchema.Register(tableName, value)
56}
57
58// Query is a shortcut of executing a query and bind the result to "dst".
59func Query(ctx context.Context, db *sql.DB, dst interface{}, query string, args ...interface{}) error {

Callers 1

mustCreateTablesFunction · 0.92

Calls 1

RegisterMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…