tursodatabase / libsql-client-go

Go client API for libSQL
MIT License
159 stars 23 forks source link

add support for boolean in ws stmt arguments payload #115

Closed Stenimated closed 3 months ago

Stenimated commented 3 months ago

This adds support for passing down bool in queries.

db.ExecContext(ctx, "INSERT INTO people (id, cool_guy) VALUES (?, ?)", 1, true)
db.ExecContext(ctx, "INSERT INTO people (id, cool_guy) VALUES (?, ?)", 1, false)

previously it would spit out a error. "unsupported value type: %!s(bool=false) (string)"