Commands
mongorunway.infrastructure.commands
¤
__aliases__: typing.List[str] = []
module-attribute
¤
__all__: typing.Tuple[str, ...] = ('make_snake_case_global_alias', 'CreateDatabase', 'DropDatabase', 'CreateCollection', 'DropCollection', 'InsertMany', 'InsertOne', 'DeleteOne', 'DeleteMany', 'UpdateOne', 'UpdateMany', 'ReplaceOne', 'CreateIndex', 'CreateIndexes', 'DropIndex', 'DropIndexes', 'RenameCollection', 'SendCommand')
module-attribute
¤
BulkWrite
¤
Bases: domain_command.MigrationCommand[results.BulkWriteResult]
Source code in mongorunway\infrastructure\commands.py
__slots__: typing.Sequence[str] = ('args', 'kwargs', 'collection', 'bulk_operations')
instance-attribute
class-attribute
¤
args = args
instance-attribute
¤
bulk_operations = bulk_operations
instance-attribute
¤
collection = collection
instance-attribute
¤
kwargs = kwargs
instance-attribute
¤
__init__(collection, bulk_operations, *args, **kwargs)
¤
Source code in mongorunway\infrastructure\commands.py
execute(ctx)
¤
Source code in mongorunway\infrastructure\commands.py
CreateCollection
¤
Bases: domain_command.MigrationCommand[mongo.Collection]
Source code in mongorunway\infrastructure\commands.py
CreateDatabase
¤
Bases: domain_command.MigrationCommand[mongo.Database]
Source code in mongorunway\infrastructure\commands.py
__slots__: typing.Sequence[str] = ('args', 'kwargs', 'collection', 'database')
instance-attribute
class-attribute
¤
args = args
instance-attribute
¤
collection = collection
instance-attribute
¤
database = database
instance-attribute
¤
kwargs = kwargs
instance-attribute
¤
__init__(collection, database, *args, **kwargs)
¤
CreateIndex
¤
Bases: domain_command.MigrationCommand[str]
Source code in mongorunway\infrastructure\commands.py
__slots__: typing.Sequence[str] = ('args', 'kwargs', 'keys', 'collection')
instance-attribute
class-attribute
¤
args = args
instance-attribute
¤
collection = collection
instance-attribute
¤
keys = keys
instance-attribute
¤
kwargs = kwargs
instance-attribute
¤
__init__(collection, keys, *args, **kwargs)
¤
Source code in mongorunway\infrastructure\commands.py
CreateIndexes
¤
Bases: domain_command.MigrationCommand[typing.List[str]]
Source code in mongorunway\infrastructure\commands.py
__slots__: typing.Sequence[str] = ('args', 'kwargs', 'keys', 'collection')
instance-attribute
class-attribute
¤
args = args
instance-attribute
¤
collection = collection
instance-attribute
¤
keys = keys
instance-attribute
¤
kwargs = kwargs
instance-attribute
¤
__init__(collection, keys, *args, **kwargs)
¤
Source code in mongorunway\infrastructure\commands.py
execute(ctx)
¤
DeleteMany
¤
Bases: domain_command.MigrationCommand[results.DeleteResult]
Source code in mongorunway\infrastructure\commands.py
__slots__: typing.Sequence[str] = ('args', 'kwargs', 'filter', 'collection')
instance-attribute
class-attribute
¤
args = args
instance-attribute
¤
collection = collection
instance-attribute
¤
filter = filter
instance-attribute
¤
kwargs = kwargs
instance-attribute
¤
__init__(collection, filter, *args, **kwargs)
¤
Source code in mongorunway\infrastructure\commands.py
execute(ctx)
¤
DeleteOne
¤
Bases: domain_command.MigrationCommand[results.DeleteResult]
Source code in mongorunway\infrastructure\commands.py
__slots__: typing.Sequence[str] = ('args', 'kwargs', 'filter', 'collection')
instance-attribute
class-attribute
¤
args = args
instance-attribute
¤
collection = collection
instance-attribute
¤
filter = filter
instance-attribute
¤
kwargs = kwargs
instance-attribute
¤
__init__(collection, filter, *args, **kwargs)
¤
Source code in mongorunway\infrastructure\commands.py
execute(ctx)
¤
DropCollection
¤
Bases: domain_command.MigrationCommand[None]
Source code in mongorunway\infrastructure\commands.py
DropDatabase
¤
Bases: domain_command.MigrationCommand[None]
Source code in mongorunway\infrastructure\commands.py
DropIndex
¤
Bases: domain_command.MigrationCommand[None]
Source code in mongorunway\infrastructure\commands.py
__slots__: typing.Sequence[str] = ('args', 'kwargs', 'index_or_name', 'collection')
instance-attribute
class-attribute
¤
args = args
instance-attribute
¤
collection = collection
instance-attribute
¤
index_or_name = index_or_name
instance-attribute
¤
kwargs = kwargs
instance-attribute
¤
__init__(collection, index_or_name, *args, **kwargs)
¤
Source code in mongorunway\infrastructure\commands.py
DropIndexes
¤
Bases: domain_command.MigrationCommand[None]
Source code in mongorunway\infrastructure\commands.py
InsertMany
¤
Bases: domain_command.MigrationCommand[results.InsertManyResult]
Source code in mongorunway\infrastructure\commands.py
__slots__: typing.Sequence[str] = ('args', 'kwargs', 'documents', 'collection')
instance-attribute
class-attribute
¤
args = args
instance-attribute
¤
collection = collection
instance-attribute
¤
documents = documents
instance-attribute
¤
kwargs = kwargs
instance-attribute
¤
__init__(collection, documents, *args, **kwargs)
¤
Source code in mongorunway\infrastructure\commands.py
execute(ctx)
¤
Source code in mongorunway\infrastructure\commands.py
InsertOne
¤
Bases: domain_command.MigrationCommand[results.InsertOneResult]
Source code in mongorunway\infrastructure\commands.py
__slots__: typing.Sequence[str] = ('args', 'kwargs', 'document', 'collection')
instance-attribute
class-attribute
¤
args = args
instance-attribute
¤
collection = collection
instance-attribute
¤
document = document
instance-attribute
¤
kwargs = kwargs
instance-attribute
¤
__init__(collection, document, *args, **kwargs)
¤
execute(ctx)
¤
RenameCollection
¤
Bases: domain_command.MigrationCommand[typing.MutableMapping[str, typing.Any]]
Source code in mongorunway\infrastructure\commands.py
__slots__: typing.Sequence[str] = ('args', 'kwargs', 'new_name', 'collection')
instance-attribute
class-attribute
¤
args = args
instance-attribute
¤
collection = collection
instance-attribute
¤
kwargs = kwargs
instance-attribute
¤
new_name = new_name
instance-attribute
¤
__init__(collection, new_name, *args, **kwargs)
¤
execute(ctx)
¤
Source code in mongorunway\infrastructure\commands.py
ReplaceOne
¤
Bases: domain_command.MigrationCommand[results.UpdateResult]
Source code in mongorunway\infrastructure\commands.py
__slots__: typing.Sequence[str] = ('args', 'kwargs', 'collection', 'filter', 'replacement')
instance-attribute
class-attribute
¤
args = args
instance-attribute
¤
collection = collection
instance-attribute
¤
filter = filter
instance-attribute
¤
kwargs = kwargs
instance-attribute
¤
replacement = replacement
instance-attribute
¤
__init__(collection, filter, replacement, *args, **kwargs)
¤
Source code in mongorunway\infrastructure\commands.py
execute(ctx)
¤
Source code in mongorunway\infrastructure\commands.py
SendCommand
¤
Bases: domain_command.MigrationCommand[typing.Any]
Source code in mongorunway\infrastructure\commands.py
UpdateMany
¤
Bases: domain_command.MigrationCommand[results.UpdateResult]
Source code in mongorunway\infrastructure\commands.py
__slots__: typing.Sequence[str] = ('args', 'kwargs', 'collection', 'filter', 'update')
instance-attribute
class-attribute
¤
args = args
instance-attribute
¤
collection = collection
instance-attribute
¤
filter = filter
instance-attribute
¤
kwargs = kwargs
instance-attribute
¤
update = update
instance-attribute
¤
__init__(collection, filter, update, *args, **kwargs)
¤
Source code in mongorunway\infrastructure\commands.py
execute(ctx)
¤
Source code in mongorunway\infrastructure\commands.py
UpdateOne
¤
Bases: domain_command.MigrationCommand[results.UpdateResult]