Projapps SQLite Administrator

I have always been thinking about how I can replace running MySQL with SQLite on my Mac for simple web applications. SQLite is basically a software that implements a self-containedserverlesszero-configurationtransactional SQL database engine. I think it should make developing and testing easier when a full-scale database is not required.

While administering SQLite locally is easy via the command-line or the SQLite Database browser, it’s not that straightforward to do it remotely. I could have installed phpLiteAdmin, which is based on phpMyAdmin, but then I thought it would be fun and educational for me to create one. Hence I started with a PHP framework, threw in a few AJAX libraries and plugins, and came up with P.S.A.

Framework/Libraries used:

Functionalities:

Version 1.0 supports the adding, updating and deleting of table data as well as the creating and dropping of tables. Only adding of column is allowed for altering table schema. What table is displayed for use depends on which user is logged in.

Usage:

Logging into demo table,

  1. Click ‘Login’ link.
  2. Enter username/password as demo/demo.
  3. psa_demo table will be displayed.
  4. Click on ‘Add’ button to add a new row.
  5. Double-click on a field to edit.
  6. Select a row and click ‘Delete’ button to remove the row.

Logging in as administrator,

  1. Click ‘Login’ link.
  2. Enter username/password as admin/admin. (This account is disabled in my online version. Download the enabled version here.)
  3. Admin panel will be displayed.
  4. Click on table name in admin panel to edit/drop table.
  5. Click on add_new_table in admin panel to create a table.
  6. Click on psa_users in tables panel to add/remove a user or edit username, password and the table a user can access.

Limitations:

As SQLite is not a full-scale database and that PHP does not come with SQLite3 support, I have to google for a customised PDO driver and restrict the functionalities of DataTables. Sorting and searching have to be disabled as IgnitedDatatables generates SQL queries for MySQL but not SQLite3.

Pending Enhancements:

  1. Modify IgnitedDatatables to support SQLite sorting and searching functionalities.
  2. Any other user suggestions given in the comments below.

Any enhancements done by users are greatly welcomed and appreciated.

This entry was posted in Application Development and tagged , , . Bookmark the permalink.

2 Responses to Projapps SQLite Administrator

  1. DENIS says:

    You can check one more free tool – Valentina Studio http://www.valentina-db.com/en/valentina-studio-overview

Leave a Reply

Your email address will not be published. Required fields are marked *