|
Peach ::
Publishers ::
sql ::
Odbc ::
Class Odbc
|
|
Class Odbc
source code
Publisher for ODBC connections. Generated data sent as a SQL query
via execute. Calling receave will return a string of all row data
concatenated together with as field separator.
Currently this Publisher makes use of the odbc package which is some
what broken in that you must create an actual ODBC DSN via the ODBC
manager. Check out mxODBC which is not open source for another
alterative.
Note: Each call to start/stop will create and close the SQL
connection and cursor.
- Parameters:
dsn (string) - DSN must be in format of "dsn/user/password" where DSN
is a DSN name.
|
|
Create cursor and execute data.
- Parameters:
method - Method to call
args - Array of strings as arguments
- Returns: string
- data returned (if any)
- Overrides:
publisher.Publisher.call
|