-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for SQLite #3051
base: main
Are you sure you want to change the base?
Add support for SQLite #3051
Conversation
How do you test that? I tried this: go build -tags=sqlite -o miniflux-sqlite
export DATABASE_URL="file:/tmp/test.db"
./miniflux-sqlite -debug -migrate
level=INFO msg="Running database migrations" current_version=0 latest_version=99 driver=sqlite3
[Migration v1] near "(": syntax error |
Yeah, it's not a complete port. I have a bunch of other (horrible) local hacks to make this work, but I thought I would send small PR as I move forward, instead of a big one, but oh well, let's go with a big one instead! |
92be012
to
c00ff89
Compare
c00ff89
to
e1b50df
Compare
Miniflux can now be compiled with SQLite support. The next step are to actually make it work. - `CREATE TYPE … AS ENUM(…)` is PostgreSQL-specific, and is roughly equivalent to `CHECK(… in (…))` - Specifying the index type is PostgreSQL-specific, so let's do it conditionally based on the used driver - Replace `timestamp` with time` with `timestamptz` - Don't use full-text search for sqlite for now - `md5` isn't supported - SQLite doesn't enforce types (yes.), so no need to alter tables to change them - Various portability improvements
e1b50df
to
610bfb0
Compare
Can I help with something? I think it really would be nice if Miniflux had sqlite support. |
Unfortunately, my free time significantly shrunk recently, as I got a new job. I'll likely return to it at some point, when things settle a bit. Feel free to build on top of this pull-request if you want, I'm happy to help review it. |
This MR adds support for SQLite.
It should close #1925