3.1.1.1.1.13. thyrsis.database.sqlite module¶
-
class
thyrsis.database.sqlite.
DbCon
(conn_info, comment='')¶ Bases:
object
Wrapper for sqlite connection
-
close
()¶ Close the connection
- Returns
success state
- Return type
bool
-
commit
()¶ Commit changes :return: success state :rtype: bool
-
cursor
()¶ Return cursor of the connection
- Returns
cursor
- Return type
sqlite3.Cursor
-
execute
(query)¶ Execute the query
- Parameters
query – sql query
- Type
string
- Returns
success state
- Return type
bool
-
rollback
()¶ Cancel changes
- Returns
success state
- Return type
bool
-