EnglishFrenchSpanish

OnWorks favicon

SqlFormatter download for Windows

Free download SqlFormatter Windows app to run online win Wine in Ubuntu online, Fedora online or Debian online

This is the Windows app named SqlFormatter whose latest release can be downloaded as Version1.2.16Stable.zip. It can be run online in the free hosting provider OnWorks for workstations.

Download and run online this app named SqlFormatter with OnWorks for free.

Follow these instructions in order to run this app:

- 1. Downloaded this application in your PC.

- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.

- 3. Upload this application in such filemanager.

- 4. Start any OS OnWorks online emulator from this website, but better Windows online emulator.

- 5. From the OnWorks Windows OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.

- 6. Download the application and install it.

- 7. Download Wine from your Linux distributions software repositories. Once installed, you can then double-click the app to run them with Wine. You can also try PlayOnLinux, a fancy interface over Wine that will help you install popular Windows programs and games.

Wine is a way to run Windows software on Linux, but with no Windows required. Wine is an open-source Windows compatibility layer that can run Windows programs directly on any Linux desktop. Essentially, Wine is trying to re-implement enough of Windows from scratch so that it can run all those Windows applications without actually needing Windows.

SCREENSHOTS

Ad


SqlFormatter


DESCRIPTION

A lightweight php class for formatting sql statements. It can automatically indent and add line breaks in addition to syntax highlighting. I found myself having to debug auto-generated SQL statements all the time and wanted some way to easily output formatted HTML without having to include a huge library or copy and paste into online formatters. I was originally planning to extract the formatting code from PhpMyAdmin, but that was 10,000+ lines of code and used global variables. The SqlFormatter class has a static method 'format' which takes a SQL string as input and returns a formatted HTML block inside a pre tag. If you don't want syntax highlighting and only want the indentations and line breaks, pass in false as the second parameter. There is a separate method 'highlight' that preserves all original whitespace and just adds syntax highlighting.



Features

  • A lightweight php class for formatting sql statements
  • The compress method removes all comments and compresses whitespace
  • If you want to keep all original whitespace formatting and just remove comments, you can use the removeComments method instead of compress
  • Break up a SQL string into multiple queries
  • The SqlFormatter class has a static method 'format' which takes a SQL string
  • It can automatically indent and add line breaks in addition to syntax highlighting


Programming Language

PHP


Categories

Data Formats

This is an application that can also be fetched from https://sourceforge.net/projects/sqlformatter.mirror/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.


Free Servers & Workstations

Download Windows & Linux apps

Linux commands

Ad