What's the loweset level between database and ruby

What's the lowest abstraction barrier between the database and ruby? Where are the files with the instructions on translating ruby commands to actual database queries for the particular database you've set up?

Thanks for any help

There's several bits to that. the responsability is shared between the connection adapter ( in active_record/lib/connection_adapters) and variety of bits of activerecord (a lot of that is in base.rb)

Fred

Frederick Cheung wrote:

Frederick Cheung wrote:

What's the lowest abstraction barrier between the database and ruby? Where are the files with the instructions on translating ruby
commands to actual database queries for the particular database you've set
up?

There's several bits to that. the responsability is shared between
the connection adapter ( in active_record/lib/connection_adapters) and variety of bits of activerecord (a lot of that is in base.rb)

Fred

So if someone wanted to add a database that rails could connect to,
what files would they need to create?

You'd need a new connection adapter

Fred