10 from ctypes
import POINTER
11 from SQLamarr
import clib, c_TransformerPtr
15 from typing
import List, Union
17 clib.new_EditEventStore.argtypes = (
22 clib.new_EditEventStore.restype = c_TransformerPtr
26 Execute a transaction with multiple custom queries without
29 Refer to SQLamarr::EditEventStore for implementation details.
31 def __init__ (self, db: SQLite3DB, queries: Union[str,List[str]]):
33 Configure a Transformer to edit the schema of the EventStore
35 @param db: An open database connection.
36 @param queries: One or more queries to be processed in single transaction
38 if isinstance(queries, str):
41 self.
_self_self = clib.new_EditEventStore(
43 ";".join(queries).encode(
'ascii')
47 """@private: Release the bound class instance"""
48 clib.del_Transformer(self.
_self_self)
51 def raw_pointer(self):
52 """@private: Return the raw pointer to the algorithm."""
53 return self.
_self_self
Execute a transaction with multiple custom queries without returning any output.
def __init__(self, SQLite3DB db, Union[str, List[str]] queries)
Configure a Transformer to edit the schema of the EventStore.