106 Commits

Author SHA1 Message Date
Rudolf Schlatte
225ac60cf4 Add map/4, foreach/4 with query parameters (#67)
- Function signatures wrt the non-parameterized forms are analogous to `q/2`,
  `q/3`.

Co-authored-by: Rudolf Schlatte <rudi@eduroam-193-157-247-98.wlan.uio.no>
2021-11-20 20:41:44 +01:00
Maas-Maarten Zeeman
a4ec12b448 Upgrade to 3.35.0 (#66)
* Upgrading sqlite to 3.35.0

* Bump version of library itself
2021-03-13 11:15:30 +01:00
Michael Schmidt
f236290168 Bump to Sqlite 3.27.2 2019-03-12 17:54:51 +00:00
Maas-Maarten Zeeman
5ff91aa96d Merge pull request #49 from ConnorRigby/get-autocommit
Implement get_autocommit
2018-12-15 16:40:03 +01:00
Maas-Maarten Zeeman
1cb801d0a8 Upgraded sqlite to 3.26. It fixes a remote execution bug 2018-12-15 16:32:37 +01:00
connor rigby
d014a4d525 Implement get_autocommit
http://www.sqlite.org/c3ref/get_autocommit.html
2018-12-02 11:10:03 -08:00
Connor Rigby
8fa063a3f1 Add ability to subscribe to table updates.
This was implemented based on
[this](https://www.sqlite.org/c3ref/update_hook.html) document.
2018-11-29 15:30:00 -08:00
Alex Golubov
34b144eeea Upgrade SQLite to 3.24.0. 2018-07-05 22:05:10 +05:00
Eric Scouten
6e0d8d42e3 Update tests to expect new version of SQLite. 2017-04-22 15:55:54 -07:00
Maas-Maarten Zeeman
d4969140bc Cleaned up connection reference inside c-struct of statement 2017-02-28 23:38:14 +01:00
Maas-Maarten Zeeman
3f1ef40b90 Fix reference count to connection when a prepared statement is made 2017-02-26 14:55:47 +01:00
Drew Varner
db9383cc30 Bump SQLite version
Bump SQLite to 3.8.11
2015-07-25 15:28:04 -04:00
jazzyb
0a073b18e9 fixes sqlite3_column_count() return check
sqlite3_column_count() may return 0 for SQL statements that do not return rows
from the database.  This should not be treated as an error.

See:  https://sqlite.org/c3ref/column_count.html
2015-04-16 22:29:50 -04:00
jazzyb
2a32ad90e6 fixes column types error 2015-02-28 11:10:18 -05:00
Maas-Maarten Zeeman
9bc0713f79 Better version check 2015-02-01 13:40:06 +01:00
Maas-Maarten Zeeman
d57be27947 Added commit 2015-02-01 10:15:11 +01:00
Maas-Maarten Zeeman
26f7261401 Bumped version number in test too 2015-02-01 10:06:48 +01:00
Michael Ries
19080b849c get column types 2015-01-30 09:24:00 -07:00
Martin Schürrer
6b05b61dc2 Add test to ensure the linked sqlite version is the one from c_src 2014-08-31 03:48:41 +02:00
Maas-Maarten Zeeman
6428cec6dd Make sure the statement is reset after a in step. Fixes #10 2014-06-16 22:24:59 +02:00
Maas-Maarten Zeeman
2a5c521cda Simplified error handling of do_step as any error code can be returned by prepare_v2 2014-06-16 16:36:12 +02:00
Arjan Scherpenisse
476c34e1e3 Add esqlite3:changes/3 function to get nr of affected rows 2014-06-15 00:14:11 +02:00
Maas-Maarten Zeeman
ad2fbcdfce Added a negative number test. 2013-03-09 11:38:16 +01:00
Maas-Maarten Zeeman
1d27deb3c0 Addes support for 64-bit integers. 2013-03-08 22:34:47 +01:00
Maas-Maarten Zeeman
b6066c269d Support for utf-8 text. Blobs as separate entities 2013-01-01 21:45:24 +01:00
Maas-Maarten Zeeman
ec04d67632 Check for issue #2. No problem... Fixes #2 2013-01-01 14:42:43 +01:00
Maas-Maarten Zeeman
3697633c6b Changed plain 'error' to 'sqlite_error' 2012-12-26 16:51:20 +01:00
Maas-Maarten Zeeman
661e417c90 Better error responses. Fixes #1 2012-10-29 23:57:27 +01:00
Maas-Maarten Zeeman
427a5555a2 moved test 2011-12-31 20:50:00 +01:00
Maas-Maarten Zeeman
9b23587734 Fixed test, added error message 2011-12-30 16:37:21 +01:00
Maas-Maarten Zeeman
30c25d0611 Adding column names as option to map and foreach functions 2011-11-21 20:56:19 +01:00
Maas-Maarten Zeeman
a082740cb6 Adding column names functionality 2011-11-21 20:34:13 +01:00
Maas-Maarten Zeeman
e04da6dcc7 Adding column names functionality 2011-11-21 11:47:01 +01:00
Maas-Maarten Zeeman
20b5d9cea1 Added map and foreach support on queries 2011-11-21 09:28:25 +01:00
Maas-Maarten Zeeman
a1a082acf8 Tests for foreach 2011-11-21 09:24:56 +01:00
Maas-Maarten Zeeman
c0cb0ed94c Tests for foreach 2011-11-21 09:24:02 +01:00
Maas-Maarten Zeeman
6927a7f5f0 Added map and foreach support on queries 2011-11-21 09:22:45 +01:00
Maas-Maarten Zeeman
e9eff0f31b Added map and foreach support on queries 2011-11-21 08:49:29 +01:00
Maas-Maarten Zeeman
a015580021 Split off low-level api in separate file 2011-11-06 21:37:35 +01:00
Maas-Maarten Zeeman
281d720e8a Adding documentation 2011-11-06 08:40:18 +01:00
Maas-Maarten Zeeman
69bf43054d Now also binds text 2011-11-04 21:17:34 +01:00
Maas-Maarten Zeeman
ecace408fe Bind addition 2011-11-03 00:58:48 +01:00
Maas-Maarten Zeeman
d795f1946d Adding bind 2011-10-30 23:32:28 +01:00
Maas-Maarten Zeeman
faa567a135 Refactoring a bit 2011-10-29 23:47:51 +02:00
Maas-Maarten Zeeman
b764facb7c useful 2011-10-27 23:54:26 +02:00
Maas-Maarten Zeeman
074d63af2f Query results. YESSS 2011-10-27 23:22:52 +02:00
Maas-Maarten Zeeman
64c4192fbb Return a row... todo get the values 2011-10-27 17:10:41 +02:00
Maas-Maarten Zeeman
0331764f99 Foundations for step. Exploring api 2011-10-26 23:38:14 +02:00
Maas-Maarten Zeeman
e7089bc099 Small changes 2011-10-26 00:59:27 +02:00
Maas-Maarten Zeeman
f21f022eb7 Prepare is now possible 2011-10-24 23:32:25 +02:00