gwenn
f48c5781a1
Introduce SqlFnArg
2024-01-21 10:22:10 +01:00
Yuri Astrakhan
68c3083e34
Add #[derive(Clone, Copy...
on some bitflags / enum ( #1396 )
...
This will make it easier to use them, e.g. I won't need to re-create `FunctionFlags` for registering multiple similar functions.
2023-12-24 08:54:48 +01:00
David Selassie
256cfdd311
Handles NULL generate_series params via defaults
2023-07-08 09:36:00 -07:00
David Selassie
379c6c8dcf
Revert "Interpret generate_series arguments as possibly NULL"
...
This reverts commit 3a2312e0bd3b1a57bd5ab8c3d57700fbba7ce16b.
2023-07-08 09:30:23 -07:00
David Selassie
3c5a9be349
Adds a few more NULL generate_series tests
2023-07-07 09:17:30 -07:00
David Selassie
3a2312e0bd
Interpret generate_series arguments as possibly NULL
2023-07-07 09:17:07 -07:00
David Selassie
84362c02c6
Tests that NULL parameters to generate_series return no rows
2023-07-06 16:51:57 -07:00
gwenn
dd05c992c2
Merge pull request #1267 from gwenn/clippy
...
[breaking change] Update edition from 2018 to 2021
2023-06-17 07:44:02 +02:00
gwenn
687aeef3b0
Introduce to_sqlite_error
...
643c0f699f
One small step to support creating loadable extension
2023-06-08 20:01:17 +02:00
gwenn
602a868783
Fix Clippy warnings
2023-06-03 07:18:43 +02:00
gwenn
0c7629ed70
Add new constants introduced by SQLite 3.42.0
2023-05-31 11:06:56 +02:00
gwenn
eb7fbc57d0
Use ParseCallbacks::item_name to fix sqlite3_index_info_* types
2023-03-25 10:19:56 +01:00
gwenn
5a6f58acda
Fix code related to bitflags
2023-03-14 19:43:50 +01:00
gwenn
3aa9addaa3
[breaking change] Update edition from 2018 to 2021
...
And fix clippy warnings
2022-12-09 20:19:04 +01:00
gwenn
2e07650a02
Use ?NNN format instead of ?
...
https://sqlite.org/lang_expr.html#parameters
> But because it is easy to miscount the question marks, the use of this parameter format is discouraged. Programmers are encouraged to use one of the symbolic formats below or the ?NNN format above instead.
2022-11-27 09:38:06 +01:00
gwenn
27e5fb016b
Fix clippy warnings
2022-11-09 19:57:36 +01:00
gwenn
6d509afe49
Clippy
2022-10-28 19:02:49 +02:00
gwenn
456523f312
Fix error: unknown lint: clippy::bool_to_int_with_if
2022-10-08 19:28:38 +02:00
gwenn
cd6ce6e2c3
Fix clippy warnings
2022-10-08 18:45:51 +02:00
gwenn
a37489ec93
Merge pull request #1217 from gwenn/modern_vtab
...
Include vtablog only with modern_sqlite feature
2022-10-05 19:35:52 +02:00
gwenn
7dab08c4b2
Fix clippy warnings
2022-10-02 11:34:58 +02:00
gwenn
79b6fd6e61
Merge remote-tracking branch 'upstream/master' into modern_vtab
...
# Conflicts:
# src/vtab/mod.rs
2022-09-02 20:33:21 +02:00
gwenn
6766d6a6cd
Remove old_sqlite
feature
...
And associated bindgen_3.6.8.rs
2022-08-30 13:05:47 -07:00
gwenn
6e740d0611
Change default minimal SQLite API version
...
From 3.6.8 to 3.14.0.
Use `old_sqlite` feature to keep 3.6.8 (or 3.7.16) as the minimal version.
Use `modern_sqlite` for SQLite API > 3.14.0.
Also remove old 3.6.23 and 3.7.7 bindings.
2022-08-30 13:05:47 -07:00
gwenn
2d9621b8ae
Include vtablog only with modern_sqlite feature
...
Make array, csvtab, series module work with either modern_sqlite or buildtime_bindgen
2022-08-17 19:24:42 +02:00
gwenn
618e9a1274
Clean code
...
Typos, deprecated code usages, ...
2022-05-29 13:33:51 +02:00
gwenn
d9b79a5f9e
Fix clippy warnings (derive_partial_eq_without_eq)
2022-05-29 11:32:47 +02:00
gwenn
33e5f127cf
Check current SQLite version while registering module
2022-04-04 06:24:51 -07:00
gwenn
6e0684b69f
Rustfmt
2022-04-04 06:24:51 -07:00
gwenn
106e46c424
Actually test DELETE, INSERT, UPDATE on vtablog
2022-04-04 06:24:51 -07:00
gwenn
aa511ea337
Fix clippy warning
2022-04-04 06:24:51 -07:00
gwenn
fe1150b0cf
Port vtablog
as an example of a writable VTab
2022-04-04 06:24:51 -07:00
gwenn
762321c15e
Introduce macro to avoid code duplication
2022-04-04 06:24:51 -07:00
gwenn
f04bec2fd5
Updatable eponymous virtual table
2022-04-04 06:24:51 -07:00
gwenn
3787f432a4
Add support to updatable virtual tables
2022-04-04 06:24:51 -07:00
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
65668a46e4
Add constants introduced by SQLite 3.38.0
...
SQLITE_STMTSTATUS_FILTER_MISS
SQLITE_STMTSTATUS_FILTER_HIT
SQLITE_INDEX_CONSTRAINT_LIMIT
SQLITE_INDEX_CONSTRAINT_OFFSET
2022-02-26 09:55:17 +01:00
gwenn
cc4f059d9b
Merge remote-tracking branch 'origin/master' into ptr_as_ptr
2022-01-06 18:20:01 +01: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
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
43591154b2
clippy:ptr_as_ptr
2022-01-05 19:50:25 +01:00
trevyn
c759bc7527
Consolidate to FromSqlError::InvalidBlobSize
(breaking)
2022-01-02 18:24:56 -08:00
trevyn
7f09d295ba
Add ToSql/FromSql for [u8; N]
2022-01-02 18:24:56 -08:00
gwenn
f177ee1c72
Sync series with official source
2021-12-22 19:49:33 +01:00
gwenn
0ce15c546a
Fix clippy warnings
2021-12-18 08:42:04 +01:00
gwenn
5d42ba7c29
Merge pull request #912 from Genomicsplc/fix-needless-update-warning
...
silence clippy::needless-update warning in vtab module creation functions
2021-10-23 16:57:45 +02:00
gwenn
b1257cdb79
Fix error: docs for unsafe trait missing # Safety
section
2021-10-21 19:50:03 +02:00
gwenn
ce90b519bb
Fix clippy warnings
2021-10-01 20:09:48 +02:00