mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06:17 +00:00
parent
5367f068e1
commit
a73d42b9d8
@ -536,6 +536,7 @@ def parse_uri(database_uri):
|
|||||||
return dict(provider = 'postgres', user = uri.username, password = uri.password, host = uri.hostname, dbname = uri.path[1:], **args)
|
return dict(provider = 'postgres', user = uri.username, password = uri.password, host = uri.hostname, dbname = uri.path[1:], **args)
|
||||||
elif uri.scheme == 'mysql':
|
elif uri.scheme == 'mysql':
|
||||||
args.setdefault('charset', 'utf8mb4')
|
args.setdefault('charset', 'utf8mb4')
|
||||||
|
args.setdefault('binary_prefix', True)
|
||||||
return dict(provider = 'mysql', user = uri.username, passwd = uri.password, host = uri.hostname, db = uri.path[1:], **args)
|
return dict(provider = 'mysql', user = uri.username, passwd = uri.password, host = uri.hostname, db = uri.path[1:], **args)
|
||||||
return dict()
|
return dict()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user