myano / jenni

jenni was a python IRC bot. Project is closed. Try Sopel instead, https://sopel.chat/
https://sopel.chat/
Other
235 stars 101 forks source link

[dev-jenni-brain] Give Jenni an SQLite DB #241

Open kaneda opened 8 years ago

kaneda commented 8 years ago
kaneda commented 8 years ago

@myano

MAGICCC commented 8 years ago

Or do a selection of none, sqlite and mysql. I prefer MySQL, because then I have almost every service I run, saved at one point and not somewhere across folders

kaneda commented 8 years ago

@MAGICCC I have no problem with that, we could make the DB engine / connect options another config option. For the sake of a starting point I'd say let's start with this and then add onto it in dev-mysql feature branch.

For MySQL we'd need to update the connect mechanism (to take auth and use mysql or mysql connector), the missing table method to look at information.schema instead of using pragma, and make a method for creating db con that maintains the context manager approach I took.

MAGICCC commented 8 years ago

@kaneda Yup, that's possible as well. Some plugins could get some database as well, like the uno one for the players <-> scores. Currently it's saved into some shady .txt

kaneda commented 8 years ago

@MAGICCC true that. I'd like to move everything that's saved into a .txt file into the brain over time. If we need more functionality than executing statements and ensuring tables exist I may turn the DB connection into a library for jenni to use.

MAGICCC commented 8 years ago

Sure, then I gonna wait for the dev-mysql branch :)

kaneda commented 8 years ago

@myano

kaneda commented 8 years ago

@myano

kaneda commented 7 years ago

@myano yanooooooooooo

kaneda commented 6 years ago

@myano yanooooooooooo