Django backend for SQL Server using tds
Project description
SQL Server backend for Django 3.2
- django 3.2
- tested and used with SQL Server 2017
Requirements
-
optional:
- bitarray, recommended by python-tds for performance
- for regex support you need to compile
clr/django_clr.cs
and install the resulting assembly or read and then run thetds_django/sql/clr.sql
script. - for date "math" as well as bitshift operations you need to read and run the
tds_django/sql/init.sql
script.
Unsupported
- JSON
- foreign keys to a nullable field (limitation of SQL Server)
- feel free to read
tds_django/features.py
for more details.
Warning If you have used another backend before
- this one uses
uniqueidentifier
field for UUIDField while others may have used nvarchar.
settings.DATABASES
DATABASES = {
'default': {
'ENGINE': 'tds_django',
'HOST': 'localhost',
'PORT': '1433',
'NAME': '<db_name>',
'USER': '<db_user>',
'PASSWORD': '<db_password>',
},
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tds-django-0.1.tar.gz
(29.3 kB
view hashes)
Built Distribution
tds_django-0.1-py3-none-any.whl
(35.5 kB
view hashes)