roka/dbtable
Composer 安装命令:
composer require roka/dbtable
包简介
PHP classes for database handling upon PDO
README 文档
README
Use it to retrieve information of datatables in a Database. PHP classes for database handling upon PDO.
License
This software is free software and carries a MIT license.
History
v 2 Second Edition *Completed with testcases and changed localisation of source-files *See description below:
v 1 First edition *Based upon mos/database and mos/cform package. *The intention is to explore all datafiles in a database.
How to use Cdbtable
Copy the map Dbtables in vendor/roka/AnaxDbtable/Dbtable/src to your app/src map
and also the map Dbtables in vendor/roka/AnaxDbtable/Dbtable/view to your app/view map
Urgent Don't use the old src-map ! It is only intended for test-cases.
Use inside Anax: Insert to your Index-file in webroot
$di->set('DbtablesController', function() use ($di) { $controll = new \Roka\Dbtables\DbtablesController(); $controll->setDI($di); return $controll; });
You must have a database connection open ie like this
$di->setShared('db', function() { $db = new \Mos\Database\CDatabaseBasic(); // $db->setOptions(require ANAX_APP_PATH . 'config/config_mysql.php'); $db->setOptions(require ANAX_APP_PATH . 'config/config_sqlite.php'); $db->connect(); return $db; });
You can use it from the browsner like the link
/webroot/Dbtables/select
.
..: Copyright (c) 2014 Göran Karlsson rgoran.karlsson@teila.com
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-22