diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-18 11:58:56 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-18 11:58:56 +0200 |
commit | 973edb08ed5ff35644328c244d5d584f44a70591 (patch) | |
tree | 864b7e74297fafa44db93ce5c55888380282de56 /db.h | |
parent | b67acafd615ae705a3e3682f87f35027789ddda5 (diff) | |
download | cforum-973edb08ed5ff35644328c244d5d584f44a70591.tar.gz |
Implement `add' functions
Diffstat (limited to 'db.h')
-rw-r--r-- | db.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -24,15 +24,18 @@ struct post{ struct user{ int id; + int created; char *name; char *full; char *hash; }; -sqlite3_stmt *byid(char *, int); +int addatt(struct att *); +int adduser(struct user *); struct att *getatt(sqlite3_stmt *); struct post *getpost(sqlite3_stmt *); struct user *getuser(sqlite3_stmt *); struct att *nextatt(sqlite3_stmt *); struct post *nextpost(sqlite3_stmt *); -struct user *nextuser(sqlite3_stmt *);
\ No newline at end of file +struct user *nextuser(sqlite3_stmt *); +sqlite3_stmt *selectbyint(char *, char *, int);
\ No newline at end of file |