Data Sources

DbFace supports MySQL, PostgreSQL, Clickhouse, Google BigQuery and most of SQL or NoSQL databases.

DbFace needs to get data from your database to display and manipulate. So DbFace needs to know how to connect to your database servers.

DbFace supports MySQL, PostgreSQL, Clickhouse, SQL Server, Oracle, Firebird/Interbase, CUBRID, MongoDB and other SQL/NOSQL database servers. You can also upload CSV files as data sources. For other data sources ( in-house data), you can create your own API connector or Data Source Plugin to make it work with DbFace.

Steps to Take Before Connecting

  • Ensure that the database is publicly addressable and currently up & running.

  • Verify that the database is not hosted on a local machine. DbFace cannot connect to databases hosted on local machines (e.g. laptops, PCs, etc.).

  • Ensure that DbFace supports the database type attempting to be connected. A list of supported integrations is available here.

Connect to database

To create a connection to your database, please login DbFace with the Administrator account, find the “Connections” section in the dashboard, there will list all the database connections you have created.

database connections in DbFace

Click “Add new connection” button to enter “create a database connection” page:

Connect to database via DSN

We are always working on to support more database types.

Some database drivers (such as IBM DB2, 4D) might require a full DSN string to be provided. If that is the case, you should use the ‘dsn’ configuration setting, as if you’re using the driver’s underlying native PHP extension, like this:

// PDO
$db['default']['dsn'] = 'pgsql:host=localhost;port=5432;dbname=database_name';

// Oracle
$db['default']['dsn'] = '//localhost/XE';

Edit database connection

Log in as Administrator, find the “Connections” section in the dashboard, click on “Edit” button, then enter the database connection editing page.

!!! warning If your database schema changed, all applications will be affected.

Remove database connection

Log in as Administrator, find the “Connections” in dashboard page, click “Delete” button, After confirmation, the database connection will be removed.

!!! warning “Be careful” Deleting a database connection will delete all applications using this database connection!

Sync data source

For API Connector, DbFace provides a quick way to sync the remote data to DbFace server on the fly. After tapped the “Sync” button, DbFace will get the updated data from your server via the API Connector.

Sync API connector

Default connection

Click the “Select” button to change the default database connection. DbFace will only show applications that using default connection in the left menu.

If you want to show all applications, you can change the option at System Settings page.

  • Tap Settings, and tap “Preference” menu
  • Select “System Settings” page
  • Find “Only show applications in default database connection.” and uncheck it
  • Click “Save Changes” to save your settings.

Manage database structure

For MySQL, CSV Files, API Connector data sources, DbFace provide database structure management tool.

Click here to learn more information about Structure Management Tool.

SQL workshop

You can test SQL queries in SQL workshop, and save them as favorite. You can pick a tested SQL query while building an application.

Click here to learn more information about SQL Workshop.

SQL Terminal

SQL Terminal provides you a console emulator to execute SQL query quickly.

Click here to learn more information about SQL Terminal.


MySQL or MariaDB

Connect to MySQL or MariaDB in DbFace

PostgreSQL

Connect to PostgreSQL in DbFace

Clickhouse

Connect to Clickhouse in DbFace

Microsoft SQL Server

Connect to Microsoft SQL Server in DbFace

Oracle

Connect to Oracle in DbFace

IBM DB2

Connect to IBM in DbFace

MongoDB

Connect to MongoDB in DbFace

SQLite3

Connect to SQLite3 in DbFace

Presto Db

Connect to Presto Db in DbFace

Google BigQuery

Connect to Google BigQuery in DbFace

Firebird

Connect to Firebird in DbFace

Cubrid

Connect to Cubrid in DbFace

Apache HBase

Connect to Apache HBase in DbFace

Apache Cassandra

Connect to Apache Cassandra in DbFace

Amazon DynamoDB

Connect to Amazon DynamoDB in DbFace

CSV Files

Connect to CSV Files in DbFace

API Connector

Connect to API Connector in DbFace

Plugin Application Data

Plugin Application Data in DbFace

Microsoft Access

Connect to Microsoft Access in DbFace

Warehouse

DbFace internal warehouse


Last modified December 28, 2020: fix (2310be7)