Giter Club home page Giter Club logo

geany-generic-sql-formatter's Introduction

Generic SQL Formatter Plugin for Geany

Generic SQL Formatter is a plugin used to format and prettify ugly, not formatted SQL files.

This repository represents an independent project whose results could be manually integrated with Geany.

  • Basic, configurable SQL formatting (don't expect miracles)

  • Formatting of whole files

  • Support for partial formatting limited to the text that is currently selected

  • Supported platforms: Linux

  • License: LGPL-3.0

Dependencies:

  • geany
  • geany-devel or geany-common (depending on the distro)
  • gtk+3.0-dev(el) or gtk+2.0-dev(el) (depending on the distro)
  • fsqlf - version(1.0.0-prealpha-02) - integrated in this repository
  • flex
  • make
  • cmake
  • pkg-config

Compilation

To compile run: make

To install (root privileges needed) run: sudo make install

To uninstall (root privileges needed) run: sudo make uninstall

Local to the current account installation

This is an alternative to globally install the plugin for all users. No root privileges needed.

To install for the current account run: make localinstall

To uninstall for the current account run: make localuninstall

Other notes

Attention MacOS users - this plugin will work with the manually installed and compiled Geany editor from source code. It will not work with the version installed from dmg files.

Other Useful Plugins

geany-generic-sql-formatter's People

Contributors

zhgzhg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

geany-generic-sql-formatter's Issues

Error with make prepare

agentile@agentile:~/Geany-Generic-SQL-Formatter-1.0.2$ sudo make
rm -fr ./fsqlf-1.0.0-prealpha-02/build && mkdir ./fsqlf-1.0.0-prealpha-02/build
cd ./fsqlf-1.0.0-prealpha-02/build && CFLAGS="-fPIC" cmake ../lib_fsqlf
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find FLEX (missing:  FLEX_EXECUTABLE) 
CMake Error at CMakeLists.txt:6 (FLEX_TARGET):
  Unknown CMake command "FLEX_TARGET".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.5)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/home/agentile/Geany-Generic-SQL-Formatter-1.0.2/fsqlf-1.0.0-prealpha-02/build/CMakeFiles/CMakeOutput.log".
Makefile:20: recipe for target 'prepare' failed
make: *** [prepare] Error 1

Not sure where to go from here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.