Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT → CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Resources:

- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Contributing

## How to contribute

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
2 changes: 2 additions & 0 deletions LICENSE → LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Project Name: mssql-django

MIT License

Copyright (c) Microsoft Corporation.
Expand Down
11 changes: 6 additions & 5 deletions README.rst → README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Project

.. image:: https://img.shields.io/pypi/v/django-mssql-backend.svg
:target: https://pypi.python.org/pypi/django-mssql-backend

Welcome to the MSSQL-Django 3rd party backend project!

*django-mssql-backend* is a fork of
`django-pyodbc-azure <https://pypi.org/project/django-pyodbc-azure/>`
*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.

Expand Down Expand Up @@ -245,6 +242,10 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
## Security Reporting Instructions
For security reporting instructions please refer to the SECURITY.md file in this repository.
## Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
Expand Down
4 changes: 1 addition & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->

## Security
# Security

Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).

Expand Down
3 changes: 3 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

#!/usr/bin/env python
import os
import sys
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

from setuptools import find_packages, setup

CLASSIFIERS = [
Expand Down
3 changes: 3 additions & 0 deletions sql_server/pyodbc/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

import sql_server.pyodbc.functions # noqa
3 changes: 3 additions & 0 deletions sql_server/pyodbc/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

"""
MS SQL Server database backend for Django.
"""
Expand Down
3 changes: 3 additions & 0 deletions sql_server/pyodbc/client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

import re
import subprocess

Expand Down
3 changes: 3 additions & 0 deletions sql_server/pyodbc/compiler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

import types
from itertools import chain

Expand Down
3 changes: 3 additions & 0 deletions sql_server/pyodbc/creation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

import binascii
import os

Expand Down
3 changes: 3 additions & 0 deletions sql_server/pyodbc/features.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

from django.db.backends.base.features import BaseDatabaseFeatures
from django.utils.functional import cached_property

Expand Down
3 changes: 3 additions & 0 deletions sql_server/pyodbc/functions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

from django import VERSION
from django.db.models import BooleanField
from django.db.models.functions import Cast
Expand Down
3 changes: 3 additions & 0 deletions sql_server/pyodbc/introspection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

import pyodbc as Database

from django.db.backends.base.introspection import (
Expand Down
3 changes: 3 additions & 0 deletions sql_server/pyodbc/management/commands/install_regex_clr.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

# Add regex support in SQLServer
# Code taken from django-mssql (see https://bitbucket.org/Manfre/django-mssql)

Expand Down
3 changes: 3 additions & 0 deletions sql_server/pyodbc/operations.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

import datetime
import uuid
import warnings
Expand Down
3 changes: 3 additions & 0 deletions sql_server/pyodbc/schema.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

import binascii
import datetime

Expand Down
3 changes: 3 additions & 0 deletions testapp/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

import uuid

from django.db import models
Expand Down
3 changes: 3 additions & 0 deletions testapp/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

import dj_database_url

DATABASES = {
Expand Down
3 changes: 3 additions & 0 deletions testapp/tests/test_constraints.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

from django.db.utils import IntegrityError
from django.test import TestCase, skipUnlessDBFeature

Expand Down
3 changes: 3 additions & 0 deletions testapp/tests/test_expressions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

from unittest import skipUnless

from django import VERSION
Expand Down
3 changes: 3 additions & 0 deletions testapp/tests/test_fields.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

from django.test import TestCase

from ..models import UUIDModel
Expand Down