Commit Graph

13 Commits

Author SHA1 Message Date
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
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
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