db
db copied to clipboard
Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
 each save should check the primary key exist , this is not good.
 does not show stack info ?
the Paginate(pageSize uint) use uint as param but the TotalEntries() (uint64, error) Count() (uint64, error) used uint64 as the result , is that right ?
SELECT count(1) AS _t FROM `person_info_t` WHERE (id=?) LIMIT 1 why not use SELECT 1 AS _t FROM `person_info_t` WHERE (id=?) LIMIT 1
Update method only return the error , how can i kown the update really effected rows? func (r *Result) Update(values interface{}) error { query, err := r.buildUpdate(values) if err !=...
what is best way to query sth like this using sql query builder (`db.Cond`)? ```sql --- person around 5km select * from person where person.xyz = 13 and ST_Distance(person.location, ST_MakePoint(11.5,...
Hi, As query logging is being run deferred; ```go defer func(start time.Time) { queryLog(&QueryStatus{ TxID: sess.txID, SessID: sess.sessID, Query: query, Err: err, Start: start, End: time.Now(), Context: ctx, }) }(time.Now())...
Will it be possible to configure a schema in the ConnectionURL?
Very nice work! I'm regretting not finding you guys 2y ago and and ended up doing something half-way on my own (. I would very like to get rid of...