db icon indicating copy to clipboard operation
db copied to clipboard

Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.

Results 131 db issues
Sort by recently updated
recently updated
newest added

Adds a call to `sqlTx.Rollback()` when an error is returned from `compat.ExecContext` in the SQLite adapter. This addresses [#669 SQLite Adapter doesn't roll back transaction on error](https://github.com/upper/db/issues/669), which I ran...

If the table does not exist, executing the SQL statement will result in goroutine leaks.

In `github.com/upper/db/[email protected]/internal/sqlbuilder/select.go:428` a possible error is ignored. ```go func (sel *selector) statement() *exql.Statement { sq, _ := sel.build() return sq.statement() } ``` If an error takes place, `sq` can be...

When there is no data in mongodb, the program currently throws an exception directly. I suggest that the normal situation is to return the information through error. 2024/01/27 17:48:29 Query:...

I am constantly getting ErrWarnSlowQuery error on my server. Is there a way to ignore that errror?

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.12.0 to 0.17.0. Commits 9d2ee97 ssh: implement strict KEX protocol changes 4e5a261 ssh: close net.Conn on all NewServerConn errors 152cdb1 x509roots/fallback: update bundle fdfe1f8 ssh: defer channel...

dependencies

When running several tests concurrently, the go race detection results in an error in the template writer code: ```shell ================== WARNING: DATA RACE Read at 0x0001067fb8e0 by goroutine 34: github.com/upper/db/v4/internal/sqladapter/exql.(*Template).getTemplate()...

I'm trying to connect to a database with this DSN: `cockroachdb://test:test@host:26257/test?sslmode=verify-full`. (I changed the password and host for this example) This is the code: ```go connURL, err := crdb.ParseURL(os.Getenv("DATABASE_URI")) if...

unconfirmed
v4

mysql error on scanning binary() field into []byte. Happened when updating older project from 3.8 to 4.6. Worked on 3.8. I was unable to find anything on this in issues....

unconfirmed
v4