[WIP] Native SQLite Database reader (works at CTFE)

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 21 08:05:49 PST 2016


just a small update on the API
It could look something like this

auto table = db.tables("personal");
auto results = table.select("name","surname").where!("age","sex", 
(age, sex) => sex.as!Sex == Sex.female, age.as!uint < 40));
auto names = results[0].as!string;
auto surnames = results[0].as!string;

auto tbl_names = 
db.tables("master_table_copy").select("name").where!((type) => 
type.as!string == "table")("type").as!string;

please comment!


More information about the Digitalmars-d mailing list