Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

nlepage/go-sqljs-driver

Repository files navigation

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