× 警告!旧版文档已经暂停维护,请查看新版文档。点击前往新版文档

Coroutine\PostgreSQL->metaData

查看表的元数据 异步非阻塞协程版

function Coroutine\PostgreSQL->metaData(String $tableName);

example:

go(function () {
    $a = new Swoole\Coroutine\PostgreSQL();
    $conn  = $a -> connect ("host=127.0.0.1 port=5432 dbname=test user=wuzhenyu");
    $result = $a->metaData('test');
    var_dump($result);
});