showCreateTable method

String showCreateTable(
  1. Object entity
)

Returns the CREATE TABLE statement generated for entity based on the getters (pKeyAuto, notNulls, uniques, checks, defaults, fKeys) and the types declared in toMap().

A getter that exists but fails is printed and passed to onError (and thrown in strict mode); the table is then built without it.

Implementation

String showCreateTable(Object entity) =>
    buildCreateTable(EntitySchema(entity, _getterFailed), _tableOf(entity));