Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

https://img.shields.io/coveralls/MarkLark/dstore-mysql.svg https://img.shields.io/travis/MarkLark/dstore-mysql/master.svg https://img.shields.io/pypi/v/dstore-mysql.svg https://img.shields.io/pypi/pyversions/dstore-mysql.svg

DStore-MySQL is a MySQL storage layer for DStore. This allows you to use the same Model descriptions to Create, Read, Update and Delete from a MySQL DataBase.

Installing

PyMan is available from the PyPi repository.

This means that all you have to do to install DStore-MySQL is run the following in a console:

$ pip install dstore-mysql

Minimal Example

from dstore import Model, var, mod
from dstore_mysql import MySQLStore

class Car( Model ):
    _namespace = "cars.make"
    _vars = [
        var.RowID,
        var.String( "manufacturer", 32, mods = [ mod.NotNull() ] ),
        var.String( "make", 32, mods = [ mod.NotNull() ] ),
        var.Number( "year", mods = [ mod.NotNull(), mod.Min( 1950 ), mod.Max( 2017 ) ] ),
    ]

# Create the MemoryStore instance, and add Models to it
store = MySQLStore( self.models )
store.init_app()
store.set_config({
    "DSTORE_DB_HOST"  : "localhost",
    "DSTORE_DB_USER"  : "username",
    "DSTORE_DB_PASSWD": "password",
    "DSTORE_DB_DB"    : "dstoredb"
})
store.connect()
store.create_all()

# Destroy all instances and shut down the application
store.destroy_all()
store.disconnect()
store.destroy_app()

Documentation: ReadTheDocs

Source Code: GitHub

Release files for DStore-MySQL 0.1.0a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DStore-MySQL 0.1.0a2
File Size Uploaded
DStore-MySQL-0.1.0a2.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DStore-MySQL 0.1.0a2
File Interpreter ABI Platform
DStore_MySQL-0.1.0a2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 12.3 kB

Release files / DStore-MySQL-0.1.0a2.tar.gz

Download URL DStore-MySQL-0.1.0a2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f83c3e61c6d1a23c007ffb311b3bedf1a8b15d4e2b918361853445169ef8a329
BLAKE2b-256 checksum
How to use checksums
d08b63656ef9bddb1c042ebfcd8674667c8317083ecc409adce3d170cf0f7e3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / DStore_MySQL-0.1.0a2-py2.py3-none-any.whl

Download URL DStore_MySQL-0.1.0a2-py2.py3-none-any.whl
Size 7.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0e6a7e703789a2443e78cd622a27ad6da935cd6ae72c137ea1c00002ab62faef
BLAKE2b-256 checksum
How to use checksums
677955483234cd0b1513c9b69d0852b193d043a616bd27a979eec21fde0cbf8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0a2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page