Metadata-Version: 1.0
Name: pwmd
Version: 0.2
Summary: Master Slave Support For PeeWee
Home-page: UNKNOWN
Author: Young King
Author-email: yanckin@gmail.com
License: BSD
Description: pwmd
        =====================
        Master/Slave Support For PeeWee. Now only support mysql. 
        
        The source code is locate at `github <https://github.com/youngking/pwmd>`_ .
        
        .. image:: https://travis-ci.org/youngking/pwmd.png?branch=master
           :alt: Build Status
        
        
        
        Usage
        ====================
        
        ::
        
            from peewee import Model, CharField, DateField, BooleanField
            from pwmd import MultiMySQLDatabase
        
            DATABASE = {'master': 'mysql://root@localhost/test_app',
                        'slaves': ['mysql://root@localhost/test_app']}
            db = MultiMySQLDatabase(DATABASE)
            db.connect()
        
        
            class BaseModel(Model):
                class Meta:
                    database = db
        
        
            class Person(BaseModel):
                name = CharField()
                birthday = DateField()
                is_relative = BooleanField()
        
        
Keywords: multi database orm peewee
Platform: UNKNOWN
