www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DBI Interface looking for comment

reply Jeremy Cowgar <jeremy __no__spAM__cowgar.com> writes:
Please see http://jeremy.cowgar.com/35.0.html ... This details the very 
simple interface right now. My idea is simple and stems from the need to 
access multiple types of databases.

Currently it's limited because you must relink your program to access a 
diffrent database and you must also change 1 line of code. This is just 
an idea. I do have a working copy of it with a SQLite3 driver, but it's 
a quick hack and would need work before releasing.

What I am looking for right now is community comment. I am a new D 
programmer so I may (and probably am) missing something big. Please tell 
me what you think and give feedback.

Thanks!

Jeremy
Apr 13 2005
next sibling parent Ant <Ant_member pathlink.com> writes:
In article <d3jeg8$1tab$1 digitaldaemon.com>, Jeremy Cowgar says...
Please see http://jeremy.cowgar.com/35.0.html ... This details the very 
simple interface right now. My idea is simple and stems from the need to 
access multiple types of databases.

Currently it's limited because you must relink your program to access a 
diffrent database and you must also change 1 line of code. This is just 
an idea. I do have a working copy of it with a SQLite3 driver, but it's 
a quick hack and would need work before releasing.

What I am looking for right now is community comment. I am a new D 
programmer so I may (and probably am) missing something big. Please tell 
me what you think and give feedback.

Thanks!

Jeremy

I have my own here are the docs (sorry, just part of my DDBC API) I have two implementations: PostgreSQL and sqlite3. I'm thinking of looking at MySQL soon. http://dool.sourceforge.net/dool_sql_Connection_Connection.html http://dool.sourceforge.net/dool_sql_Statement_Statement.html http://dool.sourceforge.net/dool_sql_ResultSet_ResultSet.html All this is integrated with dool. Ant
Apr 13 2005
prev sibling next sibling parent pragma <pragma_member pathlink.com> writes:
In article <d3jeg8$1tab$1 digitaldaemon.com>, Jeremy Cowgar says...
Please see http://jeremy.cowgar.com/35.0.html ... This details the very 
simple interface right now. My idea is simple and stems from the need to 
access multiple types of databases.

Currently it's limited because you must relink your program to access a 
diffrent database and you must also change 1 line of code. This is just 
an idea. I do have a working copy of it with a SQLite3 driver, but it's 
a quick hack and would need work before releasing.

What I am looking for right now is community comment. I am a new D 
programmer so I may (and probably am) missing something big. Please tell 
me what you think and give feedback.

You might want to check out the wiki page on database bindings. You're bound to find that a lot of the hard work (binding database libs to D) has already been done for you: http://www.prowiki.org/wiki4d/wiki.cgi?DatabaseBindings D really needs a common interface to all these bindings, so one can write database-neutral code. Its a good idea for a project. - EricAnderton at yahoo
Apr 13 2005
prev sibling parent "Carlos Santander B." <csantander619 gmail.com> writes:
Jeremy Cowgar wrote:
 Please see http://jeremy.cowgar.com/35.0.html ... This details the very 
 simple interface right now. My idea is simple and stems from the need to 
 access multiple types of databases.
 
 Currently it's limited because you must relink your program to access a 
 diffrent database and you must also change 1 line of code. This is just 
 an idea. I do have a working copy of it with a SQLite3 driver, but it's 
 a quick hack and would need work before releasing.
 
 What I am looking for right now is community comment. I am a new D 
 programmer so I may (and probably am) missing something big. Please tell 
 me what you think and give feedback.
 
 Thanks!
 
 Jeremy

I hope you can put it together in a very good way. As Eric said, writing database agnostic code would be great to have. -- Carlos Santander Bernal JP2, you'll always live in our minds
Apr 13 2005