-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
DatabaseAdapter.js
Fosco Marotto edited this page Jan 28, 2016
·
1 revision
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.