django-fake-database-backends


Namedjango-fake-database-backends JSON
Version 0.0.4 PyPI version JSON
download
home_pagehttps://github.com/David-Wobrock/django-fake-database-backends
SummaryFake django database backends to generate sql without a real database
upload_time2018-03-21 07:24:49
maintainer
docs_urlNone
authorDavid Wobrock
requires_python
licenseMIT
keywords django database backend sqlmigrate
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            =============================
Django fake database backends
=============================

.. image:: https://travis-ci.org/David-Wobrock/django-fake-database-backends.svg?branch=master
    :target: https://travis-ci.org/David-Wobrock/django-fake-database-backends

.. image:: https://img.shields.io/pypi/v/django-fake-database-backends.svg
    :target: https://pypi.python.org/pypi/django-fake-database-backends/

Motivations
-----------

This project intends to propose django database backends which can be used to generated SQL, without actually having the databases set up.
The main use case is using the built-in django command ``manage.py sqlmigrate``.

These backends are not intended to be used for any production, migration or storage.
They will nicely fail when you try to actually establish an actual database connection.

The need for this library comes from the tests of `django-migration-linter`_ which needed to generate SQL from a backend that was not sqlite3, but without having to install a database client library.

.. _`django-migration-linter`: https://github.com/3YOURMIND/django-migration-linter

Installation
------------

::

    pip install django-fake-database-backends

Usage
-----

In your project settings file, presumably ``settings.py``, use one of the available backends::

    DATABASES = {
        'default': {
            'ENGINE': 'django_fake_database_backends.backends.mysql',
        }
    }

Available backends
------------------

* ``django_fake_database_backends.backends.mysql``
* ``django_fake_database_backends.backends.sqlite3``

More will come in the future.

Tests
-----

The test suite uses `tox`_ and can be invoked using.

.. _`tox`: https://pypi.python.org/pypi/tox



            

Raw data

            {
    "maintainer": "", 
    "docs_url": null, 
    "requires_python": "", 
    "maintainer_email": "", 
    "cheesecake_code_kwalitee_id": null, 
    "keywords": "django database backend sqlmigrate", 
    "upload_time": "2018-03-21 07:24:49", 
    "author": "David Wobrock", 
    "home_page": "https://github.com/David-Wobrock/django-fake-database-backends", 
    "github_user": "David-Wobrock", 
    "download_url": "", 
    "platform": "", 
    "version": "0.0.4", 
    "cheesecake_documentation_id": null, 
    "description": "=============================\nDjango fake database backends\n=============================\n\n.. image:: https://travis-ci.org/David-Wobrock/django-fake-database-backends.svg?branch=master\n    :target: https://travis-ci.org/David-Wobrock/django-fake-database-backends\n\n.. image:: https://img.shields.io/pypi/v/django-fake-database-backends.svg\n    :target: https://pypi.python.org/pypi/django-fake-database-backends/\n\nMotivations\n-----------\n\nThis project intends to propose django database backends which can be used to generated SQL, without actually having the databases set up.\nThe main use case is using the built-in django command ``manage.py sqlmigrate``.\n\nThese backends are not intended to be used for any production, migration or storage.\nThey will nicely fail when you try to actually establish an actual database connection.\n\nThe need for this library comes from the tests of `django-migration-linter`_ which needed to generate SQL from a backend that was not sqlite3, but without having to install a database client library.\n\n.. _`django-migration-linter`: https://github.com/3YOURMIND/django-migration-linter\n\nInstallation\n------------\n\n::\n\n    pip install django-fake-database-backends\n\nUsage\n-----\n\nIn your project settings file, presumably ``settings.py``, use one of the available backends::\n\n    DATABASES = {\n        'default': {\n            'ENGINE': 'django_fake_database_backends.backends.mysql',\n        }\n    }\n\nAvailable backends\n------------------\n\n* ``django_fake_database_backends.backends.mysql``\n* ``django_fake_database_backends.backends.sqlite3``\n\nMore will come in the future.\n\nTests\n-----\n\nThe test suite uses `tox`_ and can be invoked using.\n\n.. _`tox`: https://pypi.python.org/pypi/tox\n\n\n", 
    "tox": true, 
    "lcname": "django-fake-database-backends", 
    "bugtrack_url": null, 
    "github": true, 
    "coveralls": false, 
    "name": "django-fake-database-backends", 
    "license": "MIT", 
    "travis_ci": true, 
    "github_project": "django-fake-database-backends", 
    "summary": "Fake django database backends to generate sql without a real database", 
    "split_keywords": [
        "django", 
        "database", 
        "backend", 
        "sqlmigrate"
    ], 
    "author_email": "david.wobrock@gmail.com", 
    "urls": [
        {
            "has_sig": false, 
            "upload_time": "2018-03-21T07:24:49", 
            "comment_text": "", 
            "python_version": "py2.py3", 
            "url": "https://pypi.python.org/packages/75/97/6e22f88f8075abb17569581bc3878dc199ca6a2e0c23977a725f814d0083/django_fake_database_backends-0.0.4-py2.py3-none-any.whl", 
            "md5_digest": "36b5c6dcc522b50e53a5893353e9c9a0", 
            "downloads": 0, 
            "filename": "django_fake_database_backends-0.0.4-py2.py3-none-any.whl", 
            "packagetype": "bdist_wheel", 
            "path": "75/97/6e22f88f8075abb17569581bc3878dc199ca6a2e0c23977a725f814d0083/django_fake_database_backends-0.0.4-py2.py3-none-any.whl", 
            "size": 18606
        }
    ], 
    "_id": null, 
    "cheesecake_installability_id": null
}