HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.
2.0.0-chaika
Hierarchical Cluster Engine Python language binding
|
Common use wrapper class to interact with the ORM databases Provide CRUD interface (create, read, update, delete) entries. More...
Public Member Functions | |
def | __init__ (self, config_dic) |
constructor initialize fields More... | |
def | getErrorCode (self) |
get error code return error code last performed action (e.g. More... | |
def | getErrorMsg (self) |
get error message return error message last performed action (e.g. More... | |
def | insert (self, task) |
insert insert objects into the database More... | |
def | fetch (self, obj, clause) |
fetch fetch objects from the database More... | |
def | sql (self, obj, clause) |
sql fetch objects from the database More... | |
def | fetchAll (self, tasks) |
fetchAll fetch all objects from the database More... | |
def | update (self, obj, clause) |
update update objects in the database More... | |
def | insertOnUpdate (self, tasks, clause) |
insertOnUpdate insert new object or update object if exists in the table More... | |
def | delete (self, obj, clause) |
delete delete objects from the database More... | |
def | deleteAll (self, tasks) |
deleteAll delete all objects from the database More... | |
Public Attributes | |
session | |
errorCode | |
errorMessage | |
Common use wrapper class to interact with the ORM databases Provide CRUD interface (create, read, update, delete) entries.
Definition at line 29 of file ftests_db_in_memory.py.
def ftests_db_in_memory.DBI.__init__ | ( | self, | |
config_dic | |||
) |
constructor initialize fields
config_dic | dict object instance from config section |
Definition at line 37 of file ftests_db_in_memory.py.
def ftests_db_in_memory.DBI.delete | ( | self, | |
obj, | |||
clause | |||
) |
delete delete objects from the database
obj- | list of objects (not mandatory the same type) for deleting |
clause | - sql clause for deleting the object from the table |
Definition at line 215 of file ftests_db_in_memory.py.
def ftests_db_in_memory.DBI.deleteAll | ( | self, | |
tasks | |||
) |
deleteAll delete all objects from the database
tasks | - object type for deleting |
Definition at line 237 of file ftests_db_in_memory.py.
def ftests_db_in_memory.DBI.fetch | ( | self, | |
obj, | |||
clause | |||
) |
fetch fetch objects from the database
obj | - list of objects (not mandatory the same type) for fetching |
clause | - sql clause for fetching the object from table |
Definition at line 102 of file ftests_db_in_memory.py.
def ftests_db_in_memory.DBI.fetchAll | ( | self, | |
tasks | |||
) |
fetchAll fetch all objects from the database
tasks | - object type for fetching |
Definition at line 142 of file ftests_db_in_memory.py.
def ftests_db_in_memory.DBI.getErrorCode | ( | self | ) |
get error code return error code last performed action (e.g.
insert, update, etc.)
Definition at line 62 of file ftests_db_in_memory.py.
def ftests_db_in_memory.DBI.getErrorMsg | ( | self | ) |
get error message return error message last performed action (e.g.
insert, update, etc.)
Definition at line 71 of file ftests_db_in_memory.py.
def ftests_db_in_memory.DBI.insert | ( | self, | |
task | |||
) |
insert insert objects into the database
tasks | - list of objects (not mandatory the same type) for insertion |
Definition at line 82 of file ftests_db_in_memory.py.
def ftests_db_in_memory.DBI.insertOnUpdate | ( | self, | |
tasks, | |||
clause | |||
) |
insertOnUpdate insert new object or update object if exists in the table
tasks | - list of objects (not mandatory the same type) for updating |
clause | - (deprecated) sql clause for updating the object in the table |
Definition at line 192 of file ftests_db_in_memory.py.
def ftests_db_in_memory.DBI.sql | ( | self, | |
obj, | |||
clause | |||
) |
sql fetch objects from the database
obj | - list of objects (not mandatory the same type) for fetching |
clause | - sql clause for fetching the object from table |
Definition at line 123 of file ftests_db_in_memory.py.
def ftests_db_in_memory.DBI.update | ( | self, | |
obj, | |||
clause | |||
) |
update update objects in the database
tasks | - list of objects (not mandatory the same type) for updating |
clause | - sql clause for updating the object in the table |
Definition at line 167 of file ftests_db_in_memory.py.
ftests_db_in_memory.DBI.errorCode |
Definition at line 53 of file ftests_db_in_memory.py.
ftests_db_in_memory.DBI.errorMessage |
Definition at line 54 of file ftests_db_in_memory.py.
ftests_db_in_memory.DBI.session |
Definition at line 51 of file ftests_db_in_memory.py.