Administering SQL Relay
Guides and references for SQL Relay administration:
Database How-To's
Getting-started guides for various databases supported by SQL Relay:
Oracle |
|
Database Abstraction Layers
SQL Relay provides drivers for several popular database abstraction layers.
Guides: |
References: |
|
Native APIs
The native SQL Relay client APIs provide advanced features like substitution and bind variables, multi-row fetches, client-side result set caching, and suspended sessions, transactions, and result sets.
Guides: |
References: |
#!/usr/bin/perl
use SQLRelay::Connection; use SQLRelay::Cursor; $sqlrcon=SQLRelay::Connection->new("examplehost",9000, "/tmp/example.socket", "exampleuser", "examplepassword",0,1); $sqlrcur=SQLRelay::Cursor->new($sqlrcon); $sqlrcur->sendQuery("select * from exampletable"); for ($row=0; $row<$sqlrcur->rowCount(); $row++) { for ($col=0; $col<$sqlrcur->colCount(); $col++) { print($sqlrcur->getField($row,$col).","); } print("\n"); } |