Skip to content

Commit 99194c9

Browse files
chore: remove unused schema cache manager
1 parent 897b62e commit 99194c9

File tree

1 file changed

+0
-19
lines changed
  • crates/pg_schema_cache/src

1 file changed

+0
-19
lines changed

crates/pg_schema_cache/src/lib.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,6 @@ mod tables;
1010
mod types;
1111
mod versions;
1212

13-
use sqlx::postgres::PgPool;
14-
1513
pub use functions::{Behavior, Function, FunctionArg, FunctionArgs};
1614
pub use schema_cache::SchemaCache;
1715
pub use tables::{ReplicaIdentity, Table};
18-
19-
#[derive(Debug, Clone)]
20-
struct SchemaCacheManager {
21-
pub cache: SchemaCache,
22-
}
23-
24-
impl SchemaCacheManager {
25-
pub async fn init(pool: &PgPool) -> Self {
26-
SchemaCacheManager {
27-
cache: SchemaCache::load(pool).await,
28-
}
29-
}
30-
31-
pub async fn reload_cache(&mut self, pool: &PgPool) {
32-
self.cache = SchemaCache::load(pool).await;
33-
}
34-
}

0 commit comments

Comments
 (0)