.. _f-dbengine: module ``dbengine`` =================== .. inheritance-diagram:: lightmlboard.dbengine Short summary +++++++++++++ module ``lightmlboard.dbengine`` Manages a sqlite3 database. :githublink:`%|py|5` Classes +++++++ +----------------------------------------------------------+----------------------------------------------+ | class | truncated documentation | +==========================================================+==============================================+ | :class:`Database ` | Common functions about sqlite3. | +----------------------------------------------------------+----------------------------------------------+ | :class:`DBException ` | Exception raised by class :class:`Database`. | +----------------------------------------------------------+----------------------------------------------+ Methods +++++++ +---------------------------------------------------------------------------------+-------------------------------------------------------------+ | method | truncated documentation | +=================================================================================+=============================================================+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------+-------------------------------------------------------------+ | :py:meth:`_check_connection ` | Check the SQL connection. | +---------------------------------------------------------------------------------+-------------------------------------------------------------+ | :py:meth:`_is_memory ` | Tells if the database takes place in memory (``:memory:``). | +---------------------------------------------------------------------------------+-------------------------------------------------------------+ | :meth:`close ` | Close the database. | +---------------------------------------------------------------------------------+-------------------------------------------------------------+ | :meth:`commit ` | Call this function after any insert request. | +---------------------------------------------------------------------------------+-------------------------------------------------------------+ | :meth:`connect ` | Opens a connection to the database. | +---------------------------------------------------------------------------------+-------------------------------------------------------------+ | :meth:`create_table ` | Creates a table. | +---------------------------------------------------------------------------------+-------------------------------------------------------------+ | :meth:`execute ` | Open a cursor with a query and return it to the user. | +---------------------------------------------------------------------------------+-------------------------------------------------------------+ | :meth:`get_file ` | Returns the file name. | +---------------------------------------------------------------------------------+-------------------------------------------------------------+ | :meth:`get_table_list ` | Returns the list of tables. | +---------------------------------------------------------------------------------+-------------------------------------------------------------+ | :meth:`has_rows ` | Tells if a table has rows. | +---------------------------------------------------------------------------------+-------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: lightmlboard.dbengine :members: :special-members: __init__ :show-inheritance: