+7
-13
lines changedFilter options
+7
-13
lines changed Original file line number Diff line number Diff line change
@@ -696,9 +696,9 @@ func loadConfigurationFile(path string) (options, error) {
696
696
}
697
697
o.Format = []rune(dbFormat)[0]
698
698
699
-
o.Schemas = parseIdentifierList(s.Key("schemas").String())
700
-
o.ExcludedSchemas = parseIdentifierList(s.Key("exclude_schemas").String())
701
-
o.Tables = parseIdentifierList(s.Key("tables").String())
699
+
o.Schemas = s.Key("schemas").Strings(",")
700
+
o.ExcludedSchemas = s.Key("exclude_schemas").Strings(",")
701
+
o.Tables = s.Key("tables").Strings(",")
702
702
o.ExcludedTables = s.Key("exclude_tables").Strings(",")
703
703
704
704
if s.HasKey("pg_dump_options") {
@@ -727,16 +727,6 @@ func loadConfigurationFile(path string) (options, error) {
727
727
return opts, nil
728
728
}
729
729
730
-
func parseIdentifierList(rawList string) []string {
731
-
ids := make([]string, 0)
732
-
if len(strings.TrimSpace(rawList)) > 0 {
733
-
for _, t := range strings.Split(rawList, ";") {
734
-
ids = append(ids, strings.TrimSpace(t))
735
-
}
736
-
}
737
-
return ids
738
-
}
739
-
740
730
func mergeCliAndConfigOptions(cliOpts options, configOpts options, onCli []string) options {
741
731
opts := configOpts
742
732
Original file line number Diff line number Diff line change
@@ -15,9 +15,13 @@ GRANT CONNECT ON DATABASE b2 TO u2;
15
15
SET ROLE u1;
16
16
CREATE TABLE t1 AS SELECT generate_series(0, 9) i;
17
17
CREATE TABLE t2 AS SELECT generate_series(10, 19) j;
18
+
CREATE TABLE t3 AS SELECT generate_series(0, 9) i;
19
+
CREATE TABLE t4 AS SELECT generate_series(10, 19) j;
18
20
19
21
\c b2
20
22
21
23
SET ROLE u2;
22
24
CREATE TABLE t1 AS SELECT generate_series(0, 9) i;
23
25
CREATE TABLE t2 AS SELECT generate_series(10, 19) j;
26
+
CREATE TABLE t3 AS SELECT generate_series(0, 9) i;
27
+
CREATE TABLE t4 AS SELECT generate_series(10, 19) j;
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4