Exemple #1
0
class BigCounterDoc(Document):
    config_database = database_name()
    config_collection = 'big_doc'

    auto = 'a', auto_increment(database_name(),
                               SIDECAR,
                               'BigCounterDoc',
                               increment=10)
Exemple #2
0
class MyDoc(Document):
    config_database = database_name()
    config_collection = 'test'

    auto = 'a', auto_increment(database_name(), SIDECAR, 'MyDoc')
Exemple #3
0
class MyFloatCounterDoc(Document):
    config_database = database_name()
    config_collection = 'float_test'

    auto = 'a', auto_increment(database_name(), SIDECAR, 'FloatDoc')
Exemple #4
0
    class MyDoc2(Document):
        config_database = database_name()
        config_collection = 'test'

        auto = 'a', auto_increment(database_name() + '_is_different', SIDECAR,
                                   'MyDoc2')