2020-04-24 19:27:41 +02:00
|
|
|
cabal-version: 2.2
|
|
|
|
|
2013-12-13 11:46:35 +01:00
|
|
|
name: simple-sql-parser
|
2024-01-09 01:08:53 +01:00
|
|
|
version: 0.7.0
|
2015-08-01 17:08:54 +02:00
|
|
|
synopsis: A parser for SQL.
|
2014-04-20 18:24:03 +02:00
|
|
|
|
2015-08-15 20:01:48 +02:00
|
|
|
description:
|
|
|
|
|
|
|
|
A parser for SQL. Parses most SQL:2011
|
|
|
|
queries, non-query DML, DDL, access control and
|
|
|
|
transaction management syntax. Please see the
|
|
|
|
homepage for more information
|
2015-08-15 15:17:12 +02:00
|
|
|
<http://jakewheat.github.io/simple-sql-parser/latest>.
|
2013-12-13 11:46:35 +01:00
|
|
|
|
2015-08-15 15:17:12 +02:00
|
|
|
homepage: http://jakewheat.github.io/simple-sql-parser/latest
|
2020-04-24 19:27:41 +02:00
|
|
|
license: BSD-3-Clause
|
2013-12-13 11:46:35 +01:00
|
|
|
license-file: LICENSE
|
|
|
|
author: Jake Wheat
|
|
|
|
maintainer: jakewheatmail@gmail.com
|
2015-08-01 22:21:46 +02:00
|
|
|
copyright: Copyright Jake Wheat 2013, 2014, 2015
|
2013-12-13 14:05:32 +01:00
|
|
|
category: Database,Language
|
2013-12-13 11:46:35 +01:00
|
|
|
build-type: Simple
|
2013-12-17 20:12:16 +01:00
|
|
|
extra-source-files: README,LICENSE,changelog
|
2013-12-17 21:54:20 +01:00
|
|
|
bug-reports: https://github.com/JakeWheat/simple-sql-parser/issues
|
2013-12-13 11:46:35 +01:00
|
|
|
|
2013-12-13 14:05:32 +01:00
|
|
|
source-repository head
|
2013-12-14 19:45:45 +01:00
|
|
|
type: git
|
2013-12-17 21:54:20 +01:00
|
|
|
location: https://github.com/JakeWheat/simple-sql-parser.git
|
2013-12-13 11:46:35 +01:00
|
|
|
|
2015-08-01 11:13:53 +02:00
|
|
|
Flag parserexe
|
|
|
|
Description: Build SimpleSqlParserTool exe
|
2013-12-19 09:31:27 +01:00
|
|
|
Default: False
|
|
|
|
|
2019-08-31 14:41:07 +02:00
|
|
|
Flag fixitytest
|
|
|
|
Description: Build fixity test exe
|
|
|
|
Default: False
|
|
|
|
|
2020-04-24 19:27:41 +02:00
|
|
|
|
|
|
|
common shared-properties
|
|
|
|
default-language: Haskell2010
|
|
|
|
build-depends: base >=4 && <5,
|
|
|
|
parsec >=3.1 && <3.2,
|
2024-01-08 13:26:44 +01:00
|
|
|
mtl >=2.1 && <2.4,
|
2024-01-09 01:14:48 +01:00
|
|
|
prettyprinter >= 1.7 && < 1.8,
|
|
|
|
text >= 2.1 && < 2.2
|
2020-04-24 19:27:41 +02:00
|
|
|
|
|
|
|
ghc-options: -Wall
|
|
|
|
|
|
|
|
|
2013-12-13 11:46:35 +01:00
|
|
|
library
|
2020-04-24 19:27:41 +02:00
|
|
|
import: shared-properties
|
2013-12-13 15:04:48 +01:00
|
|
|
exposed-modules: Language.SQL.SimpleSQL.Pretty,
|
2016-02-12 11:22:19 +01:00
|
|
|
Language.SQL.SimpleSQL.Parse,
|
|
|
|
Language.SQL.SimpleSQL.Lex,
|
2019-09-01 11:04:04 +02:00
|
|
|
Language.SQL.SimpleSQL.Syntax,
|
2016-02-12 11:51:06 +01:00
|
|
|
Language.SQL.SimpleSQL.Dialect
|
2019-09-01 11:04:04 +02:00
|
|
|
Other-Modules: Language.SQL.SimpleSQL.Errors,
|
|
|
|
Language.SQL.SimpleSQL.Combinators
|
2014-04-20 18:24:03 +02:00
|
|
|
|
2013-12-14 19:42:01 +01:00
|
|
|
Test-Suite Tests
|
2020-04-24 19:27:41 +02:00
|
|
|
import: shared-properties
|
2013-12-14 19:42:01 +01:00
|
|
|
type: exitcode-stdio-1.0
|
2024-01-09 01:07:47 +01:00
|
|
|
main-is: RunTests.hs
|
2020-04-24 19:27:41 +02:00
|
|
|
hs-source-dirs: tools
|
|
|
|
Build-Depends: simple-sql-parser,
|
2024-01-08 13:26:44 +01:00
|
|
|
tasty >= 1.1 && < 1.6,
|
2018-09-22 12:37:13 +02:00
|
|
|
tasty-hunit >= 0.9 && < 0.11
|
2013-12-14 19:42:01 +01:00
|
|
|
|
2020-04-24 19:27:41 +02:00
|
|
|
Other-Modules: Language.SQL.SimpleSQL.ErrorMessages,
|
2013-12-17 10:40:31 +01:00
|
|
|
Language.SQL.SimpleSQL.FullQueries,
|
2013-12-17 18:17:03 +01:00
|
|
|
Language.SQL.SimpleSQL.GroupBy,
|
2014-06-27 11:19:15 +02:00
|
|
|
Language.SQL.SimpleSQL.MySQL,
|
2013-12-17 10:40:31 +01:00
|
|
|
Language.SQL.SimpleSQL.Postgres,
|
2017-08-05 11:29:33 +02:00
|
|
|
Language.SQL.SimpleSQL.Odbc,
|
2016-08-10 10:27:30 +02:00
|
|
|
Language.SQL.SimpleSQL.Oracle,
|
2013-12-17 11:16:03 +01:00
|
|
|
Language.SQL.SimpleSQL.QueryExprComponents,
|
|
|
|
Language.SQL.SimpleSQL.QueryExprs,
|
2015-08-01 17:08:54 +02:00
|
|
|
Language.SQL.SimpleSQL.SQL2011Queries,
|
|
|
|
Language.SQL.SimpleSQL.SQL2011AccessControl,
|
|
|
|
Language.SQL.SimpleSQL.SQL2011Bits,
|
|
|
|
Language.SQL.SimpleSQL.SQL2011DataManipulation,
|
|
|
|
Language.SQL.SimpleSQL.SQL2011Schema,
|
2013-12-17 10:40:31 +01:00
|
|
|
Language.SQL.SimpleSQL.TableRefs,
|
|
|
|
Language.SQL.SimpleSQL.TestTypes,
|
2013-12-14 19:45:45 +01:00
|
|
|
Language.SQL.SimpleSQL.Tests,
|
2014-04-20 15:13:14 +02:00
|
|
|
Language.SQL.SimpleSQL.Tpch,
|
2016-02-22 22:24:25 +01:00
|
|
|
Language.SQL.SimpleSQL.ScalarExprs,
|
2019-08-31 14:50:12 +02:00
|
|
|
Language.SQL.SimpleSQL.LexerTests,
|
2020-12-20 16:03:15 +01:00
|
|
|
Language.SQL.SimpleSQL.CustomDialect,
|
2021-10-19 17:32:25 +02:00
|
|
|
Language.SQL.SimpleSQL.EmptyStatement,
|
|
|
|
Language.SQL.SimpleSQL.CreateIndex
|
|
|
|
|
2020-04-24 19:27:41 +02:00
|
|
|
ghc-options: -threaded
|
2013-12-19 09:31:27 +01:00
|
|
|
|
2015-08-01 11:13:53 +02:00
|
|
|
executable SimpleSqlParserTool
|
2020-04-24 19:27:41 +02:00
|
|
|
import: shared-properties
|
2024-01-09 01:07:47 +01:00
|
|
|
main-is: SimpleSqlParserTool.hs
|
2020-04-24 19:27:41 +02:00
|
|
|
hs-source-dirs: tools
|
|
|
|
Build-Depends: simple-sql-parser,
|
2019-07-05 20:19:10 +02:00
|
|
|
pretty-show >= 1.6 && < 1.10
|
2015-08-01 11:13:53 +02:00
|
|
|
if flag(parserexe)
|
2013-12-19 09:31:27 +01:00
|
|
|
buildable: True
|
|
|
|
else
|
|
|
|
buildable: False
|
2015-08-01 14:58:45 +02:00
|
|
|
|
|
|
|
executable Fixity
|
2020-04-24 19:27:41 +02:00
|
|
|
import: shared-properties
|
2024-01-09 01:07:47 +01:00
|
|
|
main-is: Fixity.hs
|
2020-04-24 19:27:41 +02:00
|
|
|
hs-source-dirs: tools
|
|
|
|
Build-Depends: simple-sql-parser,
|
2019-07-05 20:19:10 +02:00
|
|
|
pretty-show >= 1.6 && < 1.10,
|
2024-01-08 13:26:44 +01:00
|
|
|
tasty >= 1.1 && < 1.6,
|
2018-09-22 12:37:13 +02:00
|
|
|
tasty-hunit >= 0.9 && < 0.11
|
2019-08-31 14:41:07 +02:00
|
|
|
if flag(fixitytest)
|
2015-08-01 14:58:45 +02:00
|
|
|
buildable: True
|
|
|
|
else
|
|
|
|
buildable: False
|
2019-07-07 12:33:02 +02:00
|
|
|
|