I am using the sqlite C API.
"Everything" main function (variable, open, execute a query, turn off the database, etc.) Additionally, I now want to do different user-defined tasks where I do, for example, the database But in a way.
What is the best way to pass this new function from DB objects and variables to main? Make them the world? Pass by reference? Is this what Sqlite3_create_function is for?
Please tell me how can I explain this question if necessary.
Thank you.
Pass the sqlite3 * db pointer as a argument on your function.
or use callback as seen in
Comments
Post a Comment