---
title: "View source for Database Overview - DreamFactory Wiki"
source: "http://wiki.dreamfactory.com/index.php?action=edit&title=Database_Overview"
canonical_url: "http://wiki.dreamfactory.com/index.php?action=edit&title=Database_Overview"
converted_at: "2026-11-23T01:05:45.684Z"
format: "markdown"
converted_by: "html-to-md-ai"
---
[]()
	
	
	
	# View source for Database Overview

	
		
		← [Database Overview](/Database_Overview)
		
		
		
		[Jump to navigation](#mw-head)
		[Jump to search](#searchInput)
		You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in the group: [Users](/index.php?title=DreamFactory_Wiki:Users&action=edit&redlink=1).---

You can view and copy the source of this page.

{{#seo:
|title=Database Overview - DreamFactory Documentation
|title_mode=replace
|canonical=https://wiki.dreamfactory.com/Database_Overview
|og:title=Database Overview
|og:type=article
|og:site_name=DreamFactory Documentation
}}
= Database Connectors Overview =

DreamFactory auto-generates secure REST APIs from your existing databases. Connect any supported database and instantly get full CRUD endpoints, schema management, stored procedure access, and interactive API documentation.

----

== Supported Databases ==

DreamFactory supports a wide range of SQL and NoSQL databases. Some connectors are included in the open-source package, while others require a commercial license.

=== Open Source (Included) ===

These database connectors are included in DreamFactory OSS and all commercial editions:

{| class="wikitable"
! Database !! Driver !! Default Port !! Documentation
|-
| '''PostgreSQL''' || &lt;code>pdo_pgsql&lt;/code> || 5432 || [[Postgresql|PostgreSQL]]
|-
| '''MySQL / MariaDB''' || &lt;code>pdo_mysql&lt;/code> || 3306 || [[Generating_Database_Backed_Api|Generating a Database-Backed API]]
|-
| '''SQLite''' || &lt;code>pdo_sqlite&lt;/code> || N/A (file) || [[Sqlite|SQLite]]
|-
| '''Google AlloyDB''' || &lt;code>pdo_pgsql&lt;/code> || 5432 || [[Alloydb|AlloyDB]]
|}

=== Commercial License Required ===

These database connectors require a DreamFactory commercial license (Gold or Platinum editions):

{| class="wikitable"
! Database !! Driver !! Default Port !! Notes
|-
| '''Microsoft SQL Server''' || &lt;code>pdo_sqlsrv&lt;/code> || 1433 || Microsoft ODBC Driver for SQL Server required. See [[Sql Server|SQL Server]]
|-
| '''Oracle Database''' || &lt;code>pdo_oci&lt;/code> || 1521 || Oracle Instant Client required
|-
| '''IBM DB2''' || &lt;code>pdo_ibm&lt;/code> || 50000 || IBM Data Server Driver required
|-
| '''IBM Informix''' || &lt;code>pdo_informix&lt;/code> || 9088 || Informix Client SDK required
|-
| '''SAP SQL Anywhere''' || &lt;code>pdo_sqlanywhere&lt;/code> || 2638 || SQL Anywhere client required
|-
| '''Firebird''' || &lt;code>pdo_firebird&lt;/code> || 3050 || Firebird client library required
|}

{{Note|For commercial database connector licensing, contact [https://www.dreamfactory.com/contact DreamFactory Sales] or visit the [https://www.dreamfactory.com/pricing pricing page].}}

----

== Common Features Across All Databases ==

Regardless of which database you connect, DreamFactory provides:

=== Auto-Generated REST Endpoints ===

* '''Tables''': &lt;code>GET/POST/PUT/PATCH/DELETE&lt;/code> on &lt;code>/_table/{table_name}&lt;/code>
* '''Schema''': &lt;code>GET/POST/PUT/DELETE&lt;/code> on &lt;code>/_schema&lt;/code> for schema management
* '''Stored Procedures''': &lt;code>GET/POST&lt;/code> on &lt;code>/_proc/{procedure_name}&lt;/code>
* '''Stored Functions''': &lt;code>GET/POST&lt;/code> on &lt;code>/_func/{function_name}&lt;/code>

=== Query Capabilities ===

* '''Filtering''': Use SQL-style filters via query parameters
* '''Sorting''': Order results by any column(s)
* '''Pagination''': Limit and offset for large result sets
* '''Field Selection''': Return only specified columns
* '''Related Data''': Include related records via joins

=== Security Features ===

* '''API Key Authentication''': Required for all endpoint access
* '''Role-Based Access Control''': Table, column, and verb-level permissions
* '''Record-Level Filtering''': Restrict data visibility per user/role
* '''Rate Limiting''': Configurable throttling per user, role, or endpoint
* '''Audit Logging''': Track all API requests

----

== Choosing the Right Database Connector ==

=== By Use Case ===

{| class="wikitable"
! Use Case !! Recommended Database
|-
| New projects, cloud-native apps || PostgreSQL, AlloyDB
|-
| Microsoft ecosystem integration || SQL Server
|-
| Embedded/local applications || SQLite
|-
| Legacy enterprise systems || Oracle, DB2, Informix
|-
| High-performance analytics || PostgreSQL, AlloyDB
|}

=== By Cloud Provider ===

{| class="wikitable"
! Cloud Provider !! Native Database Service !! DreamFactory Connector
|-
| AWS || RDS PostgreSQL, RDS MySQL, RDS SQL Server || PostgreSQL, MySQL, SQL Server
|-
| Google Cloud || Cloud SQL, AlloyDB || PostgreSQL, MySQL, AlloyDB
|-
| Microsoft Azure || Azure SQL, Azure PostgreSQL || SQL Server, PostgreSQL
|-
| Self-hosted || Any supported database || Full compatibility
|}

----

== Connection Architecture ==

DreamFactory connects to your databases using standard database drivers:

&lt;syntaxhighlight lang="text">
┌─────────────────┐     ┌──────────────────┐     ┌─────────────────┐
│   API Client    │────▶│   DreamFactory   │────▶│    Database     │
│  (App/Service)  │◀────│   (REST API)     │◀────│    Server       │
└─────────────────┘     └──────────────────┘     └─────────────────┘
        │                        │                        │
    HTTP/HTTPS              PDO Driver              Native Protocol
    + API Key               (pdo_pgsql,            (PostgreSQL,
    + JWT (optional)         pdo_mysql, etc.)       MySQL, etc.)
&lt;/syntaxhighlight>

=== Key Architectural Points ===

# '''DreamFactory acts as a secure proxy''' - Your database is never directly exposed
# '''Connection credentials are stored encrypted''' - Never transmitted to API clients
# '''Single connection pool''' - Efficient database resource utilization
# '''Caching layer''' - Optional response caching for improved performance

----

== Driver Installation ==

DreamFactory Cloud includes all drivers pre-installed. For self-managed installations:

=== PHP PDO Extensions Required ===

{| class="wikitable"
! Database !! PHP Extension !! Installation (Ubuntu/Debian)
|-
| PostgreSQL || &lt;code>pdo_pgsql&lt;/code> || &lt;code>apt-get install php-pgsql&lt;/code>
|-
| MySQL || &lt;code>pdo_mysql&lt;/code> || &lt;code>apt-get install php-mysql&lt;/code>
|-
| SQLite || &lt;code>pdo_sqlite&lt;/code> || &lt;code>apt-get install php-sqlite3&lt;/code>
|-
| SQL Server || &lt;code>pdo_sqlsrv&lt;/code> || See [[Sql Server|SQL Server driver docs]]
|-
| Oracle || &lt;code>pdo_oci&lt;/code> || Requires Oracle Instant Client
|}

For complete installation instructions, see [[Getting_Started/Installing_Additional_Drivers|Installing Additional Drivers]].

----

== Performance Optimization ==

=== Connection Pooling ===

DreamFactory maintains persistent database connections. Configure pool size based on expected concurrent API requests.

=== Caching ===

Enable caching for read-heavy workloads:
* '''Per-service caching''': Configure in service settings
* '''Cache TTL''': Set appropriate expiration times
* '''Cache backends''': Redis, Memcached, or local file cache

=== Query Optimization ===

* Use '''field selection''' to return only needed columns
* Apply '''filters''' server-side rather than client-side
* Use '''pagination''' for large datasets
* Consider '''database views''' for complex, frequently-used queries

----

== Security Best Practices ==

=== Database User Permissions ===

Create dedicated database users for DreamFactory with minimal required permissions:

&lt;syntaxhighlight lang="sql">
-- PostgreSQL example: read-only user
CREATE USER dreamfactory_ro WITH PASSWORD 'secure_password';
GRANT CONNECT ON DATABASE myapp TO dreamfactory_ro;
GRANT USAGE ON SCHEMA public TO dreamfactory_ro;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO dreamfactory_ro;
&lt;/syntaxhighlight>

=== Network Security ===

* Use private networks/VPCs when possible
* Enable SSL/TLS for database connections
* Restrict database access to DreamFactory IP addresses
* Never expose databases directly to the internet

=== DreamFactory RBAC ===

Layer DreamFactory's RBAC on top of database permissions:
* Create roles with minimum required access
* Use record-level filters for multi-tenant applications
* Separate API keys for different applications/environments

----

== Next Steps ==

* '''[[Generating_Database_Backed_Api|Generating a Database-Backed API]]''': Step-by-step guide for your first database API
* '''[[Querying_Filtering|Querying and Filtering]]''': Learn advanced query syntax
* '''[[Postgresql|PostgreSQL]]''': Connect PostgreSQL databases
* '''[[Sqlite|SQLite]]''': Connect local SQLite databases
* '''[[Sql Server|SQL Server]]''': Connect Microsoft SQL Server
* '''[[Alloydb|AlloyDB]]''': Connect Google AlloyDB

For database-specific questions, consult the individual database guides or contact DreamFactory support.

[[Category:API]]
[[Category:Database]]
Template used on this page:

- [Template:Note](/Template:Note) ([view source](/index.php?title=Template:Note&action=edit))

Return to [Database Overview](/Database_Overview).

Retrieved from "[https://wiki.dreamfactory.com/Database_Overview](https://wiki.dreamfactory.com/Database_Overview)"