Register caches a struct value to the default schema.
(tableName string, value interface{})
| 52 | |
| 53 | // Register caches a struct value to the default schema. |
| 54 | func 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". |
| 59 | func Query(ctx context.Context, db *sql.DB, dst interface{}, query string, args ...interface{}) error { |
no test coverage detected
searching dependent graphs…