https://github.com/lelinhtinh/adminer-formatter
Format SQL query in Adminer
https://github.com/lelinhtinh/adminer-formatter
adminer chrome-extension formatter
Last synced: 21 days ago
JSON representation
Format SQL query in Adminer
- Host: GitHub
- URL: https://github.com/lelinhtinh/adminer-formatter
- Owner: lelinhtinh
- Created: 2024-09-04T12:52:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2026-04-01T05:57:23.000Z (3 months ago)
- Last Synced: 2026-05-18T11:41:39.919Z (about 1 month ago)
- Topics: adminer, chrome-extension, formatter
- Language: PHP
- Homepage: https://chromewebstore.google.com/detail/bimlcmjbdkdjggaeehkamckolafapnhm
- Size: 646 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Adminer Formatter
Adminer Formatter is a Chrome Extension that adds SQL formatting functionality to the Adminer query editor.
## Features
- Formats SQL queries directly within the Adminer interface.
- Utilizes the `sql-formatter` package for robust and accurate formatting.
- Designed to maintain backward compatibility with older Adminer versions.
## Installation
1. Download or clone this repository.
2. Open Google Chrome and navigate to `chrome://extensions/`.
3. Enable "Developer mode" in the top right corner.
4. Click "Load unpacked" and select the directory containing this extension.
## Usage
Once installed and enabled, the extension will automatically add formatting capabilities to the SQL query textareas in Adminer.
## Development
The extension relies on a minified version of the `sql-formatter` package located at `libs/sql-formatter.min.js`.
## Credits
This project uses and is inspired by the following open-source projects:
- [Adminer](https://github.com/vrana/adminer) (v5.4.2)
- [SQL Formatter](https://github.com/sql-formatter-org/sql-formatter) (v15.8.0)
## License
MIT License