From 6dd0c4747aa57227b5898fc639e3f2b643ce013c Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Mon, 15 Apr 2024 22:16:28 +0200 Subject: feat: Remove C implementation --- lib/data.h | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 lib/data.h (limited to 'lib/data.h') 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 -#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); -- cgit v1.2.3