FFFF feathers-docs/databases at master · tlossen/feathers-docs · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

Databases

The service interface makes it easy to implement a wrapper that connects to a database. Which is exactly what we have done with the Feathers database adapters. Using those adapters it is possible to create a database backed REST and real-time API endpoint, including validation in a few minutes!

Instead of coming up with our own ORM and validation system our official database adapters simply wrap many of the great ORM/ODM solutions that already exist. Feathers currently supports Mongoose, Sequelize, KnexJS and Waterline as well as standalone adapters for in-memory and NeDB. This allows you to use the following databases:

Every database adapter supports a common syntax for pagination, sorting and selecting and advanced querying out of the box and can be easily extended with custom functionality. Errors from the adapters (like ORM validation errors) will be passed seamlessly to clients.

This allows you to swap databases whenever the need arises without having to change any of your querying code and you can even use multiple databases within the same app!

0