Proposal: Database Engine for D

Mengu via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 5 16:14:08 PST 2016


On Tuesday, 5 January 2016 at 22:12:05 UTC, Mengu wrote:
> On Tuesday, 5 January 2016 at 08:26:16 UTC, Jacob Carlborg 
> wrote:
>> [...]
>
> i love how things can become so complex in this community. i am 
> a web developer so i am going to talk in terms of simplicity.
>
> as russel said, with SQLAlchemy (python library) operators are 
> overloaded and we can do 
> DBSession.query(User).filter(User.first_name == "Jacob", 
> User.age > 27). this will generate the following query:
>
> "SELECT * FROM users u WHERE u.first_name = 'Jacob' AND u.age > 
> 27" and will let the DB handle the rest.
>
> but as a web developer, i don't mind if i have to type 
> User.where("first_name = ? AND age > 27", 
> request.POST.get('name')). this will generate the same query 
> above. i added the question mark to say the parameters should 
> be escaped properly.
>
> guys, what we need is a DB abstraction supporting PostgreSQL, 
> MySQL and other major database systems and we need it 
> yesterday. let's not make things more complex than they are and 
> build up this thing.
>
> p.s. this is not a reply to jacob, just his post was the one i 
> clicked reply for. :-)

and while we were talking the talk, rust community rolled out 
something good called diesel. check it out at http://diesel.rs/.

we need tools that get things done. we do not need tools that 
makes things more complex than they already are.


More information about the Digitalmars-d mailing list