summaryrefslogtreecommitdiff
path: root/src/analysis/db/collection-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/db/collection-int.h')
-rw-r--r--src/analysis/db/collection-int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/analysis/db/collection-int.h b/src/analysis/db/collection-int.h
index 6ca9ab4..93e0ef8 100644
--- a/src/analysis/db/collection-int.h
+++ b/src/analysis/db/collection-int.h
@@ -32,6 +32,9 @@
+/* Crée la table associée à une collection d'éléments. */
+typedef bool (* collec_create_db_table_fc) (const GDbCollection *, sqlite3 *);
+
/* Décrit les colonnes utiles à un chargement de données. */
typedef bool (* collec_setup_load_fc) (GDbCollection *, bound_value **, size_t *);
@@ -63,6 +66,7 @@ struct _GDbCollectionClass
{
GObjectClass parent; /* A laisser en premier */
+ collec_create_db_table_fc create_table; /* Création de la table en SQL */
collec_setup_load_fc setup_load; /* Prépare le chargement */
collec_load_item load_item; /* Charge un élément */
collec_has_key_fc has_key; /* Recherche de présence */