I have found several examples using datamapper and was able to get them to work. All these examples are for a sqlite database though. I’m trying to use datamapper with postgresql.
I changed the call in datamapper from sqlite3 to postgres, and I’ve got dm-postgres-adapter installed already. But it still doesn’t work.
What else do I have to do?
Unlike SQLite, PostgreSQL does not store databases in single files.
After you have created your database, try something like this:
Depending on your PostgreSQL configuration, you may need to connect as a different user, and/or supply a
:passwordas well.You can also use the short form: