2021-10-25 11:43:07 -04:00
|
|
|
#ifndef EL__ECMASCRIPT_LOCALSTORAGE_DB_H
|
|
|
|
#define EL__ECMASCRIPT_LOCALSTORAGE_DB_H
|
2021-02-22 17:27:19 -05:00
|
|
|
|
|
|
|
#include <sqlite3.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2021-02-24 03:56:06 -05:00
|
|
|
int db_prepare_structure(char *db_name);
|
2022-01-30 06:48:21 -05:00
|
|
|
int db_delete_from(char *db_name, const char *key);
|
|
|
|
int db_insert_into(char *db_name, const char *key, const char *value);
|
|
|
|
int db_update_set(char *db_name, const char *key, const char *value);
|
|
|
|
char * db_query_by_key(char *db_name, const char *key);
|
|
|
|
char * db_qry_by_value(char *db_name, const char *val);
|
2021-02-22 17:27:19 -05:00
|
|
|
|
|
|
|
#endif
|