Function migrateAdapter

  • Migrate data from one adapter to another, on the same engine or between SQLite and PostgreSQL. The target tables get the target engine's types, the defaults it has a form of, NOT NULL and the primary key; a column the source engine fills becomes an identity column on PostgreSQL (its sequence moved past the copied ids) or an INTEGER PRIMARY KEY AUTOINCREMENT on SQLite. SQLite to SQLite recreates each table from the statement SQLite keeps for it.

    Parameters

    Returns Promise<ImportResult>