microrm 0.4.0

Micro ORM for SQLite3


To use this package, run the following command in your project's root directory:

Micro ORM for SQLite3

Very simple ORM with single backend (SQLite3).

This methods returns struct instances

auto qSelect(T)(ref Database db);
auto qDelete(T)(ref Database db);
auto qCount(T)(ref Database db);

They structs have methods

ref Self where(V)(string field, V val);
ref Self whereQ(string field, string cmd);
ref Self and(V)(string field, V val);
ref Self andQ(string field, string cmd)

there Self is type of structure, and method

auto run() @property;

for each own types.

This method execute immediately

auto qInsert(T)(ref Database db, T[] arr...);

See example/source/app.d

Authors:
  • Oleg Butko (deviator)
Dependencies:
d2sqlite3
Versions:
0.8.0 2019-May-31
0.7.0 2017-Oct-18
0.6.0 2017-Oct-04
0.5.0 2017-Sep-17
0.4.0 2017-Aug-26
Show all 9 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 2 downloads this month

  • 114 downloads total

Score:
1.4
Short URL:
microrm.dub.pm