mirror of
https://github.com/Wessel/mariadb-example.git
synced 2026-07-20 07:25:00 +02:00
feat: initial commit
This commit is contained in:
6
include/choicemenu.h
Normal file
6
include/choicemenu.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef CHOICEMENU_H
|
||||
#define CHOICEMENU_H
|
||||
|
||||
void choice_menu(void);
|
||||
|
||||
#endif
|
||||
18
include/database.h
Normal file
18
include/database.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef DATABASE_H
|
||||
#define DATABASE_H
|
||||
|
||||
extern char _server[56];
|
||||
extern char _user[56];
|
||||
extern char _password[56];
|
||||
extern char _database[56];
|
||||
|
||||
void init_mysql();
|
||||
void kill(int code);
|
||||
char *get_tables(void);
|
||||
char *print_tables(void);
|
||||
char *print_field(char *table, char *field);
|
||||
int insert_row(char table[56], char fieldData[2048], char req[2048]);
|
||||
int delete_row(char table[56], char identifier[2048]);
|
||||
int modify_row(char table[56], char identifier[2048], char data[2048]);
|
||||
|
||||
#endif
|
||||
6
include/utils.h
Normal file
6
include/utils.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
const unsigned long hash(const char *str);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user