Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Rename excludedDatabases for consistency (#32)

p0ny5703bc48c186
diff --git a/plugin/db/pg/pg.go b/plugin/db/pg/pg.go
index 7d0ea8f611..43b14938f6 100644
--- a/plugin/db/pg/pg.go
+++ b/plugin/db/pg/pg.go
@@ -324,13 +324,13 @@ func (driver *Driver) GetVersion(ctx context.Context) (string, error) {
}
func (driver *Driver) SyncSchema(ctx context.Context) ([]*db.DBUser, []*db.DBSchema, error) {
- excludedDatabases := map[string]bool{
+ excludedDatabaseList := map[string]bool{
// Skip our internal "bytebase" database
"bytebase": true,
}
// Skip all system databases
for k := range systemDatabases {
- excludedDatabases[k] = true
+ excludedDatabaseList[k] = true
}
// Query user info
@@ -348,7 +348,7 @@ func (driver *Driver) SyncSchema(ctx context.Context) ([]*db.DBUser, []*db.DBSch
schemaList := make([]*db.DBSchema, 0)
for _, database := range databases {
dbName := database.name
- if _, ok := excludedDatabases[dbName]; ok {
+ if _, ok := excludedDatabaseList[dbName]; ok {
continue
}