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

Function test_current_user

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

Source from the content-addressed store, hash-verified

549
550 #[test]
551 fn test_current_user() {
552 let conn = Connection::open_in_memory().unwrap();
553 register_system_functions(&conn).unwrap();
554
555 let user: String = conn.query_row("SELECT current_user()", [], |row| row.get(0)).unwrap();
556 assert_eq!(user, "postgres");
557 }
558
559 #[test]
560 fn test_pg_backend_pid() {

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected