diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-04-15 22:16:28 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-04-15 22:16:28 +0200 |
commit | 6dd0c4747aa57227b5898fc639e3f2b643ce013c (patch) | |
tree | e43ee077469b5c28fcf46dba51eb03e53214fad5 /lib/data.h | |
parent | 6ed576974dec969ad2745a451a6f680a3cdbcfc4 (diff) | |
download | dict-6dd0c4747aa57227b5898fc639e3f2b643ce013c.tar.gz dict-6dd0c4747aa57227b5898fc639e3f2b643ce013c.tar.bz2 dict-6dd0c4747aa57227b5898fc639e3f2b643ce013c.zip |
feat: Remove C implementation
Diffstat (limited to 'lib/data.h')
-rw-r--r-- | lib/data.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/lib/data.h b/lib/data.h deleted file mode 100644 index 6c9f30f..0000000 --- a/lib/data.h +++ /dev/null @@ -1,47 +0,0 @@ -#pragma once -#include <sqlite3.h> -#include "list.h" - -/* - * This word into the dictionary - */ -typedef struct word -{ - int Id; - const unsigned char *Line; -} Word; - -/* - * This is database connection. - */ -typedef struct data -{ - sqlite3 *db; -} Data; - -/* - * create a new data struct from sqlite filename. - */ -Data* new_data(const char*); - -void free_data(Data*); - -/* - * Create the tables. - */ -void bootstrap(Data*); - -/* - * insert line into database. - */ -void insert(Data*, char*, int); - -/* - * Select all words. - */ -LIST* data_select(Data*, char*, int, int); - -/* - * Print result code from sqlite. - */ -void print_result_code(int error); |