Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Support sqlite3 as a backend. #12

Open
skorokithakis opened this issue Aug 27, 2016 · 4 comments
Open

Support sqlite3 as a backend. #12

skorokithakis opened this issue Aug 27, 2016 · 4 comments
Assignees

Comments

@skorokithakis
Copy link

Sqlite3 is a very capable database, which would work very well with Pushjet and make it much easier to install. Since Pushjet already uses SQLalchemy, there's no reason it couldn't easily support that backend. What's currently preventing sqlite3 from being used?

@skorokithakis
Copy link
Author

It looks like the only thing preventing this is the database.sql file, which could presumably be written using the ORM instead, and would support any database backend SQLalchemy supports.

@Mechazawa
Copy link
Member

Mechazawa commented Aug 27, 2016

SQLAlchemy supports SQLite but right now I'm using two MySQL specific datatypes. I'll remove those to make sure that the database back-end can be anything SQLAlchemy supports.

Example:

from sqlalchemy.dialects.mysql import INTEGER, TINYINT

@skorokithakis
Copy link
Author

That'd be great, thank you. For 99% of custom server deployments, SQLite will be ideal, since most people won't need to service many requests per second.

@Mechazawa Mechazawa self-assigned this Aug 27, 2016
@Mechazawa
Copy link
Member

I'll make custom deployments a lot less painful while I'm at it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants