Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From sqlsrv-0.0.1 To sqlsrv-0.0.2
2024-01-14
| ||
11:23 | Update changelog. check-in: 8a035d3c3d user: jan tags: trunk | |
11:18 | Dependency maintenance. check-in: faa6fca725 user: jan tags: sqlsrv-0.0.2, trunk | |
2024-01-11
| ||
13:01 | Update changelog. check-in: 1657f3c0fc user: jan tags: trunk | |
12:55 | Re-export rusqlite. check-in: 09bf302308 user: jan tags: trunk | |
2024-01-09
| ||
12:47 | Happy Clippy. check-in: 4eb07f3dd9 user: jan tags: sqlsrv-0.0.1, trunk | |
12:45 | Move from old repo. check-in: 0130f34b3a user: jan tags: trunk | |
Changes to Cargo.toml.
1 2 | 1 2 3 4 5 6 7 8 9 10 | - + | [package] name = "sqlsrv" |
︙ | |||
18 19 20 21 22 23 24 | 18 19 20 21 22 23 24 25 26 27 28 29 30 | - + | ] [dependencies] parking_lot = { version = "0.12.1" } r2d2 = { version = "0.8.10" } r2d2_sqlite = { version = "0.23.0" } rusqlite = { version = "0.30.0", features = ["hooks"] } |
Changes to examples/simple.rs.
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | + + + + - + | use rusqlite::{params, Connection, ToSql}; use sqlsrv::SchemaMgr; struct Schema {} impl SchemaMgr for Schema { fn init( &self, conn: &mut Connection, newdb: bool |
︙ |
Changes to src/lib.rs.
︙ | |||
25 26 27 28 29 30 31 32 33 34 35 36 37 38 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | + + | }; use parking_lot::{Condvar, Mutex}; use r2d2::{CustomizeConnection, PooledConnection}; use r2d2_sqlite::SqliteConnectionManager; pub use rusqlite; use rusqlite::{params, Connection, OpenFlags}; use threadpool::ThreadPool; pub use changehook::ChangeLogHook; pub use err::Error; |
︙ | |||
51 52 53 54 55 56 57 | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | - + - + | /// /// While this method can be used to perform schema upgrades, there are two /// specialized methods (`need_upgrade()` and `upgrade()`) that can be used /// for this purpose instead. /// /// The default implementation does nothing but returns `Ok(())`. #[allow(unused_variables)] |
︙ | |||
253 254 255 256 257 258 259 | 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | - + - + - + | // // Set up the read/write connection // // This must be done before creating the read-only connection pool, because // at that point the database file must already exist. // |
︙ | |||
342 343 344 345 346 347 348 | 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 | - + - + - + | // // Set up the read/write connection // // This must be done before creating the read-only connection pool, because // at that point the database file must already exist. // |
︙ |
Changes to www/changelog.md.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | + + + + + + | # Change Log ## [Unreleased] [Details](/vdiff?from=sqlsrv-0.0.1&to=trunk) ### Added - Re-export rusqlite. ### Changed - Pass mutable `Connection` to schema handler's `init()` and `upgrade()`. ### Removed --- ## [0.0.1] - 2024-01-09 |
︙ |