Skip to main content

Database Connection

EcoFlowJS allows you to connect to multiple databases at the same time and use them individually in your APIs.

Supported Drivers

DatabaseMinimumRecommended
MongoDB5.0.277.0.11
MySQL5.7.88.0
PostgreSQL11.014.0
SQLite33
note

User can also use other drivers like SUPABASE, FIREBASE, etc. via installing packages to the application.

note

We are currently working on the SUPABASE and FIREBASE packages and will be launch as soon as it is ready to be installed.

Create a new database connection.

setup welcome screensetup welcome screen

To create a new database connection:

  1. Click the New Connection button.
  2. Prove a Name for the database connection.
  3. Select the database connection Driver.
  4. Provides the database connection details.
  5. Click the Confirm button to validate and save the connection.
note

Name must be unique for each database connection.

Edit the database connection.

setup welcome screensetup welcome screen

To Edit a new database connection:

  1. Hover on the database connection you want to edit.
  2. To Edit the database connection click the edit button.
  3. Select the database connection Driver.
  4. Provides the database connection details.
setup welcome screensetup welcome screen
  1. Click the Confirm button to validate and update the connection.
note

Name of the database connection can't be changed or modified.

Drop the database connection.

setup welcome screensetup welcome screen

To Edit a new database connection:

  1. Hover on the database connection you want to drop
  2. To Drop the database connection click the drop button.
  3. Confirm and wait for it to get removed.

To manage the database Tables/Collection and its its Records, see the documentation of Tables/Collection here and the documentation of Records here.