Skip to content

bug: parseConnectionString #34

Closed
Closed
@booo

Description

@booo

The parseConnectionString function does not work for connection strings containing for example ? as char. This is because we use url.parse()

  parseConnectionString: function(str) {
    var result = url.parse(str);
    result.host = result.hostname;
    result.database = result.pathname ? result.pathname.slice(1) : null;
    var auth = (result.auth || ':').split(':');
    result.user = auth[0];
    result.password = auth[1];
    return result;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions