Git Product home page Git Product logo

sql-table-name-parser's Introduction

SQL Table Name Parser

Build Status Coverage Status Maven Central Dependency Status License

Regular Expressions are not full proof solution for extracting table names from SQL queries... As tons of things has to be considered, which would be trickier to express in RegX, and would break out in one or other cases....

Then what?? Full proof sql parsers like JSQL parser , ZQL Library, SQL Parser??

Well if you just need to extract table names from SQLs, full blown SQL parsers would be over kill, further most of the parser does not support all the dialects, You may end up modifying the grammer files for you need, just to extract table names.

This small library would help you do that very easily and concisely.

How To Use It?

Just Use the following Syntax

new TableNameParser(sql).tables()

License

SQL Table Name Parser is licensed under Apache Software License, Version 2.0.

News

  • Version 0.0.5 released on 12/06/2016.
  • Version 0.0.4 released on 11/19/2016.
  • Version 0.0.3 released on 11/03/2016.
  • Version 0.0.2 released on 08/27/2016.

Maven Repository

SQL Table Name Parser is deployed at sonatypes open source maven repository. You may use the following repository configuration (if you are interested in snapshots)

<repositories>
     <repository>
         <id>dexecutor-snapshots</id>
         <snapshots>
             <enabled>true</enabled>
         </snapshots>
         <url>https://oss.sonatype.org/content/groups/public/</url>
     </repository>
</repositories>

This repositories releases will be synched to maven central on a regular basis. Snapshots remain at sonatype.

Alternatively you can pull it from the central maven repository, just add these to your pom.xml file:

<dependency>
    <groupId>com.github.mnadeem</groupId>
    <artifactId>sql-table-name-parser</artifactId>
    <version>0.0.5</version>
</dependency>

BUILDING from the sources

As it is maven project, buidling is just a matter of executing the following in your console:

mvn package

This will produce the sql-table-name-parser-VERSION.jar file under the target directory.

Support

If you need help using this library feel free to drop an email or create an issue in github.com (preferred)

Contributions

To help Dexecutor development you are encouraged to

  • Provide suggestion/feedback/Issue
  • pull requests for new features
  • Star ๐ŸŒŸ the project

View My profile on LinkedIn

sql-table-name-parser's People

Contributors

mnadeem avatar sandlb avatar breakingthebuild avatar

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.