Forum: Ruby mysql interface

15e7770737e26d7094f3c77d76b2dbe0?d=identicon&s=25 mark edwards (edwardsmarkf)
on 2013-10-31 16:14
hello - i see this topic was partially covered in an earlier post:

https://www.ruby-forum.com/topic/4411532

specifically, i am using mysql and am coming from a php environment
where i learned to love PDO.   the most important point of pdo is the
use of DBI "context variables" rather than the error-prone use of
question-marks embedded in a query.

UPDATE:  i believe ruby-sequel calls these "named placeholders".

many forum postings seem to recommend "sequel".  is this something more
geared for the M$-database, or is sequel truly generic in nature,
working equally well with all databases?

thank you all very much.
C608970872a3048fd3077c001f44929b?d=identicon&s=25 Lars Haugseth (Guest)
on 2013-10-31 18:53
(Received via mailing list)
On Thu, Oct 31, 2013, at 16:14, mark edwards wrote:
> for the micro$oft database, or is sequel truly generic in nature,
> working equally well with all databases?
>
> thank you all very much.

ActiveRecord and Sequel are the most widely used database mapper
libraries
in the Ruby world. They both support a large number of different
database
backends. Both also support the "named placeholder" feature that you
mention:

  User.where("first_name = :name OR last_name = :name", :name =>
  "Harrison")
15000f55138ae94b0f362ed7c625461a?d=identicon&s=25 unknown (Guest)
on 2013-11-01 09:16
(Received via mailing list)
Am 31.10.2013 18:53, schrieb Lars Haugseth:
> ActiveRecord and Sequel are the most widely used database mapper
> libraries
> in the Ruby world.

There is also DataMapper.

Regards,
Marcus
C608970872a3048fd3077c001f44929b?d=identicon&s=25 Lars Haugseth (Guest)
on 2013-11-01 10:04
(Received via mailing list)
On Fri, Nov 1, 2013, at 9:15, sto.mar@web.de wrote:
> Am 31.10.2013 18:53, schrieb Lars Haugseth:
> > ActiveRecord and Sequel are the most widely used database mapper
> > libraries in the Ruby world.
>
> There is also DataMapper.

AFAIK there has been no activity on the core DataMapper codebase
for more than a year, so if starting a new project today I would
probably not consider using it.
15e7770737e26d7094f3c77d76b2dbe0?d=identicon&s=25 mark edwards (edwardsmarkf)
on 2013-11-01 13:46
>>  ActiveRecord and Sequel are the most widely
>>  used database mapper libraries in the Ruby world

i suspect asking which is the preferred one is like asking who has the
better soccer team??
A7fca2db6ff3f4583df98043bd5166f9?d=identicon&s=25 Panagiotis Atmatzidis (Guest)
on 2013-11-01 16:40
(Received via mailing list)
Attachment: signature.asc (840 Bytes)
On 1 Νοε 2013, at 13:46 , mark edwards <lists@ruby-forum.com> wrote:

>>> ActiveRecord and Sequel are the most widely
>>> used database mapper libraries in the Ruby world
>
> i suspect asking which is the preferred one is like asking who has the
> better soccer team??

F.C.  Bayern Munich and Sequel.

>
> --
> Posted via http://www.ruby-forum.com/.


Panagiotis (atmosx) Atmatzidis

email:  atma@convalesco.org
URL:  http://www.convalesco.org
GnuPG ID: 0x1A7BFEC5
gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.