lagdo / dbadmin-driver-sqlite
SQLite数据库的DbAdmin驱动程序。
v0.11.0
2024-02-12 05:28 UTC
Requires
- lagdo/dbadmin-driver: ^0.11
Requires (Dev)
- behat/behat: ^3.10
- dvdoug/behat-code-coverage: 5.0.*
- php-coveralls/php-coveralls: ^2.5
- phpunit/phpcov: ^8.2
- phpunit/phpunit: ^9.5
README
SQLite数据库的DbAdmin驱动程序
本包基于Adminer。
它为Jaxon DbAdmin提供SQLite驱动程序,并实现了https://github.com/lagdo/dbadmin-driver中定义的接口。
它需要安装php-sqlite3
或pdo_sqlite
PHP扩展,默认使用前者。
安装
使用Composer安装。
composer require lagdo/dbadmin-driver-sqlite
配置
在Jaxon
配置文件的packages
部分声明包含数据库的目录。将driver
选项设置为sqlite
。数据库文件扩展名为db
、sdb
或sqlite
。
'app' => [ 'packages' => [ Lagdo\DbAdmin\App\Package::class => [ 'servers' => [ 'server_id' => [ // A unique identifier for this server 'driver' => 'sqlite', 'name' => '', // The name to be displayed in the dashboard UI. 'directory' => '', // The directory containing the database files. ], ], ], ], ],
有关包使用的更多信息,请参阅Jaxon DbAdmin文档。