60 Commits

Author SHA1 Message Date
Yorhel
45ef564593 Expose sqlite3_changes() and sqlite3_total_changes() 2020-06-10 11:23:27 +02:00
Ivan Ukhov
c3c5f6c3cf Rename a few tests 2020-06-05 21:55:06 +02:00
Daniel Dulaney
7fbbb6438d Implement Bindable for Option<T>
Option<T> is generally used to represent either a T or a null value. In SQLite,
it makes sense to model this as either a regular T binding (when the option is
Some) or a regular NULL binding (when the option is None). This commit
implements Bindable for any Option<T> where T is already Bindable, allowing
those Options to be used directly with statements, filling in NULL where needed.

No new unsafe code is needed. Tests are included.
2019-09-23 00:01:25 -04:00
Ivan Ukhov
64c2c7f2df Do not re-export open_with_flags 2019-06-09 07:35:27 +02:00
Ivan Ukhov
039bf4c67e Rename ConnectionFlags to OpenFlags 2019-06-09 07:16:00 +02:00
Ivan Ukhov
d1e9f8fd3e Test opening a read-only connection 2019-06-08 20:42:31 +02:00
Ivan Ukhov
f8f737bf2f Add a failing test for reading columns with NULLs 2019-05-22 07:40:48 +02:00
Ivan Ukhov
ec7ce0c27c Simplify a few tests 2019-05-21 19:28:29 +02:00
Ivan Ukhov
0a6ed63a04 Make a cosmetic adjustment 2018-10-06 10:41:20 +02:00
Ivan Ukhov
cbc5544a3b Make a cosmetic adjustment 2018-10-06 10:39:29 +02:00
Ivan Ukhov
73fb4b7920 Make a cosmetic adjustment 2018-10-06 10:15:11 +02:00
Ivan Ukhov
8ddb310ed8 Rename columns to count 2018-10-06 10:13:23 +02:00
Ivan Ukhov
db5ceccf58 Rename column_name to name 2018-10-06 10:11:18 +02:00
Jayson Reis
4fa8989faa Changes for core review 2018-07-10 21:32:29 +02:00
Jayson Reis
beda4c82c8
Change column_name to &str to avoid double allocation 2018-06-25 17:56:05 +02:00
Jayson Reis
fce61e13ad
Implement sqlite3_column_name and helper function to return column names 2018-06-22 15:39:52 +02:00
Ivan Ukhov
e0793a38a6 Run rustfmt (nightly) 2017-08-26 07:52:28 +02:00
Ivan Ukhov
006027159b Run rustfmt 2017-08-22 17:41:34 +02:00
Ivan Ukhov
12816e86f2 Extend the cursor_workflow test 2015-11-22 20:29:23 +01:00
Ivan Ukhov
9564d9e6a6 Unify the tests 2015-11-21 09:56:24 +01:00
Jake Kerr
d88890c818 Test for bug that cursors into statements with bindings return too early 2015-11-20 17:13:11 -08:00
Ivan Ukhov
f2e6ac7e03 Add benchmarks for Statement and Cursor 2015-08-04 08:21:22 -04:00
Ivan Ukhov
22aea1100f Always succeed when calling Statement::cursor 2015-08-03 21:21:44 -04:00
Ivan Ukhov
c5efaedc73 Reset the state after Cursor’s bind 2015-08-03 17:28:48 -04:00
Ivan Ukhov
2091c9843c Rename process to iterate 2015-08-03 17:12:15 -04:00
Ivan Ukhov
5072b6e2f3 Rename Iterator to Cursor 2015-08-03 17:10:30 -04:00
Ivan Ukhov
162f27fa3c Refine the language of statements and iterators 2015-08-03 17:05:03 -04:00
Ivan Ukhov
26626fdeeb Fix the reading of string data 2015-08-03 16:50:21 -04:00
Ivan Ukhov
a6de11a000 Detail the example 2015-08-03 16:12:09 -04:00
Ivan Ukhov
75bd2d94b6 Replace Connection::iterate with Statement::into_iter 2015-08-03 08:50:41 -04:00
Ivan Ukhov
d89cc13d7b Introduce Iterator 2015-08-02 22:29:04 -04:00
Ivan Ukhov
e8768b2b7e Rename Blob to Binary 2015-08-01 17:51:43 -04:00
Ivan Ukhov
ba257b99bc Add the possibility to read binary data 2015-08-01 17:19:21 -04:00
Ivan Ukhov
ea9eff2fd2 Introduce Type and Statement::kind for reading it 2015-08-01 16:23:05 -04:00
Ivan Ukhov
3d0bf10912 Add Statement::columns 2015-08-01 13:55:34 -04:00
Ivan Ukhov
dc85cb98ff Refactor a bit the tests 2015-08-01 11:29:21 -04:00
Ivan Ukhov
97ab6d14d8 Clean up the tests 2015-07-07 09:38:06 -04:00
Ivan Ukhov
883ce7dce3 Clean up SQL literals 2015-07-04 09:29:49 -04:00
Ivan Ukhov
d94275417a Rename Database to Connection 2015-07-04 08:53:26 -04:00
Ivan Ukhov
4f488e2545 Work around a compiler bug present in 1.0.0 only 2015-06-19 13:03:47 -04:00
Ivan Ukhov
7441967fbc Eliminate Binding; introduce Parameter 2015-06-19 11:31:29 -04:00
Ivan Ukhov
dfe55f4953 Simplify in-memory examples 2015-06-19 07:51:34 -04:00
Ivan Ukhov
610aea0221 Update the usage example 2015-06-14 11:33:55 -04:00
Ivan Ukhov
9bd6db2ab5 Add a stress test 2015-06-11 22:14:36 -04:00
Ivan Ukhov
64aa37f474 Give &strs instead of Strings to Database::process’ callback 2015-06-08 21:42:34 -04:00
Ivan Ukhov
bde720bddc Refactor the error handling 2015-06-08 17:43:31 -04:00
Ivan Ukhov
1fdedd03f9 Rename instruct to execute and iterate to process 2015-06-08 15:00:44 -04:00
Ivan Ukhov
4f97dda5d7 Split execute into instruct and iterate 2015-06-08 13:27:07 -04:00
Ivan Ukhov
1f0db50312 Move a test from /tests to /src 2015-06-08 09:37:44 -04:00
Ivan Ukhov
bfa3a976c8 Rename a couple of functions; add set_busy_timeout 2015-06-08 07:53:28 -04:00