|
From: | Thomas Grzybowski |
Subject: | octave and postgres examples |
Date: | Wed, 19 Jun 2013 16:23:09 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
Hi, I have been trying to connect octave to my postgres database using the 'database' Package - obtained from Octave-Forge - SourceForge, and written and maintained by Olaf Till. I am able to create a connection object ("conn"), as so: conn = pq_connect(setdbopts("host", "localhost","dbname", "tg", "user", "tg", "password", "")); I know some SQL, but I am unfamiliar with the octave side of things; I am trying to use the command "pq_exec_params", but the documentation is a little sparse on the syntax. I could really use some examples of reading and writing tables to and from octave arrays. If anyone could post some example code that would be very much appreciated. Thanks, Thomas Grzybowski |
[Prev in Thread] | Current Thread | [Next in Thread] |