Skip to content
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

Allow using a DB other than SQLite #10

Open
ianmcorvidae opened this issue Jan 31, 2012 · 5 comments
Open

Allow using a DB other than SQLite #10

ianmcorvidae opened this issue Jan 31, 2012 · 5 comments
Assignees
Labels
Milestone

Comments

@ianmcorvidae
Copy link

Not that SQLite isn't fantastic, but some of us already have PostgreSQL or MySQL installed on our systems (e.g., those of us who run musicbrainz-server already!) and plus, your database backend should be all nice and abstracted anyway.

@kepstin
Copy link
Owner

kepstin commented Jan 31, 2012

It should be, eh? At the moment, it's not very well abstracted, and I was planning to make use of some sqlite-integrated features like the integrated full-text search support. If I was going to support this, better sooner than later, though.

@kepstin
Copy link
Owner

kepstin commented Feb 1, 2012

I'm going to work on switching the database backend to be abstracted through libgda, which should allow using mysql/postgres databases.

@ghost ghost assigned kepstin Feb 1, 2012
@kepstin
Copy link
Owner

kepstin commented Feb 4, 2012

Hmm, libgda has this awesome new data object API that I want to use:
http://git.gnome.org/browse/libgda/tree/samples/vala/SampleDataObject.vala

But they haven't released a version with it yet :/ Should be in libgda-5.2 when that gets released. In the meantime I guess you'll have to build libgda from git if you want to build riker :/

@ianmcorvidae
Copy link
Author

If you want to build riker, I assume you mean ;)

kepstin added a commit that referenced this issue Feb 5, 2012
This new Store is still missing quite a bit of functionality, but it'll
come back with time.
Requires a build of libgda from git (5.1.0) with vala bindings and
extensions enabled - which requires a development version of vala.

Good luck building this, anyone except me ;)

References: gh-10
@kepstin
Copy link
Owner

kepstin commented Feb 5, 2012

So it looks like the way that I'm going to handle this is by Riker using a libgda 'DSN' for configuration. If it's not pre-existing, Riker will create a DSN using some internal default settings - .local/share/riker directory and SQLite engine.

However, a user can use the libgda configuration tools to point the DSN for riker at a different location - say, a PostgreSQL database they have laying about, and Riker will then use that instead.

The idea is to have good zero-configuration defaults, but that advanced users can do neat things.

kepstin added a commit that referenced this issue Feb 5, 2012
kepstin added a commit that referenced this issue Feb 13, 2012
If the schema version check fails in the prepare statement phase, that
probably means that the schema's not loaded (the riker table is
missing).
Try to load the schema - if something's really wrong, it'll fail again
later.

References: gh-10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants