1
Fork 0

preparation for non-queries

some docs in the lexer
bump the version to 0.5.0
add placeholder files for the planned initial non query support
This commit is contained in:
Jake Wheat 2015-08-01 18:08:54 +03:00
parent 0f1f000ee5
commit 6fc8869f73
10 changed files with 3943 additions and 22 deletions

View file

@ -0,0 +1,12 @@
Section 12 in Foundation
grant, etc
> module Language.SQL.SimpleSQL.SQL2011AccessControl (sql2011AccessControlTests) where
> import Language.SQL.SimpleSQL.TestTypes
> sql2011AccessControlTests :: TestItem
> sql2011AccessControlTests = Group "sql 2011 access control tests" []

View file

@ -0,0 +1,15 @@
Sections 16, 17, 18 and 19 in Foundation
This module covers the tests for control statements (call and return),
transaction management (begin, commit, savepoint, etc.), connection
management, and session management (set).
> module Language.SQL.SimpleSQL.SQL2011Bits (sql2011BitsTests) where
> import Language.SQL.SimpleSQL.TestTypes
> sql2011BitsTests :: TestItem
> sql2011BitsTests = Group "sql 2011 bits tests" []

File diff suppressed because it is too large Load diff

View file

@ -3,16 +3,26 @@ This file goes through the grammar for SQL 2011 (using the draft standard).
We are only looking at the query syntax, and no other parts.
There are other files which cover some of the other sections.
Possible sections not covered yet:
13 modules
16 control statements
20 dynamic
22 direct
23 diagnostics
The goal is to create some example tests for each bit of grammar, with
some areas getting more comprehensive coverage tests, and also to note
which parts aren't currently supported.
> module Language.SQL.SimpleSQL.SQL2011 (sql2011Tests) where
> module Language.SQL.SimpleSQL.SQL2011Queries (sql2011QueryTests) where
> import Language.SQL.SimpleSQL.TestTypes
> import Language.SQL.SimpleSQL.Syntax
> sql2011Tests :: TestItem
> sql2011Tests = Group "sql 2011 tests"
> sql2011QueryTests :: TestItem
> sql2011QueryTests = Group "sql 2011 query tests"
> [literals
> ,identifiers
> ,typeNameTests

File diff suppressed because it is too large Load diff

View file

@ -29,7 +29,11 @@ test data to the Test.Framework tests.
> import Language.SQL.SimpleSQL.Tpch
> import Language.SQL.SimpleSQL.LexerTests
> import Language.SQL.SimpleSQL.SQL2011
> import Language.SQL.SimpleSQL.SQL2011Queries
> import Language.SQL.SimpleSQL.SQL2011AccessControl
> import Language.SQL.SimpleSQL.SQL2011Bits
> import Language.SQL.SimpleSQL.SQL2011DataManipulation
> import Language.SQL.SimpleSQL.SQL2011Schema
> import Language.SQL.SimpleSQL.MySQL
@ -48,7 +52,11 @@ order on the generated documentation.
> ,fullQueriesTests
> ,postgresTests
> ,tpchTests
> ,sql2011Tests
> ,sql2011QueryTests
> ,sql2011DataManipulationTests
> ,sql2011SchemaTests
> ,sql2011AccessControlTests
> ,sql2011BitsTests
> ,mySQLTests
> ]