# What's the loweset level between database and ruby

**URL:** <https://www.ruby-forum.com/t/whats-the-loweset-level-between-database-and-ruby/149015>\
**Category:** Rails\
**Created:** [September 19, 2008, 11:55am UTC](https://www.ruby-forum.com/t/whats-the-loweset-level-between-database-and-ruby/149015 "2008-09-19T11:55:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxbohr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@maxbohr](https://www.ruby-forum.com/u/maxbohr)\
**Post date:** [September 19, 2008, 11:55am UTC](https://www.ruby-forum.com/t/whats-the-loweset-level-between-database-and-ruby/149015/1 "2008-09-19T11:55:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![maxbohr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@maxbohr](https://www.ruby-forum.com/u/maxbohr)\
**Post date:** [September 19, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/whats-the-loweset-level-between-database-and-ruby/149015/2 "2008-09-19T12:01:05Z")

</div>

On Sep 19, 10:55 am, Max B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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

---

<div class="post-metadata">

**Author:** ![maxbohr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@maxbohr](https://www.ruby-forum.com/u/maxbohr)\
**Post date:** [September 19, 2008, 9:17pm UTC](https://www.ruby-forum.com/t/whats-the-loweset-level-between-database-and-ruby/149015/3 "2008-09-19T21:17:09Z")

</div>

Frederick C. wrote:

> On Sep 19, 10:55ï¿½am, Max B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> 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?

---

<div class="post-metadata">

**Author:** ![maxbohr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@maxbohr](https://www.ruby-forum.com/u/maxbohr)\
**Post date:** [September 19, 2008, 10:21pm UTC](https://www.ruby-forum.com/t/whats-the-loweset-level-between-database-and-ruby/149015/4 "2008-09-19T22:21:15Z")

</div>

Sent from my iPhone

On 19 Sep 2008, at 20:17, Max B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > 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
