lagdo/dbadmin-driver-sqlite

DbAdmin driver for SQLite.

v0.4.1 2021-11-14 04:33 UTC

This package is auto-updated.

Last update: 2021-11-14 09:53:59 UTC


README

Scrutinizer Code Quality StyleCI

Latest Stable Version Total Downloads License

DbAdmin drivers for SQLite

This package is based on Adminer.

It provides SQLite drivers for Jaxon Adminer, and implements the interfaces defined in https://github.com/lagdo/dbadmin-driver.

It requires either the php-sqlite3 or the pdo_sqlite PHP extension to be installed, and uses the former by default.

Installation

Install with Composer.

composer require lagdo/dbadmin-driver-sqlite

Configuration

Declare the directories containing the databases in the packages section on the Jaxon config file. Set the driver option to sqlite. Databases are files with extension db, sdb or sqlite.

    'app' => [
        'packages' => [
            Lagdo\DbAdmin\Package::class => [
                'servers' => [
                    'server_id' => [
                        'driver' => 'sqlite',
                        'name' => '',     // The name to be displayed in the dashboard UI.
                        'directory' => '',// The directory containing the database files.
                    ],
                ],
            ],
        ],
    ],

Check the Jaxon Adminer documentation for more information about the package usage.