Released vibe.d 0.8.1
WebFreak001 via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Fri Sep 1 13:16:33 PDT 2017
On Thursday, 31 August 2017 at 11:56:53 UTC, aberba wrote:
> On Wednesday, 30 August 2017 at 16:53:40 UTC, Matthias Klumpp
> wrote:
>> [...]
>
> Even with mysql (using mysql-native), the absent of something
> like
>
> struct User {
> @optional int userName; //its ok if row doesn't have this
> column
> @as("phone_number") string phoneNumber;
> ....
> }
>
> User[] users;
> ....
> foreach(row; ...)
> {
> users ~= row.toStruct!User;
> }
> ....
>
>
> MongoDB has facilities for these stuff automatically thats why
> using it seem convenient and speeds up stuff. Mysql-lited does
> this thing but the package does allow much control nor give
> much query info like mysql-native.
>
>
> I've heard good news about postgresql however, its driver could
> still benefit from this kind of abstraction using CTFE and UDAs.
try my library I released ages ago for this
https://github.com/WebFreak001/MongoSchemaD
More information about the Digitalmars-d-announce
mailing list