Commit Graph

81 Commits

Author SHA1 Message Date
Alex Golubov
f5d73f7c82 Reading multiple rows from sqlite and send to Erlang process in one bulk. 2018-07-05 22:55:10 +05:00
Michael Ries
869f08d36a fix type specs for the q/2 and q/3 functions 2018-01-17 23:14:36 -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
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
Maas-Maarten Zeeman
9df3a49445 Use a selective receive, and ignore stale answers. I think this fixes #3 2013-11-28 19:41:40 +01:00
qingliangcn
fc102d9024 correct the insert function spec 2013-11-28 00:29:25 +08:00
qingliangcn
a921bd65b2 add insert function to get last insert rowid 2013-11-28 00:22:40 +08:00
Maas-Maarten Zeeman
cfe06ddfd9 New trick to get 0 terminated strings from an iolist 2013-02-22 08:37:20 +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
d305b0f886 Added a spec 2012-12-27 00:11:38 +01:00
Maas-Maarten Zeeman
827a8c1756 Added specs 2012-12-26 23:51:54 +01:00
Maas-Maarten Zeeman
2b669a706f Step now returns {row, Row} to more clearly return errors 2012-12-26 14:25:53 +01:00
Maas-Maarten Zeeman
661e417c90 Better error responses. Fixes #1 2012-10-29 23:57:27 +01:00
Maas-Maarten Zeeman
6624096b93 Fixed indentation 2012-10-28 08:14:21 +01:00
Maas-Maarten Zeeman
719197313a Busy with creating an edbc lib 2011-12-28 21:31:14 +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
e9eff0f31b Added map and foreach support on queries 2011-11-21 08:49:29 +01:00
Maas-Maarten Zeeman
ffb65cf442 Adding documentation and specs 2011-11-06 23:58:14 +01:00
Maas-Maarten Zeeman
ca68887b17 Added copyright notice 2011-11-06 21:57:59 +01:00
Maas-Maarten Zeeman
a015580021 Split off low-level api in separate file 2011-11-06 21:37:35 +01:00