"gnd.la/app/profile" "gnd.la/config" "gnd.la/encoding/codec" "gnd.la/encoding/pipe" "gnd.la/internal" "gnd.la/log" "gnd.la/orm/driver" "gnd.la/orm/index" "gnd.la/orm/operation" "gnd.la/orm/query" "gnd.la/util/structs" ) var ( stringType = reflect.TypeOf("") subqueryType = reflect.TypeOf(query.Subquery("")) ) type Driver struct { db *DB logger *log.Logger backend Backend transforms map[reflect.Type]struct{} } func (d *Driver) Backend() Backend { return d.backend } func (d *Driver) Check() error { if err := d.db.sqlDb.Ping(); err != nil {
// Subquery is a conveniency function which returns a subquery which // can used with any of the Q functions (Eq, Neq, Lt, In...). func Subquery(q string) query.Subquery { return query.Subquery(q) }