Domain - Hookyns/unimapperjs GitHub Wiki

Domain

Methods

createEntity(name, properties, idType = null)

Create new Entity class which extends base Entity

  • @param {String} name Name of new entity (class)
  • @param {Object} properties Object with entity parameters
  • @param {Type} [idType] Allows you to override default id property

async createMigration(path)

Create migration script in defined path.

  • @param {String} path

async runMigration(path)

Run last created migration in given path

  • @param {String} path

async dispose()

Just call dispose in adapter

⚠️ **GitHub.com Fallback** ⚠️