myphps/taos-rest

TDengine REST API

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/myphps/taos-rest

1.0.1 2024-09-21 06:09 UTC

This package is auto-updated.

Last update: 2025-10-21 08:36:44 UTC


README

##使用

composer require myphps/taos-rest

##示例

<?php
require __DIR__ . '/vendor/autoload.php';

$host = '127.0.0.1:6041';
$user = 'root';
$pwd = 'taosdata';

$taos = new \TDEngine\TaosRestApi($host, $user, $pwd, 'test');

$taos->exec('SHOW TABLES');
echo json_encode($taos->fetch()).PHP_EOL;
echo json_encode($taos->query('SHOW TABLES')).PHP_EOL;