You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,39 @@
2
2
3
3
## How to contribute
4
4
5
+
### Run unit tests
6
+
After changes made to the project, it's a good idea to run the unit tests before making a pull request.
7
+
8
+
9
+
1.**Run SQL Server**
10
+
Make sure you have SQL Server running in your local machine.
11
+
Download and install SQL Server [here](https://www.microsoft.com/en-us/sql-server/sql-server-downloads), or you could use docker. Change `testapp/settings.py` to match your SQL Server login username and password.
12
+
13
+
```
14
+
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=MyPassword42' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest
15
+
```
16
+
2.**Clone Django**
17
+
In `mssql-django` folder.
18
+
```
19
+
# Install your local mssql-django
20
+
pip install -e .
21
+
22
+
# The unit test suite are in `Django` folder, so we need to clone it
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11
+
Redistribution and use in source and binary forms, with or without
12
+
modification, are permitted provided that the following conditions are met:
8
13
9
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14
+
* Redistributions of source code must retain the above copyright notice, this
15
+
list of conditions and the following disclaimer.
10
16
11
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
17
+
* Redistributions in binary form must reproduce the above copyright notice,
18
+
this list of conditions and the following disclaimer in the documentation
19
+
and/or other materials provided with the distribution.
20
+
21
+
* Neither the name of the copyright holder nor the names of its
22
+
contributors may be used to endorse or promote products derived from
23
+
this software without specific prior written permission.
24
+
25
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
29
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
33
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copy file name to clipboardExpand all lines: README.md
+20-10Lines changed: 20 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@ Welcome to the MSSQL-Django 3rd party backend project!
4
4
5
5
*mssql-django* is a fork of [django-mssql-backend](https://pypi.org/project/django-mssql-backend/). This project provides an enterprise database connectivity option for the Django Web Framework, with support for Microsoft SQL Server and Azure SQL Database.
6
6
7
-
We'd like to give thanks to the community that made this project possible, with particular recognition of the contributors: OskarPersson, michiya, dlo and the original Google Code django-pyodbc team. Moving forward we encourage partipation in this project from both old and new contributors!
7
+
We'd like to give thanks to the community that made this project possible, with particular recognition of the contributors: OskarPersson, michiya, dlo and the original Google Code django-pyodbc team. Moving forward we encourage partipation in this project from both old and new contributors!
8
8
9
9
We hope you enjoy using the MSSQL-Django 3rd party backend.
10
10
11
11
## Features
12
12
13
-
- Supports Django 2.2, 3.0
13
+
- Supports Django 2.2, 3.0 and 3.1
14
14
- Tested on Microsoft SQL Server 2016, 2017, 2019
15
15
- Passes most of the tests of the Django test suite
16
16
- Compatible with
@@ -20,12 +20,12 @@ We hope you enjoy using the MSSQL-Django 3rd party backend.
1. Install pyodbc 3.0 (or newer) and Django 2.2, 3.0 or 3.1
29
29
30
30
2. Install mssql-django:
31
31
@@ -74,14 +74,18 @@ in DATABASES control the behavior of the backend:
74
74
Boolean. Set this to `False` if you want to disable
75
75
Django's transaction management and implement your own.
76
76
77
+
- Trusted_Connection
78
+
79
+
String. Default is `"yes"`. Can be set to `"no"` if required.
80
+
77
81
and the following entries are also available in the `TEST` dictionary
78
82
for any given database-level settings dictionary:
79
83
80
84
- NAME
81
85
82
86
String. The name of database to use when running the test suite.
83
87
If the default value (`None`) is used, the test database will use
84
-
the name `"test\_" + NAME`.
88
+
the name `"test_" + NAME`.
85
89
86
90
- COLLATION
87
91
@@ -135,10 +139,12 @@ Dictionary. Current available keys are:
135
139
definition present in the ``freetds.conf`` FreeTDS configuration file
136
140
instead of a hostname or an IP address.
137
141
138
-
But if this option is present and it's value is ``True``, this
139
-
special behavior is turned off.
142
+
But if this option is present and its value is ``True``, this
143
+
special behavior is turned off. Instead, connections to the database
144
+
server will be established using ``HOST`` and ``PORT`` options, without
145
+
requiring ``freetds.conf`` to be configured.
140
146
141
-
See http://www.freetds.org/userguide/dsnless.htm for more information.
147
+
See https://www.freetds.org/userguide/dsnless.html for more information.
142
148
143
149
- unicode_results
144
150
@@ -149,7 +155,7 @@ Dictionary. Current available keys are:
149
155
- extra_params
150
156
151
157
String. Additional parameters for the ODBC connection. The format is
152
-
``"param=value;param=value"``.
158
+
``"param=value;param=value"``, [Azure AD Authentication](https://github.com/microsoft/mssql-django/wiki/Azure-AD-Authentication) can be added to this field.
153
159
154
160
- collation
155
161
@@ -216,7 +222,9 @@ Here is an example of the database settings:
216
222
217
223
The following features are currently not supported:
218
224
- mssql-django does not support SQL-based regex commands
219
-
- Altering a model field from or to AutoField at migration
225
+
- Altering a model field from or to AutoField at migration
226
+
227
+
Certain limitations for JSONField lookups, more details [here](https://github.com/microsoft/mssql-django/wiki/JSONField).
220
228
221
229
## Future Plans
222
230
@@ -225,6 +233,8 @@ The following features and additions are planned:
225
233
226
234
## Contributing
227
235
236
+
More details on contributing can be found [Here](CONTRIBUTING.md).
237
+
228
238
This project welcomes contributions and suggestions. Most contributions require you to agree to a
229
239
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
230
240
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
0 commit comments