woob.tools.config.sqliteconfig
¶
-
class
woob.tools.config.sqliteconfig.
SQLiteConfig
(path, commit_since_seconds=None, dump_since_seconds=None, last_run=True, logger=None)¶ Bases:
woob.tools.config.iconfig.IConfig
-
commit
(**kwargs)¶
-
commit_since_seconds
= 3600¶
-
count
(table)¶
-
delete
(*args)¶ Delete an option from config.
- Parameters
args (str) – path to the option key.
-
dump
(**kwargs)¶
-
dump_since_seconds
= 600¶
-
ensure_table
(name)¶
-
force_save
()¶
-
get
(*args, **kwargs)¶ Get the value of an option.
- Parameters
args – path of the option key.
default – if specified, default value when path is not found
-
has
(*args)¶
-
items
(table, size=100)¶ Low memory way of listing all items. The size parameters alters how many items are fetched at a time.
-
keys
(table, size=200)¶ Low memory way of listing all keys. The size parameters alters how many items are fetched at a time.
-
load
(default={}, optimize=True)¶ Load config.
- Parameters
default (dict[
str
]) – default values for the config
-
save
(commit_since_seconds=None, dump_since_seconds=None)¶ Save config.
-
set
(*args)¶ Set a config value.
- Parameters
args (str or object) – all args except the last arg are the path of the option key.
-
tables
()¶
-