Commit Graph

190 Commits

Author SHA1 Message Date
Connor Rigby
1f6070a7b1 Update Makefile to use rebar3 instead of rebar
This also fixes the rebar download as GitHub doesn't like
allowing the erlang http client
2019-04-19 07:52:35 -07:00
Maas-Maarten Zeeman
b3e158311f Merge pull request #56 from ConnorRigby/hex-update
Update docs for releasing package on hex.pm
2019-04-11 19:43:16 +02:00
Connor Rigby
089316ee0a Update docs for releasing package on hex.pm 2019-04-11 10:40:20 -07:00
Maas-Maarten Zeeman
79c2655177 Merge pull request #55 from mmzeeman/wip-update-otp-releases
Update the otp_release list to something more recent
2019-04-11 09:02:07 +02:00
Maas-Maarten Zeeman
ec5d3e0d48 Update the otp_release list to something more recent 2019-04-11 08:53:55 +02:00
Maas-Maarten Zeeman
8e569adfd3 Update README.md
Updated the Travis-CI badge link.
2019-04-11 08:39:33 +02: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
Maas-Maarten Zeeman
0743f9216a Merge pull request #54 from TenderPro/master
Added fetchall/3 and q/4 functions extended by Timeout parameter.
2019-04-11 08:21:02 +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
db73ab8ce2 Add ESQLITE_USE_SYSTEM
This allows the nif to link against the system's SQLite database.
Useful when you need to share the database with other
applications
2019-03-14 15:20:25 +00:00
Michael Schmidt
f236290168 Bump to Sqlite 3.27.2 2019-03-12 17:54:51 +00:00
Maas-Maarten Zeeman
ed7c659a52 Merge pull request #52 from ConnorRigby/version-bump
Bump version
2019-01-03 17:16:49 +01: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
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
50918812b9 Merge pull request #51 from ConnorRigby/gcc-49-fix
Fix compile for debian/gcc 4.9
2018-12-15 16:38:56 +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
c1a0d60574 Fix compile for debian/gcc 4.9
Fixes #50
2018-12-11 08:41:45 -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
2dd24c5381 Merge pull request #46 from ConnorRigby/hex-docs
Update Hex document.
2018-12-02 15:11:06 +01: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
Maas-Maarten Zeeman
c6f6e405cb Merge pull request #47 from ConnorRigby/version-update
Update version
2018-12-02 15:08:41 +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
2eb08f5334 Update Hex document. 2018-11-29 13:29:43 -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
Maas-Maarten Zeeman
ab25c2d2b6 Update README.md
Typo 😊
2018-09-05 06:58:27 +02:00
Maas-Maarten Zeeman
6728a0c020 Merge pull request #43 from TenderPro/BulkRowsReading
Bulk rows reading
2018-07-17 22:52:59 +02:00
Maas-Maarten Zeeman
56a6808941 Merge pull request #41 from TenderPro/Upgrade-SQLite-to-3.24.0
Upgrade SQLite to 3.24.0.
2018-07-17 12:30:57 +02: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
Alex Golubov
34b144eeea Upgrade SQLite to 3.24.0. 2018-07-05 22:05:10 +05:00
Maas-Maarten Zeeman
ab0fb51306 Merge pull request #36 from scouten/sqlite-3.18.0
Upgrade SQLite to version 3.18.0.
2018-01-18 18:38:55 +01: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
Maas-Maarten Zeeman
cbf3564b19 Merge pull request #35 from scouten/hex.pm
Add info about hex.pm releases
2018-01-18 18:36:52 +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
6e0d8d42e3 Update tests to expect new version of SQLite. 2017-04-22 15:55:54 -07:00
Eric Scouten
6bb10f8939 Upgrade SQLite to 3.18.0. 2017-04-22 15:24:19 -07:00
Eric Scouten
5de69f3107 Back out whitespace changes to esqlite.app.src. 2017-03-21 08:52:50 -07:00
Eric Scouten
067166b965 Add a note about hex.pm releases. 2017-03-21 08:49:00 -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
c1ba116de4 Pass the statement to the command thread in an erlang term to prevent it from being destructed before it was processed 2017-03-01 23:25:45 +01:00
Maas-Maarten Zeeman
792921fbcc Swapped malloc and free for enif_alloc and enif_free 2017-03-01 22:33:07 +01:00
Maas-Maarten Zeeman
bd6d4aaaa7 Added check to make sure sqlite is build in thread-safe mode 2017-03-01 11:17:12 +01:00
Maas-Maarten Zeeman
aefc294613 Removed unneeded if statements 2017-03-01 08:48:11 +01: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
f6d0f8b3e9 Store the reference to the connection when prepare fails.
When the statement is destructed, the connection will be decreffed and also destructed.
2017-02-24 16:54:30 +01:00
Maas-Maarten Zeeman
fe80c2279b Release the statement when prepare fails. 2017-02-24 16:42:07 +01:00
Maas-Maarten Zeeman
57e01c9968 Remove unneeded variable 2017-02-24 16:29:50 +01:00