We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b7ccf1 + b48c325 commit c8b01a3Copy full SHA for c8b01a3
Sources/PostgreSQL/Connection/PostgreSQLConnection+TableNameCache.swift
@@ -32,14 +32,14 @@ extension PostgreSQLConnection {
32
self.tableNames = tableNames
33
}
34
35
-
+
36
/// Fetches a struct that can convert table OIDs to table names.
37
///
38
/// SELECT oid, relname FROM pg_class
39
40
/// The table names will be cached on the connection after fetching.
41
- public func tableNames() -> Future<TableNameCache> {
42
- if let existing = tableNameCache {
+ public func tableNames(refresh: Bool = false) -> Future<TableNameCache> {
+ if let existing = tableNameCache, !refresh {
43
return future(existing)
44
} else {
45
struct PGClass: PostgreSQLTable {
0 commit comments