Commit graph

47 commits

Author SHA1 Message Date
Kenneth Reitz
bf55358444 fix for python3 2016-02-02 17:36:35 -05:00
Kenneth Reitz
a14d69adb2 Merge pull request #36 from svdgraaf/master
Added support for python mysql-connector
2016-02-02 17:34:09 -05:00
Kenneth Reitz
b7b75fa0b8 Merge pull request #42 from slafs/oraclesupport
add oracle support
2016-02-02 17:32:49 -05:00
Kenneth Reitz
19dc4ab90a Merge pull request #45 from tomwys/special_characters
Support special characters in user, password and name fields.
2016-02-02 17:32:03 -05:00
Kenneth Reitz
3e057546bb Merge pull request #52 from rcrdclub/master
Proper support for OPTIONS based on DATABASE_URL querystring
2016-02-02 17:09:47 -05:00
Kenneth Reitz
a5a4aaa624 Revert "Merge pull request #59 from eisensheng/master"
This reverts commit e13cc5ff96, reversing
changes made to 063ff555dd.
2016-02-02 17:08:10 -05:00
Kenneth Reitz
e13cc5ff96 Merge pull request #59 from eisensheng/master
Handle search path config in connect url for postgres
2016-02-02 17:05:56 -05:00
Arthur Skowronek
c12fa956fb Handle search path config in connect url for postgres 2015-11-11 18:47:21 +01:00
Sam Sandberg
b83dfb52ce Simplified the querystring parse logic
Apparently I was targetting an older version of python 2.7 where urlparse worked differently
2015-05-15 12:32:15 -04:00
Sam Sandberg
4cc995adc7 Travis didn't like my dict comprehension D: 2015-05-14 18:05:12 -04:00
Sam Sandberg
7f6717e434 Cleaned up querystring parsing
Moved `_parse_querystring_for_options()` into its own function
Added test for empty querystring params
2015-05-14 17:52:16 -04:00
Sam Sandberg
5336a0c014 Don't need this main() stuff for prod 2015-05-14 17:15:26 -04:00
Jeremy Shute
e8ea0a64fa supports database options 2015-05-14 17:15:26 -04:00
Peter J. Farrell
0dd4d2a0dd Add in optional support for CONN_MAX_AGE 2015-05-11 00:29:47 -05:00
Tomasz Wysocki
de8475f237 Support special characters in user, password and name fields. 2014-12-31 17:42:42 +01:00
Sławek Ehlert
10a7b4c7eb add oracle support 2014-10-24 21:05:40 +02:00
Danilo Bargen
8c7fa4a026 Added support for percent-encoded postgres paths
This allows the user to specify unix domain sockets as host.

Example: postgresql://%2Fvar%2Flib%2Fpostgresql/dbname

Reference: http://www.postgresql.org/docs/9.2/interactive/libpq-connect.html#AEN38162
2014-08-26 22:10:36 +02:00
Sander van de Graaf
56fbae1548 added support for python mysql-connector 2014-03-28 11:50:25 +01:00
Michael Warkentin
5abe35049f Add MySQL (GIS) support
Add mysqlgis url scheme which uses django.contrib.gis.db.backends.mysql,
add a test, and update the README.
2014-01-08 15:18:46 -05:00
Kenneth Reitz
958717e05d Merge pull request #26 from hiisi13/master
Ability to set different engine
2014-01-08 11:15:47 -08:00
Kenneth Reitz
e19ea2ed75 Merge pull request #22 from flashingpumpkin/master
Added spatialite backend
2014-01-08 11:13:44 -08:00
Kenneth Reitz
3963baf36b Merge pull request #13 from gabrielgrant/patch-1
Add "pgsql" as a PostgreSQL URL scheme.
2014-01-08 11:13:20 -08:00
Kenneth Reitz
19d7c8f1b9 Merge pull request #10 from cberner/master
This patch fixes the way urls are parsed to support blank passwords, usernames, hostnames...etc. This is particularly important in dev environments with Postgres, where blank passwords currently don't work
2014-01-08 11:12:37 -08:00
Dmitry Kozhedubov
fb302bc609 Ability to set different engine 2013-12-15 20:59:18 +04:00
Alen Mujezinovic
a573afce27 Added spatialite to uses_netloc too 2013-02-04 15:24:58 +00:00
Alen Mujezinovic
a1f61599ca Added spatialite backend 2013-02-01 16:33:44 +00:00
carlio
e17c0308c7 Replacing tab with spaces 2013-01-05 11:28:27 +01:00
carlio
a14743d00b Handling special case of sqlite://:memory: 2013-01-05 11:25:37 +01:00
carlio
fc70e019ba Empty sqlite path will now use a :memory: database 2013-01-05 11:22:45 +01:00
Gabriel Grant
c003896bc9 Add "pgsql" as a PostgreSQL URL scheme. 2012-09-08 13:42:37 -03:00
Christopher Berner
18a990511a Add support for blank fields (Django expects '' not None)
Fixes a bug with postgres, where blank passwords weren't supported.
2012-06-22 16:57:53 -07:00
Kenneth Reitz
c27a5e2b38 python3 support 2012-06-19 11:53:51 -04:00
Kenneth Reitz
78c2070456 remove query strings from name 2012-06-19 11:21:06 -04:00
Kenneth Reitz
df9319ac93 refactor scheme lookup 2012-06-19 10:57:33 -04:00
bencord0
34e1863af3 RedHat's OpenShift platform uses the 'postgresql' scheme.
Note:
Use .config(env=OPENSHIFT_DB_URL) or some other way to set DATABASE_URL=$OPENSHIFT_DB_URL
2012-06-17 16:09:29 +02:00
Zhao Xiaohong
90cbde873f Registerd postgis URL scheme. 2012-06-05 10:37:58 +08:00
Flavio Curella
5030d257b5 Added postgis:// url scheme 2012-06-03 12:23:37 -05:00
George Hickman
d5e81355a5 Use get() on os.environ instead of an if. 2012-05-30 09:46:21 +01:00
Kenneth Reitz
df7f4ec14b parse(s) 2012-05-30 01:51:08 -04:00
Kenneth Reitz
2a78118ec7 defaults for env 2012-05-30 01:23:28 -04:00
Jamie Matthews
6e2124c2d7 Add support for SQLite 2012-05-01 17:23:09 +01:00
Kenneth Reitz
e6cf053d94 typo 2012-04-30 15:04:06 -04:00
Kenneth Reitz
37340e253d parse / config 2012-04-30 14:55:37 -04:00
Kenneth Reitz
7462e79d51 new style 2012-04-30 14:33:12 -04:00
Kenneth Reitz
e345b7b1a0 docstring cuft 2012-04-30 13:43:40 -04:00
Kenneth Reitz
8329e83b8b Update dj_database_url.py 2012-04-30 14:37:48 -03:00
Kenneth Reitz
905db96bbb simple enough 2012-04-30 13:37:05 -04:00