Database package

From Octave
Revision as of 09:04, 23 April 2020 by User65 (talk | contribs)
Jump to navigation Jump to search

Octave Forge

Official GNU/Octave Forge Database package supports only Postgres

3rd Party

On github/gitlab are several open source projects which supports different open source database solutions for GNU/Octave.

  • sqlite
    • mex-sqlite3 – An extension for MATLAB® or GNU/octave to access sqlite3 databases
    • octave-sqlite - sqlite3 wrapper as an .oct file for GNU/Octave
  • redis
    • go-redis - mex file extension for GNU/Octave to access Redis
  • MariaDB / MySQL
    • mex-mariadb - mex file extension for GNU/Octave to access MariaDB

Installation

Requires octave struct. In ubuntu/debian based systems this is handled with

apt install octave-struct

May also need

apt install libpq-dev

Next octave command line:

>> pkg install -forge database

Packages are compiled. Monitor process with top.

Usage

Load it before any usage:

>> pkg load database

Connecting to a Database

Further Reading