ffmddb.core.database module¶
-
class
ffmddb.core.database.Database(config_obj, config_file=None)¶ Stores a reference to a database (a configuration file and the files it specifies), providing methods to interact with it
-
close()¶
-
create_collection(name, path, mkdir_if_needed=True, keep_file=True)¶
-
create_document(document)¶
-
delete_collection(name, cascade=False)¶
-
delete_document(document)¶
-
classmethod
from_file(config_file)¶
-
classmethod
from_string(config_str, config_file=None)¶
-
get_collection(name)¶
-
get_documents(collection_name, query)¶
-
update_document(document, field, value)¶
-