Connection.insert

Inserts the given structure to the DB

  1. bool insert(T val, bool async)
    struct Connection
    bool
    insert
    (
    T
    )
    (
    T val
    ,
    bool async = false
    )
    if (
    !isArray!T
    )
  2. int insert(T vals, bool async)

Examples

Connection c; // An established connection
struct User {@PK @serial int id; int a }
User myUser;
c.insert(myUser);

Meta