dapepe / microdb
MySQL和PostgreSQL的最简数据库抽象层
1.0.8
2019-04-13 16:29 UTC
Requires
- php: >=5.4.0
README
示例
示例
include './lib/microdb/src/connector.php'; include './lib/microdb/src/postgresql.php'; $db = new MicroDB\PostgreSQL('127.0.0.1', 'myuser', 'mypassword', 'mydb'); foreach ($db->tables() as $tableId) { echo 'Scanning '.$tableId."\n"; print_r($db->table($tableId)->fields()); }
许可证
版权 (C) 2008 - 2014 Peter Haider
本作品根据GNU Lesser General Public License (LGPL)授权,应随此软件一起提供。您也可以从https://gnu.ac.cn/licenses/lgpl.txt获取GNU Lesser General Public License的副本。