microrm 0.3.0

Micro ORM for SQLite3


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

Manual usage
Put the following dependency into your project's dependences section:

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.1 2021-May-06
0.8.0 2019-May-31
0.7.0 2017-Oct-18
0.6.0 2017-Oct-04
0.5.0 2017-Sep-17
Show all 10 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 1 downloads this month

  • 168 downloads total

Score:
1.8
Short URL:
microrm.dub.pm