mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-23 05:07:54 +00:00
sql: allow dburl prefix 'sql:'
This commit is contained in:
parent
0db41520c3
commit
9711803e61
5
src/sql
5
src/sql
|
@ -762,9 +762,10 @@ sub check_permissions {
|
|||
sub parse_dburl {
|
||||
my $url = shift;
|
||||
my %options = ();
|
||||
# mysql://[[user][:password]@][host][:port]/[database[?sql statement]]
|
||||
# sql:mysql://[[user][:password]@][host][:port]/[database[?sql statement]]
|
||||
|
||||
if($url=~m!((?:oracle|ora|mysql|pg|postgres|postgresql)(?:s|ssl|)|
|
||||
if($url=~m!(?:sql:)? # You can prefix with 'sql:'
|
||||
((?:oracle|ora|mysql|pg|postgres|postgresql)(?:s|ssl|)|
|
||||
(?:sqlite|sqlite2|sqlite3)):// # Databasedriver ($1)
|
||||
(?:
|
||||
([^:@]*) # Username ($2)
|
||||
|
|
Loading…
Reference in a new issue