Skip to content

Releases: alicebob/sqlittle

database/sql driver

15 Sep 07:15
e4b4152
Compare
Choose a tag to compare
let's make a database/sql driver (#32)

* driver skeleton

* comments

* basic tablescan

* '*' is a special token

* parse the query and get the tablename from the SELECT

If it's a SELECT, otherwise we'll complain.

* Update driver/driver.go

Co-Authored-By: Sebastien Binet <binet@cern.ch>

* use the current Go version

* add db.Columns() method

* use the main sqlittle to access the tables

It already has all the details about columns and rows, which can get
weird sometimes.

* don't pretend Exec() works

* support column names in SELECT

It doesn't yet error on invalid column names.

* introduce `SelectDone()`, which can stop iterating

* make rows.Close() stop the iterating, no go routine leak

* don't drop the error for invalid column names

"invalid column" errors will only be returned via rows.Err() for now.

* implement QueryContext instead

* test for QueryRow

Nothing we need to do to support that function, but just a test to be
sure it really works.

* no more autoreadme :(

It doesn't support Go modules. Any alternative?

* add driver to the main README

* comment typo

* be more explicit about the implemented interfaces

Co-authored-by: Sebastien Binet <binet@cern.ch>

Windows support

10 Apr 14:58
Compare
Choose a tag to compare

support 'REFERENCES' and 'CHECK' in column definitions

18 Mar 09:57
16dcf4b
Compare
Choose a tag to compare
Merge pull request #31 from alicebob/refs

support "REFERENCES" in column defs

allow 'DEFAULT NULL'

05 Mar 11:54
Compare
Choose a tag to compare
v1.3.3

support "DEFAULT NULL"

Allow column named "replace"

05 Mar 08:26
17cfc57
Compare
Choose a tag to compare
Merge pull request #27 from cwimberger/master

Allow column named "replace"

allow column named 'rowid'

04 Mar 10:08
Compare
Choose a tag to compare
v1.3.1

allow column named "rowid"

ON CONFLICT support

12 Feb 11:24
Compare
Choose a tag to compare
v1.3.0

sql: Add support for ON CONFLICT REPLACE

support for deferrable

31 Jan 07:22
b1a842e
Compare
Choose a tag to compare
Merge pull request #22 from ecordell/deferrable

Support for deferrable and initially deferred

Fix issue with overflow pages

01 Dec 05:16
b82c733
Compare
Choose a tag to compare

\o/

28 May 09:52
Compare
Choose a tag to compare
\o/

As in, works for me.