id method

void id([
  1. String name = "id"
])

Add a primary key column

Creates an auto-incrementing integer primary key column. By default, the column name is 'id'.

Implementation

void id([String name = "id"]) {
  _columns['id'] = " $name INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,";
}