Maas-Maarten Zeeman
1777b4424c
Small refactor
2022-01-24 10:44:45 +01:00
Maas-Maarten Zeeman
d388e1cb5c
Use a smaller stack
2022-01-23 19:16:25 +01:00
Maas-Maarten Zeeman
9762942859
Turn off autoinit
2022-01-12 23:19:09 +01:00
Maas-Maarten Zeeman
b73eb7afa2
Merge pull request #75 from mmzeeman/bump-3.37.2
...
Bump 3.37.2
2022-01-12 22:30:27 +01:00
Maas-Maarten Zeeman
a0241da8e7
Bump sqlite to 3.37.2. Fixes a database corruption bug introduced in 3.35.0
2022-01-12 22:25:57 +01:00
Maas-Maarten Zeeman
756c1cbe29
Added tests for the backup calls
2022-01-11 20:31:31 +01:00
Maas-Maarten Zeeman
d0cc3b10cc
Implemented backu_step
2022-01-08 22:19:22 +01:00
Maas-Maarten Zeeman
e635710bda
Added tests for remaining and pagecount
2022-01-08 19:21:54 +01:00
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
6bdaf1e894
Added basics to expose backup api
2022-01-06 23:55:40 +01:00
Maas-Maarten Zeeman
570d3cbb13
Use sqlite_changes64
2022-01-04 11:44:30 +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
4e56d6cb9c
Whitespace
2022-01-04 10:22:59 +01:00
Maas-Maarten Zeeman
6646fa1a0a
Added tests for closed database behaviour
2022-01-03 23:49:43 +01:00
Maas-Maarten Zeeman
49aff0cf9a
Added extra check for closed database in update_hook
2022-01-03 23:33:37 +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
eaaaf7942b
Bump 3.37.1 ( #69 )
...
* Upgraded sqlite to version 3.37.1
* 3.37.0 added strict tables. This caused a change in the returned type definition
2022-01-01 11:56:51 +01:00
Maas-Maarten Zeeman
20f7a2916f
Updated base sqlite code ( #68 )
2021-11-20 20:42:09 +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
dea7ba1a35
Fix ESQLITE_USE_SYSTEM
...
This fixes the logic for setting the include directory for the sqlite
header file
2019-04-19 08:17:27 -07: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
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
Maas-Maarten Zeeman
6728a0c020
Merge pull request #43 from TenderPro/BulkRowsReading
...
Bulk rows reading
2018-07-17 22:52:59 +02: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
Eric Scouten
6bb10f8939
Upgrade SQLite to 3.18.0.
2017-04-22 15:24:19 -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
Maas-Maarten Zeeman
dc294c0d25
Don't release the connection when prepare_v2 fails
2017-02-24 16:28:08 +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
Maas-Maarten Zeeman
3d546ff8a4
Empty the command queue before destroying it. It could contain commands. Fixes a crash
2016-12-16 11:14:33 +01:00
Maas-Maarten Zeeman
f7b151f64c
Merge pull request #27 from NineFX/bump-sqlite-version
...
Bump SQLite version
2015-08-02 17:01:36 +02:00
Maas-Maarten Zeeman
c295381715
Removed unneeded queue_send and made closing the db more robust. Does this fix #20 ?
2015-08-02 16:55:36 +02: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