Commit Graph

18 Commits

Author SHA1 Message Date
Adrian Holovaty d9401b78f1 Added first stab at 'django-admin.py inspectdb', which takes a database name and introspects the tables, outputting a Django model. Works in PostgreSQL and MySQL. It's missing some niceties at the moment, such as detection of primary-keys and relationships, but it works. Refs #90.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:08:24 +00:00
Jacob Kaplan-Moss 1510ca1a80 Fixed #227 -- the sqlite backend now correctly typecasts unicode objects to bytestrings (thanks hugo)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 21:49:57 +00:00
Jacob Kaplan-Moss 12ffae6df4 Fixed #197 -- thanks for finding that, mmarshall
git-svn-id: http://code.djangoproject.com/svn/django/trunk@309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25 22:15:07 +00:00
Jacob Kaplan-Moss e320a0936e Added sqlite3 database backend -- somewhat tested, but probably not 100% perfect.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@288 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 03:15:43 +00:00
Jacob Kaplan-Moss 78cff1837a Refactor dictfetch* methods from mysql backend out into a seperate module; this is so that future db backends that need these functions can share them.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 15:48:20 +00:00
Adrian Holovaty 3e09a1fc1c Quick bugfix to [207] -- MySQL doesn't have ILIKE
git-svn-id: http://code.djangoproject.com/svn/django/trunk@208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 15:24:27 +00:00
Adrian Holovaty 5797066383 Added support for istartswith and iendswith in database API
git-svn-id: http://code.djangoproject.com/svn/django/trunk@207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 15:24:03 +00:00
Adrian Holovaty 8f4fa5a4e7 Fixed #69 -- Implemented dictfetchone(), dictfetchmany() and dictfetchall() for mysql DB backend. Thanks, Manuzhai!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 02:13:20 +00:00
Adrian Holovaty 78206fd08c Fixed #56 -- MySQL id columns are now UNSIGNED. Thanks, Manuzhai!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 13:53:45 +00:00
Adrian Holovaty b1c543d091 Factored out database-specific date_trunc behavior into dbmod.get_date_trunc_sql(). Refs #46
git-svn-id: http://code.djangoproject.com/svn/django/trunk@161 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 20:16:06 +00:00
Adrian Holovaty 272b217557 Factored out database-specific date_extract behavior into dbmod.get_date_extract_sql(). Refs #46
git-svn-id: http://code.djangoproject.com/svn/django/trunk@159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 18:23:34 +00:00
Adrian Holovaty 6ae4def03b Fixed #42 -- OneToOneField now works with SQL generation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 17:22:17 +00:00
Adrian Holovaty 1e0fb3b7a3 Added helpful error message if DATABASE_NAME or DATABASE_USER is blank for postgresql
git-svn-id: http://code.djangoproject.com/svn/django/trunk@122 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 22:21:50 +00:00
Adrian Holovaty caef61945d Fixed #39 -- Thanks for the research, deelan!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 21:10:25 +00:00
Adrian Holovaty 5721396426 Fixed inconsistent capitalization in [109]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 16:56:27 +00:00
Adrian Holovaty 361be49fe7 Changed postgresql DB backend so that it gives a helpful error message if people are using psycopg 2 instead of version 1
git-svn-id: http://code.djangoproject.com/svn/django/trunk@109 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 16:55:11 +00:00
Adrian Holovaty 3c0ee70e7c Changed db/backends/postgresql.py to add the password and host params only if they're not blank
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-13 20:59:56 +00:00
Adrian Holovaty ed114e1510 Imported Django from private SVN repository (created from r. 8825)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-13 01:25:57 +00:00