Database package: Difference between revisions

From Octave
Jump to navigation Jump to search
No edit summary
Line 34: Line 34:
===Connecting to a Database===
===Connecting to a Database===


==Further Reading==
* https://octave.sourceforge.io/database/index.html


[[Category:Octave Forge]]
[[Category:Octave Forge]]

Revision as of 09:04, 23 April 2020

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

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