Abstract Database Interface

Jacob Carlborg doob at me.com
Mon Oct 29 12:44:37 PDT 2012


On 2012-10-29 18:43, BLM768 wrote:
>
>>
>> You can have a look at DataMapper. That's also for Ruby but it's not
>> specific for SQL, if I recall correctly. Have a look at some ORM
>> library written in Scala, I would guess they can be quite innovative
>> and it's statically typed.
>>
>> http://squeryl.org/index.html
>> http://datamapper.org/
>
> Those libraries definitely look interesting. I should probably consider
> some type of NoSQL database support...

If I recall correctly, Squeryl use Scala AST macros to support a query 
syntax, that in D would look, as below:

class Person : Model { }

void main ()
{
     auto p = new Person;
     p.name = "John Doe";
     p.save();

     p = Person.where!(x => x.name == "John Doe");
}

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list