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

Function test_table_exists

src/metadata/object_resolver.rs:114–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112
113 #[test]
114 fn test_table_exists() {
115 let conn = Connection::open_in_memory().unwrap();
116
117 // Create test table
118 conn.execute("CREATE TABLE test_table (id INTEGER, name TEXT)", []).unwrap();
119
120 // Test table existence
121 assert!(ObjectResolver::table_exists(&conn, "test_table").unwrap());
122 assert!(!ObjectResolver::table_exists(&conn, "nonexistent_table").unwrap());
123
124 // Test case insensitive
125 assert!(ObjectResolver::table_exists(&conn, "TEST_TABLE").unwrap());
126 }
127
128 #[test]
129 fn test_resolve_column_oid() {

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected