ramsql
ramsql copied to clipboard
In-memory SQL engine in Go sql/driver for testing purpose
Hi, Same as the old issue #27 that is closed. The error I get is: ``` Syntax error near where ( created_at ``` With the query: ```sql SELECT * FROM...
result := db.First(&Request{}, "Token = ?", request.Token) Results in: Syntax error near . " token"
what happens if oom? is that possible? how do u specify memory size so that it doesnt oom?
possible to do a ttl? or lru? for each items inserted
While following a slight deviation to the example on https://pkg.go.dev/database/sql, I encountered a deadlock. For example, `example.go` ```golang package myproject import ( "database/sql" _ "github.com/proullon/ramsql/driver" ) db, _ := sql.Open("ramsql",...
Getting error while using with gorm. ### Error `DB.AutoMigrate(&VSettings{})` throws ```sh 2021/05/26 13:35:13 src/ramsql.go:83 Syntax error near BIGINT UNSIGNED not [0.094ms] [rows:0] CREATE TABLE `vsettings` (`id` BIGINT UNSIGNED NOT NULL,`vid`...
http://www.postgresql.org/docs/9.4/static/queries-order.html
will porting to lmdb / boltdb backend be on the roadmap?
While running my tests I get this error: > sql: Scan error on column index 5, name "created_at": unsupported Scan, storing driver.Value type []uint8 into type *time.Time which happens when...
## Call ``` db.Exec(`INSERT INTO table (binary_column) VALUES (?)`, []byte{42}) ``` ## Expected "\x2a" is inserted into the database ## Actual Query parsing fails at `... ([42])` because driver/stmt.go expects...