Database Toolbox™ provides functions and an app for exchanging data with relational and nonrelational databases. It enables this exchange by automatically converting between database and MATLAB® data types.
Database Toolbox supports any ODBC-compliant or JDBC-compliant relational database. It also provides NoSQL support for Apache™ Cassandra®, MongoDB®, and Neo4j®. Native interfaces are provided for MySQL® and PostgreSQL.
With the Database Explorer app, you can explore relational data without writing code and then generate MATLAB code to automate or operationalize database workflows. For large data workflows, you can split SQL queries and parallelize access to data (with Parallel Computing Toolbox™ and MATLAB Parallel Server™).
Access Relational Database Data in MATLAB
Decide which Database Toolbox functionality to use for your situation.
Configuring Driver and Data Source
Install drivers and configure data sources for your database environment.
After configuring a driver and data source, connect to your database.
Data Import Using Database Explorer App or Command Line
Learn the best way to import data from your database into MATLAB.
Database Toolbox Interface for Apache Cassandra Database Installation
Install the Database Toolbox Interface for Apache Cassandra® Database and learn about the supported Cassandra database versions.
Database Toolbox Interface for MongoDB Installation
Install the Database Toolbox interface for MongoDB and learn about the supported MongoDB versions.
Graph Database Workflow for Neo4j Database Interfaces
Discover the Neo4j graph database and explore the Neo4j database interfaces and workflow.
Discover the differences between ODBC and JDBC drivers, and choose the correct driver for your situation.
Choose the best way to connect to a database for your situation.
Before configuring a driver and data source, find the requirements for establishing your first database connection.
Find supported data types for data import and export.