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-02-04 17:00:59 +01:00
|
|
|
version: 0.8.0
|
2015-08-01 17:08:54 +02:00
|
|
|
synopsis: A parser for SQL.
|
2014-04-20 18:24:03 +02:00
|
|
|
|
2024-02-02 18:20:20 +01:00
|
|
|
description: A parser for SQL. Parses most SQL:2011
|
2015-08-15 20:01:48 +02:00
|
|
|
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
|
2024-01-11 14:55:41 +01:00
|
|
|
maintainer: jakewheat@tutanota.com
|
|
|
|
copyright: Copyright 2013 - 2024, Jake Wheat and the simple-sql-parser contributors.
|
2013-12-13 14:05:32 +01:00
|
|
|
category: Database,Language
|
2013-12-13 11:46:35 +01:00
|
|
|
build-type: Simple
|
2024-01-10 13:29:21 +01:00
|
|
|
extra-doc-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
|
|
|
|
2024-02-03 10:07:30 +01:00
|
|
|
source-repository head
|
|
|
|
type: git
|
|
|
|
location: https://github.com/JakeWheat/simple-sql-parser.git
|
|
|
|
|
2015-08-01 11:13:53 +02:00
|
|
|
Flag parserexe
|
2024-01-26 16:28:15 +01:00
|
|
|
Description: Build SimpleSQLParserTool exe
|
2024-01-10 13:29:21 +01:00
|
|
|
Default: False
|
|
|
|
|
2024-02-04 17:00:59 +01:00
|
|
|
Flag testexe
|
|
|
|
Description: Build Testing exe
|
|
|
|
Default: False
|
|
|
|
|
2020-04-24 19:27:41 +02:00
|
|
|
common shared-properties
|
|
|
|
default-language: Haskell2010
|
|
|
|
build-depends: base >=4 && <5,
|
2024-01-09 18:53:12 +01:00
|
|
|
megaparsec >=9.6 && <9.7,
|
|
|
|
parser-combinators >= 1.3 && < 1.4,
|
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,
|
2024-01-10 17:17:30 +01:00
|
|
|
text >= 2.0 && < 2.2,
|
2024-01-10 13:29:21 +01:00
|
|
|
containers >= 0.6 && < 0.8
|
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
|
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
|
2024-01-26 16:28:15 +01:00
|
|
|
hs-source-dirs: tests
|
2020-04-24 19:27:41 +02:00
|
|
|
Build-Depends: simple-sql-parser,
|
2024-02-04 17:00:59 +01:00
|
|
|
hspec,
|
|
|
|
hspec-megaparsec,
|
|
|
|
hspec-expectations,
|
|
|
|
raw-strings-qq,
|
2024-02-08 11:38:19 +01:00
|
|
|
hspec-golden,
|
|
|
|
filepath,
|
|
|
|
pretty-show,
|
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,
|
2024-10-07 11:49:50 +02:00
|
|
|
Language.SQL.SimpleSQL.QueryExprParens,
|
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
|
2024-02-04 17:00:59 +01:00
|
|
|
Language.SQL.SimpleSQL.Expectations
|
|
|
|
Language.SQL.SimpleSQL.TestRunners
|
2021-10-19 17:32:25 +02:00
|
|
|
|
2020-04-24 19:27:41 +02:00
|
|
|
ghc-options: -threaded
|
2013-12-19 09:31:27 +01:00
|
|
|
|
2024-02-08 11:38:19 +01:00
|
|
|
-- this is a testing tool, do some dumb stuff to hide the dependencies in hackage
|
|
|
|
Test-Suite SimpleSQLParserTool
|
2020-04-24 19:27:41 +02:00
|
|
|
import: shared-properties
|
2024-02-08 11:38:19 +01:00
|
|
|
type: exitcode-stdio-1.0
|
2024-01-26 16:28:15 +01:00
|
|
|
main-is: SimpleSQLParserTool.hs
|
|
|
|
hs-source-dirs: examples
|
2020-04-24 19:27:41 +02:00
|
|
|
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
|
2024-02-04 17:00:59 +01:00
|
|
|
|