MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / max_migration_version

Function max_migration_version

crates/chat-cli/src/database/mod.rs:523–526  ·  view source on GitHub ↗
(conn: &C)

Source from the content-addressed store, hash-verified

521}
522
523fn 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
528fn has_migration<C: Deref<Target = Connection>>(
529 conn: &C,

Callers 2

migrateMethod · 0.85
test_migrateFunction · 0.85

Calls 1

getMethod · 0.45

Tested by 1

test_migrateFunction · 0.68