Bo Maryniuk <bo@suse.de>
salt.modules.inspectlib.fsdb.CsvDB(path)¶File-based CSV database. This database is in-memory operating relatively small plain text csv files.
close()¶Close the database.
create_table_from_object(obj)¶Create a table from the object. NOTE: This method doesn't stores anything.
obj --
delete(obj, matches=None, mt=None, lt=None, eq=None)¶Delete object from the database.
obj --
matches --
mt --
lt --
eq --
flush(table)¶Flush table.
table --
get(obj, matches=None, mt=None, lt=None, eq=None)¶Get objects from the table.
table_name --
matches -- Regexp.
mt -- More than.
lt -- Less than.
eq -- Equals.
is_closed()¶Return if the database is closed.
list()¶List all the databases on the given path.
list_tables()¶Load existing tables and their descriptions.
new()¶Create a new database and opens it.
open(dbname=None)¶Open database from the path with the name or latest. If there are no yet databases, create a new implicitly.
purge(dbid)¶Purge the database.
dbid --
store(obj, distinct=False)¶Store an object in the table.
obj -- An object to store
distinct -- Store object only if there is none identical of such. If at least one field is different, store it.
update(obj, matches=None, mt=None, lt=None, eq=None)¶Update object(s) in the database.
obj --
matches --
mt --
lt --
eq --
salt.modules.inspectlib.fsdb.CsvDBEntity¶Serializable object for the table.