gwenn
5e2c103a0c
Add some missing wrappers ( #1139 )
...
* Add some missing wrappers:
sqlite3_value_subtype
sqlite3_result_subtype
sqlite3_changes64
sqlite3_db_readonly
sqlite3_txn_state
sqlite3_stmt_isexplain
sqlite3_vtab_config
sqlite3_index_info.idxFlags
sqlite3_index_info.colUsed
sqlite3_index_info.idxStr
sqlite3_vtab_collation
* Mark series VTab as innocuous and csv as direct only
2022-03-17 19:58:02 +01:00
gwenn
cc4f059d9b
Merge remote-tracking branch 'origin/master' into ptr_as_ptr
2022-01-06 18:20:01 +01:00
gwenn
c10e2f39ef
clippy::single_match_else
2022-01-06 04:56:59 -08:00
gwenn
68f41d6e9e
clippy::semicolon_if_nothing_returned
2022-01-06 04:56:42 -08:00
gwenn
bcfe99578b
clippy::map_unwrap_or
2022-01-06 04:55:27 -08:00
gwenn
48975e015f
clippy::let_underscore_drop
2022-01-06 04:54:39 -08:00
gwenn
01c4be82c8
clippy::doc_markdown
2022-01-06 04:54:10 -08:00
gwenn
6f8e509763
Oops
2022-01-05 20:12:52 +01:00
gwenn
43591154b2
clippy:ptr_as_ptr
2022-01-05 19:50:25 +01:00
gwenn
4ceb290235
Fix rollback_hook doc
2021-12-11 12:10:01 +01:00
gwenn
30f8c8c502
Fix callbacks lifetime
2021-12-01 04:28:09 -08:00
gwenn
2ddbebad97
Merge remote-tracking branch 'origin/master' into doc_cfg
2021-06-14 20:19:23 +02:00
gwenn
83e8c96ae9
Fix InnerConnection::authorizer visibility
2021-06-14 19:26:09 +02:00
gwenn
73fd16958e
Fix missing docs
2021-06-13 10:57:01 +02:00
gwenn
0312937d6a
Use #[doc(cfg)]
...
Fix #835
2021-06-13 09:17:35 +02:00
Nick Hynes
48e7561af9
Add support for authorizer hook ( #946 )
...
Co-authored-by: Thom Chiovoloni <chiovolonit@gmail.com>
2021-05-23 11:55:07 -07: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
da94f8eba6
Make tests return Result
2020-11-05 22:14:00 +01:00
Thom Chiovoloni
65c38bf813
Add #[inline]
and #[cold]
in far more places
2020-11-04 07:59:23 -08:00
gwenn
5f5943435e
Remove lazy_static block where possible
2020-10-29 19:51:51 +01:00
gwenn
76ad2bf19c
Rustfmt
2020-10-28 21:12:29 +01:00
gwenn
926977846f
Reduce required lifetime
...
Extends #825 to
- create_collation
- commit_hook
- rollback_hook
- update_hook
- table_filter
2020-10-28 19:20:05 +01:00
gwenn
9c954b8cb5
Rustfmt
2020-10-25 12:28:03 +01:00
gwenn
49325296a9
Expose query progress information
...
Add unit tests
2020-10-25 12:20:15 +01:00
gwenn
f5c83af863
Expose query progress information
2020-10-25 11:58:47 +01:00
gwenn
76fc22c653
Fix missing docs
2020-05-21 00:48:06 -07:00
Thom Chiovoloni
cf9b6e9ae2
Avoid relying on sqlite to justify str::from_utf8_unchecked
2020-04-14 09:31:29 -07:00
Thom Chiovoloni
53c99f940e
Fix up conventions around unsafe in internal functions
2020-04-07 10:04:18 -07: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
Thom Chiovoloni
6617db59fb
Document which features are required, and add vtab usage examples ( #669 )
2020-04-05 22:15:27 -07:00
gwenn
e4fecf7fb8
Rustfmt
2019-08-09 20:03:46 +02:00
gwenn
d229f0f9e9
Remove #[macro_use] attribute when importing macros
2019-08-09 20:01:44 +02:00
gwenn
20fed1956e
Rename some static variables
2019-02-02 11:10:08 +01:00
gwenn
62d5ffe678
Fix some enum representation
2019-02-02 11:04:46 +01:00
gwenn
dbc4eef657
Session extension ( #459 )
...
Session extension bindings
2019-01-13 12:46:19 +01:00
gwenn
bd9b850c43
Callbacks must not be able to unwind into sqlite code
2018-12-16 09:40:14 +01:00
gwenn
1262238229
Rustfmt
2018-10-30 20:15:19 +01:00
gwenn
f04047db01
Rust 2018
2018-10-30 20:15:08 +01:00
gwenn
5e9c7bac4e
Rustfmt
2018-08-16 18:29:46 +02:00
gwenn
8c6ce46c17
Make sure scalar functions and hooks outlive the connection
2018-08-15 20:04:01 +02:00
gwenn
4770060396
Make sure scalar functions and hooks are Send
able
2018-08-15 18:30:18 +02:00
gwenn
c925d1aa97
Rustfmt
2018-08-11 12:48:21 +02:00
gwenn
2a29717c5a
Fix hooks
2018-08-11 11:14:17 +02:00
gwenn
437f7dab42
Refactor hooks
2018-08-05 10:58:00 +02:00
gwenn
994d40da26
Fix clippy warnings
2018-05-04 19:55:55 +02:00
gwenn
94670c0119
Rustfmt
2017-05-12 19:18:42 +02:00
gwenn
dfdd42fd09
Bind sqlite3_commit_hook and sqlite3_rollback_hook
2017-05-12 19:14:34 +02:00
gwenn
3e6fffaf94
Due to rust monophormisation, there is no need for double indirection
2017-04-27 18:05:12 +02:00
gwenn
63a444a95f
Fix memory leak and add test
2017-04-26 20:12:48 +02:00
gwenn
6eb98afd67
SQLITE_RECURSIVE is not available with SQLite 3.6.8
2017-04-25 21:08:41 +02:00