Dirk Stolle
c33d6bfad3
fix several typos
2021-05-02 23:03:10 -07:00
gwenn
c9cc639080
Add tests adapted from official SQLite tests
2021-03-06 12:55:25 +01:00
gwenn
5e79126a60
Rustfmt
2021-02-28 12:58:59 +01:00
gwenn
1acd753a63
Sync series with official source
2021-02-28 12:43:46 +01:00
gwenn
0649df96ea
Fix non-autolinks warnings
2020-11-07 12:32:41 +01:00
gwenn
da94f8eba6
Make tests return Result
2020-11-05 22:14:00 +01:00
Thom Chiovoloni
22121772a2
Deprecate NO_PARAMS in favor of passing an empty array
2020-11-03 19:09:19 -08:00
gwenn
c577a9d801
Lifetime elision
2020-06-01 18:44:02 +02:00
gwenn
2af75d1f13
VTabCursor lifetime should be bound to VTab lifetime
...
```c
struct sqlite3_vtab_cursor {
sqlite3_vtab *pVtab; /* Virtual table of this cursor */
```
It seems that we need to introduce a lifetime on `VTab` trait
to express such constraint:
https://users.rust-lang.org/t/associated-type-with-lifetime-bound/7256
But there may be another/new way to do it.
2020-06-01 09:48:49 +02:00
Thom Chiovoloni
c9ef5bd63c
Make VTab / VTabCursor unsafe trait
as implmenting them on the wrong type is unsound
2020-04-15 10:33:04 -07:00
Thom Chiovoloni
3c6b57fe1b
Fix vtab::Module lifetime
2020-04-15 10:33:04 -07:00
Thom Chiovoloni
3196989f0d
Clarify that the submodules of rusqlite::vtab
are ports ( #672 )
2020-04-06 11:04:45 -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
d229f0f9e9
Remove #[macro_use] attribute when importing macros
2019-08-09 20:01:44 +02:00
gwenn
8862b17340
Fix clippy warnings
2019-02-02 11:37:26 +01:00
gwenn
d874180333
Rust 2018 idioms
2018-12-07 21:57:04 +01:00
gwenn
f04047db01
Rust 2018
2018-10-30 20:15:08 +01:00
gwenn
e7e03c3443
Introduce NO_PARAMS constant
...
As suggested here:
https://users.rust-lang.org/t/sql-parameter-values/20469/2
2018-09-16 11:10:19 +02:00
gwenn
c4ae541eac
Take IntoIterator rather than &[&ToSql]
( #312 )
2018-09-16 09:49:23 +02:00
gwenn
5e9c7bac4e
Rustfmt
2018-08-16 18:29:46 +02:00
gwenn
ce9d325ba0
Remove Table
associated type in VTabCursor trait
2018-07-22 10:02:59 +02:00
gwenn
669663304e
Refactoring
...
Introduce VTab::destroy.
Let implementation specify the iVersion.
Rename simple_module into read_only_module.
2018-07-16 20:17:53 +02:00
gwenn
fe64d51422
Doc
2018-07-15 10:19:18 +02:00
gwenn
45624dc60b
Clean up
2018-07-14 19:27:45 +02:00
gwenn
ed1bdc0e68
Rustfmt
2018-07-14 19:21:03 +02:00
gwenn
0c371834aa
Remove vtab() function from VTabCursor trait
2018-07-14 19:10:28 +02:00
gwenn
e2df03f474
Remove macros
2018-07-14 18:47:52 +02:00
gwenn
ce39b9a3c0
Introduce VTabConnection and OrderBy
2018-07-09 18:53:52 +02:00
gwenn
ce0c9a6344
Fix clippy warnings
2018-06-28 21:07:05 +02:00
gwenn
6463db906d
Make connect/create return a tuple
2018-06-22 17:20:47 +02:00
gwenn
861e8edb96
Move declare_vtab into Module trait
2018-06-20 20:29:55 +02:00
gwenn
eaee342025
Make connect/create/declare_vtab safe
2018-06-20 20:21:26 +02:00
gwenn
afeb5d4d47
Introduce Module trait to make create_module type safe
2018-06-20 20:01:38 +02:00
gwenn
b8594a0f83
Fix regressions
2018-06-10 19:21:55 +02:00
gwenn
fa64a4d0bf
Draft for carray module in Rust
...
Incomplete support for sqlite3_bind_pointer.
Make Context::set_result return a Result.
Add Values::get_array.
2018-06-10 18:29:38 +02:00
gwenn
b60ffe1940
Sync series with original impl
2018-05-13 19:49:11 +02:00
gwenn
88a7ed5812
Fix clippy warnings
2018-05-13 19:16:12 +02:00
gwenn
6cbeb6ef59
Introduce context module
...
To make `set_result` and `report_error` in functions module
visible to vtab module.
2018-05-13 11:44:31 +02:00
gwenn
58b8b4c95d
Introduce Aux associated type
2018-05-06 18:05:02 +02:00
gwenn
2e2b5c41f4
Rustfmt
2018-05-06 17:21:36 +02:00
gwenn
8e6ea05efa
Use associated types instead of generics
2018-05-06 17:19:19 +02:00
gwenn
5fa3810a4b
Fix Clippy warnings
2018-05-06 08:45:56 +02:00
gwenn
702e58f744
Fix non-eponymous virtual table declaration
...
Ensure that xCreate is different from xConnect for non-eponymous
virtual tables (even when the implementation is the same).
2018-05-05 10:33:05 +02:00
gwenn
4357471197
Fix build errors related to bitflags
2018-01-27 10:32:58 +01:00
gwenn
c842e789bd
Merge remote-tracking branch 'jgallagher/master' into vtab
2017-09-11 19:45:22 +02:00
gwenn
7f0082e44e
Merge remote-tracking branch 'jgallagher/master' into vtab
2017-03-08 20:35:07 +01:00
gwenn
8c6f585d52
Fix clippy warnings
2016-12-04 10:18:56 +01:00
gwenn
58b7d62517
Introduce IndexConstraintUsage
2016-08-20 12:06:24 +02:00
gwenn
b11a4b1c73
Make index constraints and values iterable
2016-08-20 09:55:25 +02:00
gwenn
1d342ef5f3
Test series virtual table
2016-08-15 09:09:38 +02:00