aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 11 insertions, 9 deletions
diff --git a/README.md b/README.md
index a73a9f8..bdbfff6 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,12 @@
## Introduction
csound-sqldb provides database access opcodes which allow for the querying of data in SQL databases at i- and k-rate.
-MySQL, PostgreSQL and SQLite3 are supported and are used with the same opcodes after the initial connection. The opcodes have currently been tested on Linux only.
+MySQL, PostgreSQL and SQLite3 are supported and are used with the same opcodes after the initial connection. The opcodes have been tested on Linux and Windows.
The opcodes rely on changes made after the official 6.13.0 release of Csound so while awaiting the next release the Csound source will need to be obtained from the develop branch of https://github.com/csound/csound/ otherwise they will not build.
## Opcode overview
The opcodes are detailed in full in OpcodeDocumentation.md
+
Aside from the connection opcode, there are three groups available for each to allow for design options particularly when considering database latency/performance:
- i-rate : to be used when db latency is particularly low, in global orchestra space or not running in realtime etc.
@@ -15,30 +16,30 @@ Aside from the connection opcode, there are three groups available for each to a
## Requirements
- Csound libraries
- - Cmake
+ - Cmake >= 2.8.12
- At least one database development library from the three below. Opcodes will support whichever of these databases can be found, which will be indicated when running the initial cmake command.
### MySQL
Connector/C++ (https://dev.mysql.com/downloads/connector/cpp/)
- # apt get install libmysqlcppconn-dev
+ # apt-get install libmysqlcppconn-dev
### PostgreSQL
-libpqxx (http://pqxx.org/development/libpqxx/wiki/DownloadPage)
+libpq (https://www.postgresql.org/download/)
- # apt get install libpqxx-dev
+ # apt-get install libpq-dev
### SQLite
libsqlite (https://www.sqlite.org/download.html)
- # apt get install libsqlite3-dev
+ # apt-get install libsqlite3-dev
## Building
Create a build directory at the top of the source tree, execute *cmake ..*, *make* and optionally *make install* as root. If the latter is not used/possible then the resulting libsqldb.so can be used with the *--opcode-lib* flag in Csound.
eg:
- git clone https://github.com/1bpm/csound-sqldb.git
+ git clone https://git.1bpm.net/csound-sqldb
cd csound-sqldb
mkdir build && cd build
cmake ..
@@ -47,6 +48,7 @@ eg:
## Examples
A number of examples are included in the examples directory. Generally the syntax of each opcode is agnostic to the database type used, so the different techniques in each can be used for any database type.
+## Reference
+OpcodeDocumentation.md contains an explanation of all provided opcodes.
-
-By Richard Knight 2019 \ No newline at end of file
+By Richard Knight 2019