rodnaph / lewis

Datomic Web UI
20 stars 2 forks source link

:protocol/unsupported Unsupported protocol :sql #7

Open mathias opened 10 years ago

mathias commented 10 years ago
clojure.lang.ExceptionInfo: :protocol/unsupported Unsupported protocol :sql {:db/error :protocol/unsupported}

When trying to load a datomic pro Postgres database with a db URI like:

datomic:sql://my-datomic-db?jdbc:postgresql://localhost:5432/datomic?user=datomic&password=datomic
mathias commented 10 years ago

This is due to lewis depending on datomic-free, but needing the datomic-pro libraries for sql and other datastores.

I'm not quite sure how to resolve this (allow an open source project to use either datomic-free or datomic-pro depending on the user and what they need.) I asked in #datomic but no answers yet.

mathias commented 10 years ago

I know it's not quite how the app is currently structured, and might take some significant rewriting, but how do you feel about targeting this app at the Datomic REST API (http://blog.datomic.com/2012/09/rest-api.html http://docs.datomic.com/rest.html) like Datomicism does?

My reasoning is that using the REST API does not care whether you are running a Free or Pro transactor / storage. I haven't looked too deeply into what it would entail. I also know that my setup doesn't talk to Datomicism too well (seemed like it was due to cross-site scripting stuff, but I got around that and still found errors.)

Since I feel like I need this tool for my projects, I would be willing to spend some time hacking on this.

What do you think?

rodnaph commented 10 years ago

Hi - I don't really have time to contribute to this project, but am happy to give you commit access if you want to start hacking at it? How does that sound?

mathias commented 10 years ago

Let me spend some time trying to get the proposal above working, and then if I can get something worth sending a PR, we can discuss commit bit ;)

On Tue, Dec 31, 2013 at 1:15 PM, rodnaph notifications@github.com wrote:

Hi - I don't really have time to contribute to this project, but am happy to give you commit access if you want to start hacking at it? How does that sound?

— Reply to this email directly or view it on GitHubhttps://github.com/rodnaph/lewis/issues/7#issuecomment-31407363 .

Matt Gauger http://blog.mattgauger.com http://twitter.com/mathiasx