镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

DatabaseAdapter.js

Fosco Marotto edited this page Jan 28, 2016 · 1 revision
DatabaseAdapter.js

Interface for allowing the underlying database to be changed

Adapter classes must implement the following methods:

  • a constructor with signature (connectionString, optionsObject)
  • connect()
  • loadSchema()
  • create(className, object)
  • find(className, query, options)
  • update(className, query, update, options)
  • destroy(className, query, options)
  • This list is incomplete and the database process is not fully modularized.

See ExportAdapter.js for the default adapter implementation using MongoDB.

See transform.js for additional database specific transformation logic.

Clone this wiki locally