Ivan Ukhov
4e3ffbd911
Merge branch 'changes' of https://github.com/17dec/sqlite into 17dec-changes
2020-06-10 20:14:47 +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
adcff3b1d8
Merge branch 'bindable-option' of https://github.com/danieldulaney/sqlite into danieldulaney-bindable-option
2020-06-05 21:49:32 +02:00
Ivan Ukhov
fc2ea5aa19
Read the error message when sqlite3_open_v2 fails
2020-05-26 20:20:07 +02:00
Ivan Ukhov
84064daa9d
Run rustfmt
2020-05-26 20:05:39 +02:00
Sean Klein
42f9bbfe01
Avoid memory leak when failing to open connections
2020-05-25 10:58:46 -04:00
Sean Klein
22580234c1
Replace 'try' with '?' to clear warnings
2020-05-25 10:41:11 -04: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
b9747f216d
Adjust a few descriptions
2019-06-10 20:29:34 +02: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
9328fa0897
Add the two mutex-related flags
2019-06-08 20:26:20 +02:00
Ivan Ukhov
8e990ff3c6
Introduce connection flags
2019-06-08 19:50:28 +02:00
Ivan Ukhov
443aec74f1
Eliminate a deprecation warning
2019-06-08 18:48:58 +02:00
Sophie Tauchert
7a7ff8f80e
Add function to open a read only connection
2019-06-08 18:44:01 +02:00
Ivan Ukhov
2464a91759
Make a cosmetic adjustment
2019-05-26 13:31:24 +02:00
Ivan Ukhov
a99dc3a21d
Make a cosmetic adjustment
2019-05-22 11:48:34 +02:00
Ivan Ukhov
cc9bf983ac
Simplify Cursor::next
2019-05-22 11:46:49 +02:00
Ivan Ukhov
fa17cd620e
Adjust a description
2019-05-22 07:38:13 +02:00
Ivan Ukhov
ec7ce0c27c
Simplify a few tests
2019-05-21 19:28:29 +02:00
Ivan Ukhov
4ddf77ec98
Add a few assertions
2018-10-06 10:30:41 +02:00
Ivan Ukhov
9ce913343c
Adjust the assertions in name
2018-10-06 10:29:03 +02:00
Ivan Ukhov
c6e4800472
Run rustfmt
2018-10-06 10:15:38 +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
47e36dc392
Move the columns method of Cursor
2017-08-24 10:25:37 +02:00
Ivan Ukhov
3119f63fec
Add as_raw to Cursor
2017-08-24 10:24:54 +02:00
Ivan Ukhov
090deb80ac
Move a couple of functions
2017-08-23 10:18:50 +02:00
Ivan Ukhov
6c1ddbf184
Add as_raw to Connection and Statement
2017-08-23 10:13:59 +02:00
Ivan Ukhov
8b3e284771
Make a cosmetic adjustment
2017-08-23 10:13:05 +02:00
Ivan Ukhov
9aba31e37c
Adjust the formatting of the macros
2017-08-23 10:09:04 +02:00
Ivan Ukhov
1ed353756e
Make it compile on stable
2017-08-23 08:06:53 +02:00
Ivan Ukhov
b3b10acd2a
Fix styles
2017-08-23 06:06:04 +02:00
Ivan Ukhov
c56e975381
Fix a missing comma
2017-08-22 17:50:23 +02:00
Ivan Ukhov
08c4dec645
Update the examples according to rustfmt
2017-08-22 17:47:44 +02:00
Ivan Ukhov
006027159b
Run rustfmt
2017-08-22 17:41:34 +02:00
tomaka
85495e8a96
Implement Send for Connection
2016-11-30 12:53:32 +01:00
Ivan Ukhov
137ce0e7fe
Refine the usage example
2016-06-16 10:55:14 +02:00
Ivan Ukhov
49002ea4c9
Eliminate warnings
2016-05-22 19:36:25 +02:00
Ivan Ukhov
b4cd56521d
Eliminate the build script
2016-02-27 12:54:03 +01:00
Ivan Ukhov
8be28b9272
Adjust the example
2015-12-20 07:00:31 +01:00
Ivan Ukhov
96554c391d
Adjust the documentation
2015-11-22 08:19:21 +01:00
Ivan Ukhov
51545f4c2b
Make a cosmetic adjustment
2015-11-22 07:00:09 +01:00