All Questions
Tagged with ruby-datamapper postgresql
11 questions
1
vote
0
answers
134
views
How to switch from Sqlite to Postgres while installing Warden on Sinatra on Heroku
This is partly a problem-solving question, partly a "I'm trying to understand what's going on" question. I hope that's allowed. Basically, I'm trying to get Warden user authentication to work with ...
0
votes
0
answers
38
views
Parallel POST requests to DB with Ruby/DataMapper
I'am trying to implement kind of a matchmaking REST service for the game.
My matchmaking table is simple as
ID (Serial)
Client_Name_1 (String)
Client_Name_2 (String)
Basic idea is that when client ...
0
votes
0
answers
131
views
Datamapper unable to find table
I have an app running on my Raspberry Pi with Postgresql 9.1.
My first iteration was to add weather records into a table called "Weathers". That was successful.
My next iteration is to use psychopg2 ...
2
votes
0
answers
248
views
Ruby DataMapper: order and/or filter query by computed value
Is there a way, using the DataMapper::Query::Conditions and DataMapper::Query::Direction object structures, to set a WHERE clause condition and/or an ORDER BY clause according to a computed value?
In ...
0
votes
0
answers
452
views
Install dm-postgres-adapter on Mac
I've been fighting on this for two days, time to ask to StackOverflow.
I've prepared a simple Ruby app (noob alert!) to start with this language. I've used Sinatra and DataMapper.
When using MySql ...
1
vote
1
answer
148
views
Slow Ruby DataMapper.setup
I found that my Sinatra application was so freaking slow, only happens on VMWare image on i3, i don't know why, it doesn't happened on same VMWare image on AMD APU, the line that causes the slowness ...
2
votes
1
answer
1k
views
How do I get the raw SQL from a DataMapper::Collection?
I'm using the latest versions of postgresql, ruby and datamapper.
I create a query like so:
collection = Entry.all(:id => 2..4, :text => /test/)
collection is a DataMapper::Collection object. ...
0
votes
1
answer
94
views
Custom Ordering with NULL Values
I have a DataMapper class Song (through PostgreSQL) that has the following property:
property :rating, Float, :required => false
Users can rate songs.
The problem is that I want users to browse ...
0
votes
1
answer
741
views
DataMapper conection on Heroku using development database not ENV['DATABASE_URL']?
My issue is that when deployed to Heroku DataMapper tries to use this part of my database connection info 'postgres://postgres:myohmysosecret@localhost/recall' when I have DataMapper.setup(:default, ...
0
votes
1
answer
142
views
Datamapper type for char (aka character) field type
I'm working with an open source database. I'm trying to map it to classes with DataMapper, and later I'm going to make changes in a Model driven approximation instead of a Database driven one.
But ...
1
vote
1
answer
509
views
Datamapper do_postgres gem error: "dyld: lazy symbol binding failed: Symbol not found: _PQsetdbLogin"
I'm trying to run a Sinatra application with Datamapper and a Postgres db locally.
I'm on Mac OS X 10.6.7 and ruby 1.9.2 and each time I launch the application, I get the following error:
dyld: lazy ...