You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Crate is a "sql" database, it has support for object/json columns, and prepared statements are "baked in", in the sense that it provides us with a REST api to perform our operations, where we pass it our prepared statement and the args/bulk_args. For example:
Currently it doesn't seem possible to support something like:
db.Exec(`INSERT INTO logs (metadata) VALUES (?)`, []map[string]interface{}{...})
Because database/sql/driver only supports []byte, bool, float64, int64, string, time.Time [1], is that right?
Would it make sense for us to add support for any generic interface or allow drivers to provide their own IsValue()? Are there any alternative solutions?
What version of Go are you using (
go version
)?go version go1.5 darwin/amd64
What operating system and processor architecture are you using (
go env
)?Proposal/issue
I maintain a
database/sql
driver for crate.io (Crate), at https://github.com/herenow/go-crateCrate is a "sql" database, it has support for object/json columns, and prepared statements are "baked in", in the sense that it provides us with a REST api to perform our operations, where we pass it our prepared statement and the args/bulk_args. For example:
Currently it doesn't seem possible to support something like:
Because
database/sql/driver
only supports[]byte, bool, float64, int64, string, time.Time
[1], is that right?Would it make sense for us to add support for any generic interface or allow drivers to provide their own
IsValue()
? Are there any alternative solutions?[1]
go/src/database/sql/driver/types.go
Line 180 in 0104a31
The text was updated successfully, but these errors were encountered: