Alexey Romanov
aeaa81f44b
Return result from en/disabling extension loading
...
Previously the return value of `sqlite3_enable_load_extension` was ignored.
2013-03-23 22:05:06 +04:00
Alexey Romanov
f44890c223
Merge pull request #20 from rflynn/master
...
minor bugfixes
2013-03-23 10:59:50 -07:00
Ryan Flynn
9a28ba1651
correct 'Other' double-use
2013-03-23 11:31:58 -04:00
Ryan Flynn
ef5555cbe2
%lld/%llu for 64-bit ints
2013-03-23 11:29:25 -04:00
Ryan Flynn
029995f6a3
issue #17 : solve Symbol not found: _sqlite3_enable_load_extension by #ifdef-ing it out by default; erlang-sqlite3 will need configure-esque feature detection via http://www.sqlite.org/c3ref/compileoption_get.html or http://www.sqlite.org/pragma.html#pragma_compile_options
2013-03-23 11:29:24 -04:00
Alexey Romanov
df6bd9bd90
Merged from rflynn/write_many_nestable
2013-01-03 09:35:33 +04:00
Ryan Flynn
14874a9776
make write_many nestable via SAVEPOINT instead of BEGIN/COMMIT
2013-01-02 15:54:51 -05:00
Brian Stubbs
7fa65d6712
Allocating more memory than required?
2012-11-07 12:24:14 -02:00
Brian Stubbs
eab6ce1fcc
Allow raw sql in create_table (used for foreign keys).
2012-11-07 12:05:13 -02:00
Alexey Romanov
5a2bb57854
Mentioned required Erlang and SQLite3 versions
2012-10-06 00:43:51 +04:00
Alexey Romanov
8752bffec1
Copy column names to driver-allocated memory.
...
Fixes issue #14 by copying out column names before memory can be overwritten by another statement.
2012-09-17 10:32:16 +04:00
Alexey Romanov
e417a95f53
Fixes for extension loading
2012-09-14 17:17:34 +04:00
Alexey Romanov
5fd17e2abf
Fixed formatting
2012-09-14 16:15:46 +04:00
Alexey Romanov
99ea8fdb7b
Fixed issue #13 (binding ints from 128 to 255 incorrectly)
2012-09-14 16:11:49 +04:00
Alexey Romanov
e8113d2afa
Merge branch 'master' of ssh.github.com:alexeyr/erlang-sqlite3
2012-09-14 15:35:05 +04:00
Alexey Romanov
968b664e05
Removed testing for exact error messages
2012-09-14 15:34:35 +04:00
Alexey Romanov
ab38437c46
Added test for issue #14
2012-09-14 15:30:53 +04:00
booo
20298aad29
First implementation for enable_load_extension
...
TODO: Wait for the reply of the port driver
2012-07-24 16:14:33 +02:00
Alexey Romanov
08955394ab
Fix build file name in build_port_win.bat
2012-06-18 20:35:40 +04:00
Alexey Romanov
193baaaf7e
Test log isn't actually stderr before closing it
2012-06-18 20:34:08 +04:00
Alexey Romanov
398f02c039
Open log file in C code only when DEBUG macro is defined
2012-06-18 15:08:56 +04:00
Alexey Romanov
c8d711a53e
Added a way to distinguish port exit in error tuples
2012-06-18 14:36:54 +04:00
Alexey Romanov
7110748ef5
Merge pull request #11 from booo/master
...
fix error logging issue
2012-06-18 03:29:42 -07:00
booo
48568f0eaf
src/sqlite3.erl: remove unnecessary calls to error_logger ( fix #10 )
2012-06-14 18:11:23 +02:00
booo
a95bb19811
src/sqlite3.erl: remove white spaces
2012-06-14 17:45:32 +02:00
Alexey Romanov
a1e3fbc4b0
Fixed handling of errors after columns are determined
2012-04-19 16:40:16 +04:00
Alexey Romanov
95182366dd
Added project files
2012-04-19 13:39:50 +04:00
Alexey Romanov
8663e4e2b4
Merge pull request #8 from rflynn/master
...
re: issue #7 : logfile -> crash
2012-03-16 01:59:36 -07:00
Ryan Flynn
824adcea32
don't hide the problem, use stderr instead
2012-03-14 11:09:23 -04:00
Ryan Flynn
7f9206336a
if logfile open fails fallback to /dev/null or stderr rather than crash
2012-03-13 17:47:35 -04:00
Alexey Romanov
bf70b45ea5
Ignoring generated doc directory
2012-02-24 17:27:57 +04:00
Alexey Romanov
8f65e13669
Removed redundant @spec tags
2012-02-24 17:26:32 +04:00
Alexey Romanov
fe5fd4c7f5
Removed unneeded abbreviation
2012-02-24 17:16:07 +04:00
Alexey Romanov
0611b80884
Fixed tests, added support for non-atom column ids
2012-02-24 17:13:02 +04:00
Alexey Romanov
600656b2f5
Restored README
2012-02-24 14:28:30 +04:00
Ulf Wiger
bfbf038873
list_tables/1 now returns table names as they were first given.
...
The create_table/3 function will cast all table names to binaries, allowing
them to be given as atoms, binaries or strings. In order to recall what the
original type was, the CREATE TABLE statement includes a constant CHECK
constraint, e.g. CHECK('bin'='bin'), which is then parsed by the list_tables
function. The constraint is put last in the statement, and should not
interfere with any other constraints. Hopefully, the sqlite compiler is good
enough that this constant expression doesn't add too much overhead. :)
2012-02-24 09:11:24 +01:00
Ulf Wiger
6986d0bbde
Changed the type of table names to include binaries and strings.
...
Table names get converted into iolists anyway, and in some applications,
it is undesireable to have to create atoms for dynamic table names.
2012-02-22 20:44:07 +01:00
Alexey Romanov
9297d7268e
Removed unneeded function
2012-02-22 13:32:53 +04:00
Alexey Romanov
8aadf7adc4
Fixed typo in basic_driver_entry
2011-12-16 13:23:56 +04:00
Alexey Romanov
c3817095b2
Fixed types
2011-05-16 13:19:42 +04:00
Alexey Romanov
b7b9c5e422
More efficient sqlite3:write_many
2011-05-10 14:23:33 +04:00
Alexey Romanov
77a00ae1c1
Increased robustness against bad arguments
2011-05-10 14:21:07 +04:00
Alexey Romanov
d35c52a370
Fixed tests and documentation.
2011-05-10 12:32:40 +04:00
Alexey Romanov
b0af67943d
Suppressed warning on Windows
2011-05-09 22:04:18 +04:00
Alexey Romanov
33aba4ac3c
Updated rebar from alexeyr/rebar/jr-winport2
2011-05-09 21:58:06 +04:00
Alexey Romanov
7655162981
Merge branch 'master' of github.com:alexeyr/erlang-sqlite3
2011-05-09 18:44:11 +04:00
Alexey Romanov
5f8d8e2e77
Export useful types from sqlite3.erl
2011-04-28 13:29:00 +04:00
Alexey Romanov
13cb7f8148
Types improved
2011-04-28 13:20:44 +04:00
Alexey Romanov
766ba3f682
Fixed types
2011-04-28 12:50:06 +04:00
Alexey Romanov
49dc2e9439
Support single constraints without lists
2011-04-28 10:21:54 +04:00