gwenn
d874180333
Rust 2018 idioms
2018-12-07 21:57:04 +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
5e9c7bac4e
Rustfmt
2018-08-16 18:29:46 +02:00
gwenn
ec53f19be1
Backup progress callback can be Fn
.
2018-08-15 18:00:58 +02:00
gwenn
c925d1aa97
Rustfmt
2018-08-11 12:48:21 +02:00
gwenn
994d40da26
Fix clippy warnings
2018-05-04 19:55:55 +02:00
gwenn
08f96a678e
Rustfmt
2017-04-07 19:43:24 +02: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
gwenn
8f28ff17b8
Fix rustdoc warnings
2016-08-15 12:41:15 +02:00
gwenn
f529d130b9
Rustfmt
2016-02-02 19:12:00 +01:00
gwenn
12f26e78b3
Introduce RowIndex trait (like in rust-postgres)
2016-01-02 12:13:37 +01:00
John Gallagher
047861b928
Move Error
into its own module (internal organization only - public API remains).
2015-12-16 20:30:27 -05: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
eb60bb3111
Rename SqliteResult
-> Result
.
2015-12-12 14:06:03 -05:00
John Gallagher
f0b6bf9152
Rename SqliteError -> Error.
2015-12-12 13:53:58 -05:00
John Gallagher
4327a84edb
Rename SqliteConnection -> Connection.
...
Leave old name in as a (deprecated) typealias.
2015-12-12 13:53:34 -05:00
John Gallagher
49951ca3be
Add backup and restore methods to SqliteConnection (behind backup
Cargo feature)
2015-12-10 16:20:46 -05:00
John Gallagher
3781b8f47f
rustfmt backup.rs
2015-12-10 16:20:46 -05:00
John Gallagher
8c2e0a0da7
Rename BackupName -> DatabaseName
2015-12-10 16:20:45 -05:00
John Gallagher
5ebbf5a1a2
Use &str instead of String inside BackupName
2015-12-09 00:48:40 -05:00
John Gallagher
e2f8e73635
Initial implementation of the online backup API.
2015-12-09 00:19:59 -05:00