MCPcopy Create free account
hub / github.com/erans/pgsqlite / test_current_database

Function test_current_database

src/functions/system_functions.rs:533–539  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

531
532 #[test]
533 fn test_current_database() {
534 let conn = Connection::open_in_memory().unwrap();
535 register_system_functions(&conn).unwrap();
536
537 let db_name: String = conn.query_row("SELECT current_database()", [], |row| row.get(0)).unwrap();
538 assert_eq!(db_name, "main");
539 }
540
541 #[test]
542 fn test_current_schema() {

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected