70 Commits

Author SHA1 Message Date
raftedproc
5060bb6e8c
fix: extra tests and sqlite module bump to 0.17.1 [fixes VM-226] (#7) 2023-02-17 20:38:01 +03:00
vms
8a3a9e9d57 delete extern crate marine_rs_sdk_test; 2021-09-03 20:07:23 +03:00
vms
e054b689ad improve tests 2021-09-03 19:45:23 +03:00
vms
e4da5c0d4b remove externs 2021-09-03 18:08:45 +03:00
Alexey Proshutinskiy
31145f447e add tests, setup ci 2021-09-02 18:58:44 +03:00
Ivan Ukhov
58bea2026a Update a test 2020-06-10 20:23:46 +02:00
Ivan Ukhov
e8e6be0ce9 Move a test 2020-06-10 20:22:16 +02:00
Ivan Ukhov
4e3ffbd911 Merge branch 'changes' of https://github.com/17dec/sqlite into 17dec-changes 2020-06-10 20:14:47 +02:00
Ivan Ukhov
18b20fe424 Run rustfmt 2020-06-10 15:39:35 +02:00
Yorhel
5fa6026100 Implement Readable for Option<T> 2020-06-10 15:11:27 +02:00
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