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 def9700 commit 7f2ade0Copy full SHA for 7f2ade0
1 file changed
scripts/osm2pgsql-replication
@@ -75,6 +75,10 @@ def pretty_format_timedelta(seconds):
75
def connect(args):
76
""" Create a connection from the given command line arguments.
77
"""
78
+ # If dbname looks like a conninfo string use it as such
79
+ if any(part in args.database for part in ['=', '://']):
80
+ return psycopg.connect(args.database)
81
+
82
return psycopg.connect(dbname=args.database, user=args.username,
83
host=args.host, port=args.port)
84
0 commit comments