gwenn
208f3c084b
Clippy: fix warnings
2019-07-10 21:10:12 +02:00
Thom Chiovoloni
4356f5a176
Include the name of the column in InvalidColumnType errors
2019-06-25 12:20:11 -07:00
gwenn
93b5c10816
Fix warning: the item X
is imported redundantly
2019-06-02 08:36:16 +02:00
Richard Dodd
6c837a3f51
Fix other failing case
2019-04-26 15:30:49 +01:00
gwenn
ceb1ce4a55
Rustfmt
2019-03-19 20:45:04 +01:00
gwenn
71a2004894
Add Rows::map method
2019-03-10 12:58:20 +01:00
gwenn
6d9ae896b5
Do not panic by default
...
Replace `Row::get` by `Row::get_checked`,
And rename original `Row::get` to `Row::get_unwrap`.
`Stmt::query_map`, `Stmt::query_map_named`, `Stmt::query_row`,
`Conn::query_row` and `Conn::query_row_named` callback parameter must return a `Result`.
2019-02-21 20:48:09 +01:00
gwenn
e9896a7734
Lifetime elision in impl
2019-02-03 11:02:38 +01:00
gwenn
8862b17340
Fix clippy warnings
2019-02-02 11:37:26 +01:00
gwenn
75c0fe349a
Add xShadowName only if bundled
or vtab_v3
activated
2018-12-15 11:53:41 +01:00
gwenn
287e2f5dbc
Fix vtab modules
...
`xShadowName` added
2018-12-15 10:51:02 +01:00
gwenn
d874180333
Rust 2018 idioms
2018-12-07 21:57:04 +01:00
gwenn
bcaa929748
Merge remote-tracking branch 'jgallagher/master' into 2018
...
# Conflicts:
# src/lib.rs
# src/statement.rs
2018-11-05 20:04:04 +01:00
gwenn
ccf52b2daa
Replace try!
by ?
2018-11-05 19:09:41 +01:00
gwenn
495f1d529a
Clippy
2018-11-01 09:40:56 +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
1598d4bc30
Rustfmt
2018-10-28 08:51:02 +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
b38fe372b6
[ci skip] fix doc
2018-09-08 11:10:08 +02:00
gwenn
5e9c7bac4e
Rustfmt
2018-08-16 18:29:46 +02:00
gwenn
0ccf98d214
Merge remote-tracking branch 'jgallagher/master' into vtab
2018-08-11 13:37:56 +02:00
gwenn
40ef85c2af
Fix array module
2018-08-07 19:58:26 +02:00
gwenn
e8dc412af1
[ci skip] Make test_array_module fails without sanitizer
2018-08-05 16:56:30 +02:00
gwenn
cea8e5cea2
[ci skip] Array module is buggy
...
AddressSanitizer: heap-use-after-free on address
2018-08-05 13:22:04 +02:00
gwenn
ce9d325ba0
Remove Table
associated type in VTabCursor trait
2018-07-22 10:02:59 +02:00
gwenn
b82a155429
Introduces CreateVTab for non-eponymous VTab
2018-07-22 09:51:06 +02:00
gwenn
b93b005604
Add some TODOs
2018-07-17 21:06:08 +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
849dbda5e8
Remove direct dependency on libsqlite3_sys
2018-07-15 16:15:55 +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
823f3c96aa
Ensure Virtual tables can be declared outside rusqlite
crate
...
Not sure it is the way to go.
2018-07-14 11:01:19 +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
2a684384fd
Fix clippy warning
2018-06-20 19:12:02 +02:00
gwenn
b135c6d871
Minalist check that there is no memory leak.
2018-06-11 21:39:08 +02:00
gwenn
e040dc9e1f
Remove int_array module
...
Replaced by array module.
2018-06-11 21:33:54 +02:00
gwenn
1a1d41b4e4
Carray module ported to Rust
2018-06-11 21:30:55 +02:00
gwenn
9a96e3a494
Reduce visibility of unsafe methods
2018-06-11 19:51:13 +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
b89b574f81
csvtab: use columns
when specified
2018-05-14 19:23:17 +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
33b1b19d92
Upgrade to csv 1.0
2018-05-13 12:21:58 +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
10ba0514e6
Change arguments parsing of CSV module
2018-05-06 12:41:42 +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
db87de4086
Inline csv dependency
2018-03-10 17:05:22 +01: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
197d1161c3
Field estimatedRows is not available with SQLite 3.7.7
2017-04-21 21:50:38 +02:00
gwenn
7f0082e44e
Merge remote-tracking branch 'jgallagher/master' into vtab
2017-03-08 20:35:07 +01:00
gwenn
46df930881
Merge remote-tracking branch 'jgallagher/master' into vtab
2016-12-31 09:15:26 +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
gwenn
b4db5666b6
Misc
2016-08-14 19:57:39 +02:00
gwenn
424a6c0cc8
Add series table-valued-function.
2016-08-14 19:53:47 +02:00
gwenn
3b5bd7abab
Introduce IndexConstraintOp
2016-08-14 12:26:05 +02:00
gwenn
4d2e881706
Partial IndexInfo implementation
2016-08-14 11:22:12 +02:00
gwenn
438312c132
Change signature of VTab::best_index
2016-08-14 09:44:37 +02:00
gwenn
505abc0331
Change signature of VTabCursor::filter
2016-08-14 09:31:53 +02:00
gwenn
a90388e6bf
Change signature of VTab::best_index
2016-08-14 09:08:42 +02:00
gwenn
c8b09e2ee7
Change VTabCursor::column signature
2016-08-13 17:46:49 +02:00
gwenn
8f079819f7
Change VTabCursor::filter signature
2016-08-13 13:55:30 +02:00
gwenn
0a19cbd16a
Change VTabCursor::filter signature
2016-08-13 13:12:48 +02:00
gwenn
59ad638875
Change VTab::create signature
2016-08-13 11:54:19 +02:00
gwenn
cbc479c484
Rustfmt
2016-05-20 18:36:44 +02:00
gwenn
0740620ffe
Merge remote-tracking branch 'jgallagher/master' into vtab
2016-05-20 18:31:30 +02:00
gwenn
42d95f042f
Fix tests and improve InvalidColumnType error message.
2016-05-18 21:25:13 +02:00
gwenn
8e92ef6cf3
SQLite Modules cannot be destroyed.
2016-05-07 12:04:16 +02:00
gwenn
6fb549420b
Rustfmt
2016-05-03 21:00:59 +02:00
gwenn
59872a1850
Fix clippy warnings
2016-04-02 17:16:17 +02:00
gwenn
b802230d56
Fix warnings
2016-03-30 18:28:03 +02:00
gwenn
d5e4fdfa52
Try to fix Travis build.
2016-02-13 17:28:37 +01:00
gwenn
a9fa2baa3e
Ensure there is one csv reader by cursor.
2016-02-12 20:17:42 +01:00
gwenn
8b5f871386
Add some missing doc
2016-02-11 21:47:47 +01:00
gwenn
1dd5c49937
Fix escape_double_quote
2016-02-11 21:19:18 +01:00
gwenn
38209ffef3
First minimalist test for csvtab implementation.
2016-02-11 19:16:05 +01:00
gwenn
3fbeccdf55
Fix CSVTab::next method.
2016-02-10 20:48:30 +01:00
gwenn
ed5637f513
Fix CSVTab::create method.
2016-02-10 20:30:08 +01:00
gwenn
1e6e8115bb
Introduce VTab and VTabCursor traits.
2016-02-10 18:15:46 +01:00
gwenn
30d1464e93
Improve error handling.
2016-02-10 18:07:58 +01:00
gwenn
933000b57a
Partial CSV virtual table implementation.
2016-02-08 18:06:11 +01:00
gwenn
2dc4230223
Split vtab module in two.
...
A part specific to int array module.
And a generic part.
2016-02-03 20:11:34 +01:00