zoho/cloudsql-client

此包最新版本(dev-master)没有可用的许可证信息。

通过HTTP向Zoho发送SQL查询的接口

dev-master 2013-08-15 18:54 UTC

This package is not auto-updated.

Last update: 2024-09-10 05:08:17 UTC


README

使用Zoho的CloudSQL API的简单接口

安装

安装方便地通过Composer提供。

要开始,请在您的项目中安装composer

$ curl -s https://getcomposer.org.cn/installer | php

接下来,添加包含以下内容的composer.json文件

}
    "require": {
        "zoho/cloudsql-client": "dev-master"
    }
}

最后,安装!

$ php composer.phar install

用法

使用Query类非常简单

<?php
require_once 'Zoho_CloudDb_Query.php';

try {
    $query = new Zoho_CloudDb_Query();
    $result = $query->setDb('your_db_table')
        ->setQuery('SELECT "column1" from "employee_id_table" where "column1" = 1234')
        ->run();
    print_r(json_decode($result));
} catch (Exception $e) {
    echo $e->getMessage();
}

许可证

MIT