/go-sqljs-driver

Go SQL driver for sql.js

Primary LanguageGoApache License 2.0Apache-2.0

go-sqljs-driver

Go SQL driver for sql.js.

⚠️ This project is experimental. ⚠️

Caveats

Named parameters prefixes

In SQLite's named parameters the prefix (:, @, or $) is included as part of the name.

However Go's database/sql.NamedArg type specifies that "Name must omit any symbol prefix.".

This makes it impossible for go-sqljs-driver to bind a different value to named parameters with the same name but a different prefix:

SELECT * FROM example WHERE col1 = :param1 AND col2 = @param1
-- :param1 and @param1 will always have the same value