gwenn
50f6d24185
Merge remote-tracking branch 'origin/master' into loadable_extension
2023-11-10 17:36:58 +00:00
gwenn
7185c01f96
Add new constants introduced by SQLite 3.43.0
2023-10-21 08:46:42 +02:00
gwenn
0438d7606f
Add new constants introduced by SQLite 3.43.0
2023-10-21 08:37:12 +02:00
gwenn
f9d69410ef
Fix panic at 'SQLite API not initialized or SQLite feature omitted'
...
`to_sqlite_error` needs `sqlite3_malloc`
```
sqlite> .log on
sqlite> .load target/debug/examples/libloadable_extension.so
Error: error during initialization: SQLite version mismatch: 3014000 < 3042000
```
2023-07-14 15:56:43 +02:00
gwenn
81585a75cb
Add Connection::extension_init2
2023-07-09 15:53:03 +02:00
gwenn
eb7fbc57d0
Use ParseCallbacks::item_name to fix sqlite3_index_info_* types
2023-03-25 10:19:56 +01:00
gwenn
dae4390c5e
Reuse constants already defined in SQLite <= 3.14.0
2022-09-02 20:04:18 +02:00
Thom Chiovoloni
f8b9ad8907
Disable winsqlite3 on 32 bit targets
2022-04-03 08:08:45 -07:00
Thom Chiovoloni
9cbe5a5e89
Move Limits enum from libsqlite3-sys into rusqlite
2022-01-08 16:45:35 -08:00
gwenn
e1fd731cb0
clippy::unseparated_literal_suffix
2022-01-06 05:07:27 -08:00
gwenn
406ac6a7fc
clippy::must_use_candidate
2022-01-06 04:56:24 -08:00
gwenn
006c8b77e7
Add new SQLITE_CONSTRAINT_DATATYPE constant
2021-11-28 09:04:45 +00:00
BlackHoleFox
66ace52c4a
Fix OpenSSL linking on Windows
...
Technically this is a breaking change moving from `libeay32` to
`libcrypto` but no one should be using an openssl version from <=2016.
2021-10-05 22:48:16 -07:00
gwenn
c670b6d653
Temporary allow deref_nullptr in tests
...
As a workaround to https://github.com/rust-lang/rust-bindgen/issues/2066
2021-06-28 19:04:27 +02:00
gwenn
ed3bfbdf9d
Silent some clippy warnings ( #924 )
...
* allow(clippy::upper_case_acronyms) for rust enum entries that match
SQLite constants.
* allow(clippy::needless_return) for collation_needed_callback until we
find a way to propagate the error.
2021-03-25 21:06:46 +01:00
gwenn
57e737f418
Try to fix Clippy warnings
2020-06-05 19:25:45 +02:00
gwenn
870290c64d
Upgrade bundled sqlite to 3.32.2
2020-06-05 19:16:51 +02:00
Thom Chiovoloni
6f6f7ffd9f
Add #[non_exhaustive]
to enums that might get new variants. ( #673 )
...
This just using them in patterns without a catchall. I left things alone
that seem very unlikely to change (`Value`, `ValueRef`, `DatabaseName`,
etc...). This might help reduce the number of breaking changes we need
(rusqlite is still pre-1.0 so it doesn't really matter that much, but
breaking changes complicate the story around when we can cut releases).
2020-04-06 12:01:39 -07:00
gwenn
15fc3b4b71
Clippy + rust fmt
2020-02-22 11:50:00 +01:00
gwenn
05e87b8d8d
Add missing constants
2020-02-09 11:47:01 +01:00
gwenn
cf7e2b5aec
Add missing error codes
2020-01-26 18:24:09 +01:00
gwenn
2d25b34428
Fix some Clippy warnings
2019-12-19 20:08:04 +01:00
gwenn
8302a50fb8
Fix clippy warnings
2019-11-03 11:19:07 +01:00
gwenn
62d5ffe678
Fix some enum representation
2019-02-02 11:04:46 +01:00
gwenn
d874180333
Rust 2018 idioms
2018-12-07 21:57:04 +01:00
gwenn
0ccf98d214
Merge remote-tracking branch 'jgallagher/master' into vtab
2018-08-11 13:37:56 +02:00
gwenn
c925d1aa97
Rustfmt
2018-08-11 12:48:21 +02:00
gwenn
1e3dc542a4
Merge remote-tracking branch 'jgallagher/master' into vtab
2018-05-06 08:00:12 +02:00
gwenn
994d40da26
Fix clippy warnings
2018-05-04 19:55:55 +02:00
gwenn
c842e789bd
Merge remote-tracking branch 'jgallagher/master' into vtab
2017-09-11 19:45:22 +02:00
gwenn
1d684ae653
Merge remote-tracking branch 'jgallagher/master' into vtab
2017-04-21 20:01:04 +02:00
gwenn
fba280ff64
Some limits are not available in 3.6.8
2017-04-20 20:33:18 +02:00
gwenn
4e5b64fbca
Use constants generated by bindgen where possible
2017-04-07 19:36:31 +02:00
John Gallagher
a13df1e3cd
Avoid publicly exporting constants from libsqlite3-sys multiple times.
2017-04-05 13:05:28 -04:00
gwenn
7f0082e44e
Merge remote-tracking branch 'jgallagher/master' into vtab
2017-03-08 20:35:07 +01:00
Sean Griffin
2c58b3f804
Remove the dependency on libc
...
Recent versions of bindgen use `std::os::raw` over `libc`, but currently
`libsqlite3-sys` is overriding that. `std::os::raw` is a subset of
`libc` that exports only the relevant type definitions, but not any
functions which require additional linking. This enables
`libsqlite3-sys` to be more easily used on targets that may not have a
libc available (presumably sqlite itself would have been compiled with
musl in that case)
2017-02-16 11:17:24 -05:00
John Gallagher
161ac2bf0a
Update libsqlite3-sys to run bindgen at build time
2017-02-08 20:40:30 -05:00
John Gallagher
509257dfa8
Merge branch 'limits' of https://github.com/gwenn/rusqlite into gwenn-limits
2017-02-07 19:41:30 -05:00
gwenn
307431911c
Exporting libsqlite3_sys::error::ErrorCode ( #218 )
2017-02-04 11:33:23 +01:00
gwenn
359ec914d2
Expose limits ( #220 )
2017-02-04 11:01:38 +01:00
Omar Ferrer
70203f9ed6
Changing binding from std::os::raw back to libc
2016-10-08 01:39:57 -04:00
Omar Ferrer
b2da510b04
Reran bindgens to match the bundled sqlite.
...
Added manually to the bindgens a type entry for 'Struct_sqlite3' pointing to sqlite3 to prevent changing multiple files.
Reran bindgens as:
bindgen --builtins --link=sqlite3 --output=./libsqlite3-sys/src/bindgen.rs ./libsqlite3-sys/sqlite3/sqlite3.h
2016-10-08 01:12:30 -04:00
gwenn
2d0175b7dd
Fix warning with Rust 1.6
...
warning: lint raw_pointer_derive has been removed: using derive with raw
pointers is ok
2016-02-01 18:41:52 +01:00
John Gallagher
aac4d59fcc
Change Error
from a struct to an enum (BREAKING CHANGE).
...
This allows us to separate out the underlying SQLite error codes from
errors that occur on the Rust side.
2015-12-16 20:30:27 -05:00
John Gallagher
b385ae002b
Add ErrorCode
enum and Error
struct to libsqlite3-sys.
2015-12-16 20:30:27 -05:00
John Gallagher
1f26093fc6
Move error codes into module (internal change only - public API stays the same).
2015-12-16 20:30:27 -05:00
John Gallagher
17e54eb6f6
Add extended result codes to libsqlite3-sys
2015-12-16 20:30:27 -05:00
John Gallagher
e94a5b8411
Add bindgen / sqlite version note to libsqlite3-sys
2015-12-13 08:30:42 -05:00
Gwenael Treguier
6e208fa655
Update bindings with bindgen 0.15.0/sqlite3 3.8.10
2015-12-13 08:30:33 -05:00
Gwenael Treguier
fe6afe2a94
Merge branch 'master' of https://github.com/jgallagher/rusqlite into functions
2015-12-06 21:33:21 +01:00