userver: testsuite.databases.mongo.mongo_schema.MongoSchemas Class Reference
Loading...
Searching...
No Matches
testsuite.databases.mongo.mongo_schema.MongoSchemas Class Reference

Detailed Description

Definition at line 48 of file mongo_schema.py.

Inheritance diagram for testsuite.databases.mongo.mongo_schema.MongoSchemas:

Public Member Functions

 __init__ (self, MongoSchemaCache cache, typing.Iterable[types.PathOrStr] directories)
 __getitem__ (self, name)
 __iter__ (self)
int __len__ (self)

Protected Attributes

 _cache = cache
list _directories
dict _schema_by_collection = {}

Constructor & Destructor Documentation

◆ __init__()

testsuite.databases.mongo.mongo_schema.MongoSchemas.__init__ ( self,
MongoSchemaCache cache,
typing.Iterable[types.PathOrStr] directories )

Definition at line 49 of file mongo_schema.py.

Member Function Documentation

◆ __getitem__()

testsuite.databases.mongo.mongo_schema.MongoSchemas.__getitem__ ( self,
name )

Definition at line 70 of file mongo_schema.py.

◆ __iter__()

testsuite.databases.mongo.mongo_schema.MongoSchemas.__iter__ ( self)

Definition at line 75 of file mongo_schema.py.

◆ __len__()

int testsuite.databases.mongo.mongo_schema.MongoSchemas.__len__ ( self)

Definition at line 79 of file mongo_schema.py.

Member Data Documentation

◆ _cache

testsuite.databases.mongo.mongo_schema.MongoSchemas._cache = cache
protected

Definition at line 54 of file mongo_schema.py.

◆ _directories

list testsuite.databases.mongo.mongo_schema.MongoSchemas._directories
protected
Initial value:
= [
pathlib.Path(directory) for directory in directories
]

Definition at line 55 of file mongo_schema.py.

◆ _schema_by_collection

dict testsuite.databases.mongo.mongo_schema.MongoSchemas._schema_by_collection = {}
protected

Definition at line 58 of file mongo_schema.py.


The documentation for this class was generated from the following file: