Loopback PostgreSQL Connector
The PostgreSQL Connector module for for loopback-datasource-juggler.
Please see the official documentation.
The connector can be configured using the following settings from the data source.
NOTE: By default, the 'public' schema is used for all tables.
The PostgreSQL connector uses node-postgres as the driver. See more information about configuration parameters, check https://github.com/brianc/node-postgres/wiki/Client#constructors.
PostgreSQL data sources allow you to discover model definition information from existing postgresql databases. See the following APIs:
The model definition consists of the following properties:
Destroying models may result in errors due to foreign key integrity. Make sure to delete any related models first before calling delete on model's with relationships.
After making changes to your model properties you must call
Model.autoupdate(). Only call
Model.automigrate() on new models
as it will drop existing tables.
LoopBack PostgreSQL connector creates the following schema objects for a given model:
The tests in this repository are mainly integration tests, meaning you will need to run them using our preconfigured test server.