Commit graph

43 commits

Author SHA1 Message Date
Matt Seymour
3e87a497f8 Re-format code to black, isort, flake8 2022-05-04 09:51:32 +01:00
Matt Seymour
973b0bcf35 Add flake8 and black config, re-format
* Adds a basic black and flake8 compatible config
* Reformat the code with black using skip string normalization
2022-01-11 12:56:31 +00:00
Ian Stapleton Cordasco
53c3d79d6e
Merge pull request #101 from mintel/psycopg2
fix #96 deprecated postgres backend strings
2018-05-03 10:15:01 -05:00
Jaye Doepke
628335f2d9 Add EXPECTED_POSTGRES_ENGINE 2018-05-02 11:10:20 -05:00
Jaye Doepke
8b48e4bd40 fix #96 deprecated postgres backend strings
The backend "django.db.backends.postgresql_psycopg2" has been deprecated
in Django 2.0 in favor of "django.db.backends.postgresql".

https://docs.djangoproject.com/en/2.0/releases/2.0/#id1
2018-03-28 17:14:04 -05:00
Enno Lohmeier
e2f43d97a1 use str port for mssql 2018-02-07 21:33:10 +01:00
Enno Lohmeier
ec2428fea0 add mssql support using pyodbc 2017-08-21 11:59:09 +02:00
klashxx
e370c860b8 Django expects Oracle Ports as strings 2017-04-08 12:46:36 +02:00
Alex Tomkins
be4c7f2262 Fix IPv6 address parsing 2017-01-20 15:06:53 +00:00
Kenneth Reitz
99b5b7c697 Merge pull request #73 from kingbuzzman/master
Fixes issue with unix file paths being turned to lower case
2017-01-05 12:45:29 -05:00
Daniel Berry
8a24aab17d added option of postgis backend to also add path parsing. (test added also) 2016-12-14 09:45:31 -06:00
Alexey Evseev
89a55460d6 Support schema definition for redshift
In addition to postgres, redshift database is also support schema.
Respect it by 'currentSchema' param.

Also, we need to not include this param as in in Django's DATABASES
settings. Otherwise, following error is raised:

```
django.db.utils.OperationalError: invalid connection option
"currentSchema"
```
2016-11-28 15:49:26 +03:00
makoto tsuyuki
d1139e3e71 add redshift support 2016-10-25 17:25:01 +09:00
buzzi
8974da0191 Fixes issue with unix file paths being turned to lower case 2016-09-28 17:01:57 +02:00
Kenneth Reitz
afc4d3946c Revert "Merge pull request #69 from johntellsall/issue-68-redis-support"
This reverts commit 183428f624, reversing
changes made to 7d89221325.
2016-06-22 19:22:29 -04:00
John Mitchell
e4632c989d fix spacing 2016-06-20 13:28:16 -07:00
John Mitchell
6e4ffaf394 add Redis support 2016-06-17 14:48:51 -07:00
Tobias Wilken
fc63b54ec7 Enable CA providing for MySQL URIs
Using `ssl-ca` from the command line as parameter to provide the CA.
Django MySQL database configuration uses a nested dictionary:

```
{'options': {
     'ssl': {
         'ca': 'PATH TO CA'
     }
 }
```
2016-04-06 18:15:08 +02:00
Kenneth Reitz
4ecda6a1cc Manual merge of #59
/cc eisensheng
2016-02-02 19:07: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
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
Jeremy Shute
e8ea0a64fa supports database options 2015-05-14 17:15:26 -04:00
Peter J. Farrell
da2844ca9d Added tests for CONN_MAX_AGE 2015-05-11 00:40:13 -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
Danilo Bargen
b2756e79d3 Fixed test_cleardb_parsing test 2014-08-26 22:08:11 +02:00
Sander van de Graaf
56fbae1548 added support for python mysql-connector 2014-03-28 11:50:25 +01:00
Jeff Paine
f07b16b35c Fix cleardb test
Although I find `assert url['PORT'] is None` more pythonic, PORT is set
in the main script via `'PORT': url.port or '',` so, we are obliged to
use checking for '' in our tests.
2014-03-03 02:07:39 -05: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
Dmitry Kozhedubov
fb302bc609 Ability to set different engine 2013-12-15 20:59:18 +04:00
carlio
4cb5f889bf Fixing test to actually use the result of the parse 2013-01-05 11:22:16 +01:00
carlio
0a7273be5f Adding in tests to ensure sqlite in-memory databases work 2013-01-05 11:19:54 +01:00
Kenneth Reitz
1c33ee47cf test environment variables 2012-06-19 11:23:05 -04:00
Kenneth Reitz
435997276f test for cleardb 2012-06-19 11:21:15 -04:00
Kenneth Reitz
f39a80e12a postgres test 2012-06-19 11:09:00 -04:00
Kenneth Reitz
73f3209707 tests 2012-06-19 11:03:52 -04:00