Commit Graph

85 Commits

Author SHA1 Message Date
Maas-Maarten Zeeman
3c65723a0f Busy adding remaining and pagecount 2022-01-08 17:04:47 +01:00
Maas-Maarten Zeeman
a809775841 Implemented backup_init 2022-01-08 15:05:32 +01:00
Maas-Maarten Zeeman
c08ae01775 Merge branch 'master' into expose-backup-api 2022-01-07 13:45:51 +01:00
Maas-Maarten Zeeman
9c40ca8f0a Bumped year in copyright 2022-01-07 12:21:35 +01:00
Maas-Maarten Zeeman
6bdaf1e894 Added basics to expose backup api 2022-01-06 23:55:40 +01:00
Maas-Maarten Zeeman
c764204c23 Bump version number 2022-01-05 20:07:24 +01:00
Maas-Maarten Zeeman
612b2e2518 Fix foreach and map typespecs. Turned on dialyzer underspecs 2022-01-04 16:21:02 +01:00
Maas-Maarten Zeeman
7c936b1112 Fix some type specs 2022-01-04 13:05:43 +01:00
Maas-Maarten Zeeman
b8882581ac Fix merge 2022-01-04 11:26:35 +01:00
Maas-Maarten Zeeman
3cb540a553 Merge branch 'master' into cleanup-connection-and-statement-types 2022-01-04 11:07:22 +01:00
Maas-Maarten Zeeman
1428e5396c Fix return type problem 2022-01-04 11:00:28 +01:00
Maas-Maarten Zeeman
49aff0cf9a Added extra check for closed database in update_hook 2022-01-03 23:33:37 +01:00
Maas-Maarten Zeeman
40456147da Clarify names used for raw connections and statements 2022-01-03 23:01:24 +01:00
Joe Freeman
09a9c86097 Add function to get the last insert rowid (#62)
* Add function to get the last insert rowid

* Update esqlite3.erl

Co-authored-by: Maas-Maarten Zeeman <mmzeeman@xs4all.nl>
2022-01-03 18:05:27 +01:00
Maas-Maarten Zeeman
f60a0b45e7 Merged interrupt after timeout pr (#71)
* Merged interrupt after timeout pr

* Bump version number
2022-01-03 15:10:40 +01:00
Maas-Maarten Zeeman
852c3286cf Add specs docs and refactor (#70)
* Changed old style specs to more up to date specs

* Added documentation

* Changed all @spec to -spec's

* Bump version number
2022-01-03 14:09:01 +01:00
Maas-Maarten Zeeman
20f7a2916f Updated base sqlite code (#68) 2021-11-20 20:42:09 +01:00
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
Connor Rigby
2fdd5834ad Release v0.4.1 (#61) 2020-03-02 22:59:58 +01:00
Connor Rigby
089316ee0a Update docs for releasing package on hex.pm 2019-04-11 10:40:20 -07:00
Maas-Maarten Zeeman
65a0a21445 Merge pull request #53 from se-apc/sqlite_3.27
Sqlite 3.27.2
2019-04-11 08:24:31 +02:00
Alex Golubov
765951ae09 Added fetchall/3 and q/4 functions extended by Timeout parameter. 2019-03-29 17:49:35 +05:00
Michael Schmidt
f236290168 Bump to Sqlite 3.27.2 2019-03-12 17:54:51 +00:00
connor rigby
ee87913fb8 Bump version
With 1cb801d0a8 comes a
fix for a remote execution vuln. I think this warrants a minor
version bump
2018-12-19 09:39:42 -08:00
connor rigby
d014a4d525 Implement get_autocommit
http://www.sqlite.org/c3ref/get_autocommit.html
2018-12-02 11:10:03 -08:00
Maas-Maarten Zeeman
b75d5f9839 Merge pull request #48 from ConnorRigby/notifications
Add ability to subscribe to table updates.
2018-12-02 15:10:32 +01: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
Connor Rigby
cb28380fc4 Update version.
The rebar and hex.pm versions have diverged at some point in the
last two years, so i bumped to 0.2.5 to get them to the same
number.
2018-11-29 12:46:04 -08:00
Alex Golubov
ad1f9b83c5 Added errors handling to the try_multi_step 2018-07-12 15:31:56 +05:00
Alex Golubov
f5d73f7c82 Reading multiple rows from sqlite and send to Erlang process in one bulk. 2018-07-05 22:55:10 +05:00
Maas-Maarten Zeeman
f0f7f801c4 Merge pull request #37 from mmmries/fix_typespecs
fix type specs for the q/2 and q/3 functions
2018-01-18 18:37:49 +01:00
Michael Ries
869f08d36a fix type specs for the q/2 and q/3 functions 2018-01-17 23:14:36 -07:00
Eric Scouten
5de69f3107 Back out whitespace changes to esqlite.app.src. 2017-03-21 08:52:50 -07:00
Eric Scouten
a84f5178ed Add license, maintainers, and links. 2017-03-21 08:49:00 -07:00
Eric Scouten
3ef85ef591 Ensure Makefile is included in package. 2017-03-21 08:49:00 -07:00
Eric Scouten
aaa6eb884a version bump 2017-03-21 08:49:00 -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
Maas-Maarten Zeeman
785903ae6d Keep a reference to the connection before the prepare statement is put on the command queue.
This should fix a race condition when a prepare is called right before the
db connection is garbage collected.
2017-02-22 22:03:26 +01:00
Heinz N. Gies
69fe344610 Fix dialyzer warnings 2015-09-21 18:24:50 +02:00
Heinz N. Gies
16ffe88bbc some update on versioning. 2015-08-07 00:34:15 +02:00
Heinz N. Gies
fb2a41b4da some rebar3 compatibility 2015-08-07 00:23:50 +02:00
jazzyb
5c5a4c199a compiles for OTP 18.0 2015-06-29 18:56:55 -04:00
Michael Ries
19080b849c get column types 2015-01-30 09:24:00 -07: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
4841764b94 merge 2014-06-15 21:19:25 +02:00
Arjan Scherpenisse
c7c9421429 Pass back errors in fetch steps to the caller
Constraint errors (e.g. foreign keys) can fail in the fetch phase of a
query. The library did not support error handling in the fetch phase yet.
2014-06-15 09:18:07 +02:00
Arjan Scherpenisse
476c34e1e3 Add esqlite3:changes/3 function to get nr of affected rows 2014-06-15 00:14:11 +02:00
Arjan Scherpenisse
f5ca40f8b0 Add parametrized exec's (esqlite3:exec/3 and esqlite3:exec/4) 2014-01-19 19:10:19 +01:00