We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 897b62e commit 99194c9Copy full SHA for 99194c9
crates/pg_schema_cache/src/lib.rs
@@ -10,25 +10,6 @@ mod tables;
10
mod types;
11
mod versions;
12
13
-use sqlx::postgres::PgPool;
14
-
15
pub use functions::{Behavior, Function, FunctionArg, FunctionArgs};
16
pub use schema_cache::SchemaCache;
17
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