Proposal: Database Engine for D
Chris Wright via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jan 5 09:32:57 PST 2016
On Tue, 05 Jan 2016 09:26:16 +0100, Jacob Carlborg wrote:
> On 2016-01-05 05:16, Chris Wright wrote:
>
>> Not proposing language changes was an intentional feature, not a
>> mistake.
>
> Then you obviously can't use the operators. You would have to fall back
> to methods:
>
> Person.where!(e => e.name.eq("John"));
Which some people call a DSL, and DSLs were, I understand, something we
were trying to avoid. You get far less readability than you do with plain
D or a SQL string.
Plus side, you spend no time parsing, but it took less than a millisecond
to parse your SQL query in the first place, and most SQL databases allow
you to cache prepared statements.
More information about the Digitalmars-d
mailing list