ulauncher.util.db package

Submodules

ulauncher.util.db.KeyValueDb module

class ulauncher.util.db.KeyValueDb.KeyValueDb(basename)

Bases: object

Key-value in-memory database Use open() method to load DB from a file and commit() to save it

commit()

Write the database to a file

find(key, default=None)
get_records()
open()

Create a new data base or open existing one

put(key, value)
remove(key)
Parameters:key (str) –
Type:bool
Returns:True if record was removed

ulauncher.util.db.KeyValueJsonDb module

class ulauncher.util.db.KeyValueJsonDb.KeyValueJsonDb(basename)

Bases: ulauncher.util.db.KeyValueDb.KeyValueDb

Key-value JSON database Use open() method to load DB from a file and commit() to save it

commit()

Write the database to a file

open()

Create a new data base or open existing one

Module contents