文章分类 -  Sql Relay

SQL Relay PHP API的封装(2)
摘要:<?php/*** sqlr.class.php 数据库实现类**/final class sqlr { /** * 数据库配置信息 */ private $config = null; /** * 数据库连接资源句柄 */ public $link = null; /** * 最近一次查询资源句柄 */ public $lastqueryid = null; protected $_fetchMode = 'OCI_ASSOC'; protected $_execute_mode = null; public static $_affected_rows = null; 阅读全文

posted @ 2012-02-16 14:44 kudosharry 阅读(415) 评论(0) 推荐(0)

PHP API
摘要:USINGYou can use the module by loading it in your PHP script and calling SQL Relay functions.For example:dl("sql_relay.so");$con=sqlrcon_alloc("adasz",9000,"","user1","password1",0,1);$cur=sqlrcur_alloc($con);sqlrcur_sendQuery($cur,"select table 阅读全文

posted @ 2012-02-16 14:40 kudosharry 阅读(231) 评论(0) 推荐(0)

Programming with SQL Relay using the PHP API
摘要:Establishing a SessionTo use SQL Relay, you have to identify the connection that you intend to use.<? dl("sql_relay.so"); $con=sqlrcon_alloc("host",9000,"","user","password",0,1); ... execute some queries ... sqlrcon_free($con);?>An alternative 阅读全文

posted @ 2012-02-16 14:39 kudosharry 阅读(349) 评论(0) 推荐(0)

sqlrelay 的安装配置和应用
摘要:一、SQL Relay是什么? SQL Relay是一个开源的数据库池连接代理服务器 二、SQL Relay支持哪些数据库? * Oracle * MySQL * mSQL * PostgreSQL * Sybase * MS SQL Server * IBM DB2 * Interbase * Sybase * SQLite * Lago * ODBC * MS Access三、安装和配置; 不说废话了,开始安装SQL Relay,到 http://sqlrelay.sourceforge.net/ 去下载相应的... 阅读全文

posted @ 2012-02-10 16:17 kudosharry 阅读(620) 评论(0) 推荐(0)

[翻译]SQL Relay中PHP API参考手册
摘要:由于我们才刚刚准备开始使用SQL Relay,所以这片文章的翻译还有很多我们不理解的地方,可能导致翻译上的问题,所以这篇文章只能作为一个小小的参考。也希望朋友们在看过后指出问题,让更多的人来使用它。 REDRYM by:2007-03-22 15:33翻译: pacman校对: 雪狼贝贝血色整理: KAADA、REDRUMMAIL: xcy_0001@hotmail.comBY: 2007-03-22====================正文====================SQL-relay PHP modulePHP APIUSINGFUNCTIONSAUTHORUSINGFUNC 阅读全文

posted @ 2012-02-10 16:11 kudosharry 阅读(250) 评论(0) 推荐(0)

SQL Relay PHP API的封装
摘要:这是针对sqlrelay.class.php的说明。 sqlrelay.class.php是对SQL Relay PHP API的封装,使其接近PHP PDO,方便本人日后使用。[PHP Pear DB提供对SQL Relay的支持,但是本人不习惯用这东西。] sqlrelay.class.php请点击下载:查看或下载sqlrelay->__construct(string $host, int $port, string $user, string $password) 创建一个SQL Relay连接,各个参数意义都很明确,不需要细说。 在内部执行的是“sqlrcon_alloc($h 阅读全文

posted @ 2012-02-10 16:08 kudosharry 阅读(508) 评论(0) 推荐(0)

SQL Relay PHP API 翻译
摘要:此文档翻译自SQL Relay官方文档的PHP API,地址为:http://sqlrelay.sourceforge.net/sqlrelay/api/php/doc.html如果需要例子等更详细说明,见这里:http://sqlrelay.sourceforge.net/sqlrelay/programming/php.html注意,此翻译并非严肃严谨的翻译,不保证意思明确无误。注意:sqlrconref和sqlrcurref之间的细小差别,sqlrcon_ 和sqlrcur_ 之间的细小差别。一个例子:dl("sql_relay.so");$con=sqlrcon_a 阅读全文

posted @ 2012-02-10 16:07 kudosharry 阅读(383) 评论(0) 推荐(0)

导航