Skip to content

Commit

Permalink
add default config urls (jazzband#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
imghady committed Jan 4, 2024
1 parent 1412cef commit 77f8c6d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dj_database_url/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,14 @@ def parse(
parsed_config["OPTIONS"] = options

return parsed_config


class DefaultURLs:
POSTGRES = "postgres://postgres:@localhost:5432/postgres"
POSTGIS = "postgis://postgres:@localhost:5432/postgres"
MYSQL = "mysql://root:@localhost:3306/mysql"
SQLITE = "sqlite://:memory:"
MSSQL = "sqlserver://[localhost[][:1433]]"
ORACLE = "oracle:thin:HR/hr@localhost:5221:orcl"
REDSHIFT = "redshift://localhost:5439/dev"
COCKROACH = "postgres://postgres:@localhost:5432/postgres"

0 comments on commit 77f8c6d

Please sign in to comment.