(conn: &C)
| 521 | } |
| 522 | |
| 523 | fn max_migration_version<C: Deref<Target = Connection>>(conn: &C) -> Option<i64> { |
| 524 | let mut stmt = conn.prepare("SELECT MAX(version) FROM migrations").ok()?; |
| 525 | stmt.query_row([], |row| row.get(0)).ok() |
| 526 | } |
| 527 | |
| 528 | fn has_migration<C: Deref<Target = Connection>>( |
| 529 | conn: &C, |