I have an SQLite3 database file containing 2 tables, created with this DDL statements:
- CREATE TABLE objects(address TEXT PRIMARY KEY, ledger_account_number TEXT NOT NULL, management_company_name TEXT NOT NULL);
- CREATE TABLE measurement_units(measurement_unit TEXT NOT NULL);
Further, I have 2 forms with DBGrids.
So, here comes the question - how can I follow the principle of reusability and bind datasets of each DBGrid with a single database communication point? I want to perform independend INSERT, UPDATE, DELETE operations at run-time in these DBGrids, but I don't want to produce extra entities in DataModule (separate SQLQueries for each DBGrid, for example)