I have a database in sqlite
. In order to access it I use some python
functions - for every table I create there own pair of functions. At least for python. My main application is in c++
.
For example for items_table
I create functions select_items
& update_items
(because I do not plan to add there remove operation for now).
Originally I wanted to do like this:
1. create database in sqlite3
2. create python layer with partial crud implementation
3. make wrapped object in c++ for every table (like ItemStorage which calls python functions)
4. use wrapped object in application
However the question is - it worth it? I mean I can access sqlite
directly from c++
and it will be basically the same as in python
. I created python
out of pure interest but in the end - do I need python layer or not?
Aucun commentaire:
Enregistrer un commentaire