Go to file
Bubblegumdrop 823330dde9 Insert, update, run script, run single query.
Most of the basic db functionality is in place now.

Changing print_col out for a user-supplied callback function might be a
cool idea.
2021-03-11 12:48:15 -05:00
.gitignore Insert, update, run script, run single query. 2021-03-11 12:48:15 -05:00
data.h Insert, update, run script, run single query. 2021-03-11 12:48:15 -05:00
db.c Insert, update, run script, run single query. 2021-03-11 12:48:15 -05:00
db.h Insert, update, run script, run single query. 2021-03-11 12:48:15 -05:00
events.c Moving things around. 2021-03-09 01:39:19 -05:00
events.h Insert, update, run script, run single query. 2021-03-11 12:48:15 -05:00
io.c Insert, update, run script, run single query. 2021-03-11 12:48:15 -05:00
io.h Insert, update, run script, run single query. 2021-03-11 12:48:15 -05:00
levenshtein.c Moving things around. 2021-03-09 01:39:19 -05:00
levenshtein.h Moving things around. 2021-03-09 01:39:19 -05:00
LICENSE Initial code commit. 2021-03-08 16:59:27 -05:00
main.c Insert, update, run script, run single query. 2021-03-11 12:48:15 -05:00
makefile Insert, update, run script, run single query. 2021-03-11 12:48:15 -05:00
README.md Insert, update, run script, run single query. 2021-03-11 12:48:15 -05:00
script2.sql Insert, update, run script, run single query. 2021-03-11 12:48:15 -05:00
script.sql Initial code commit. 2021-03-08 16:59:27 -05:00
threads.h Insert, update, run script, run single query. 2021-03-11 12:48:15 -05:00

The (un)Official Lain's Diction Book

Quote / Definition / Pastebin bot

it takes text from irc and stores it in a database

13:56 <@kashire> We need to make our own dictionary.
13:56 <@kashire> The (un)Official Lain's Diction Book.

TODO

  • Perhaps a database backend and a client frontend that's separate.
  • SQL schema
  • SQL interface
  • Option arguments w/ getopt
  • Exit codes

Extras

You can unzip the SQLite amalgamation right into here to use it, otherwise, provide INLINE_SQLITE=0:

make INLINE_SQLITE=1