New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation visitor framework #1045
Open
gitmotte
wants to merge
263
commits into
JSQLParser:master
from
gitmotte:master.validate
base: master
+9,189
−81
fix javadoc warnings
f86eed8
Select commit
4b3a1a4
Merge branch 'master.fluent' of https://github.com/gitmotte/JSqlParse…
gitmotte 34db4f5
* add with prefix for fluent setters.
gitmotte a2600c7
add getters
gitmotte bb2b15f
* add with prefix for fluent setters. (revert to chaining setters, do
gitmotte 8b6fd6b
* add with prefix for fluent setters. (revert to chaining setters, do
gitmotte 0880fde
use new methods within testcases
gitmotte 63679e0
use new methods within testcases
gitmotte 1d0a24d
use new methods within testcases
gitmotte fda2f67
use new methods within testcases
gitmotte 8d2cde4
use new methods within testcases
gitmotte 1027829
use new methods within testcases
gitmotte 8de6c09
use new methods within testcases
gitmotte a0cc175
use new methods within testcases
gitmotte dd60c2e
Merge branch 'master.fluent' of
gitmotte ea4356a
remove create() methods - they do not add enough value to be justified
gitmotte 8ece698
* use new methods within testcases
gitmotte 77d92c0
* use new methods within testcases
gitmotte 0c99e8c
* use new methods within testcases
gitmotte 89fe5f4
* renamed constant
gitmotte 4d94a4d
use new methods within testcases
gitmotte d2cec9d
use new methods within testcases
gitmotte 0554831
use new methods within testcases
gitmotte b55b988
use new methods within testcases
gitmotte 8b68980
Merge branch 'master.fluent' of https://github.com/gitmotte/JSqlParse…
gitmotte 5f10ac4
* use new methods within testcases
gitmotte a7a0b70
* use new methods within testcases
gitmotte 77cf290
remove empty implicit constructor
gitmotte 09691fe
return the deparsed Statement - object
gitmotte d0c12d6
compare object tree
gitmotte 06684c1
compare object tree
gitmotte 2babbd7
* fix ObjectTreeToStringStyle
gitmotte c0dddbf
remove casts not needed
gitmotte cb2d078
* use new methods within testcases
gitmotte 48d859c
* use new methods within testcases
gitmotte 6267772
add empty constructors and override with-/add-methods returning concrete
gitmotte bfa2e20
* add ReflectionModelTest
gitmotte b80b2d5
* use new methods within testcases
gitmotte f1dfc4f
fix checkstyle errors
gitmotte e383883
license header
gitmotte bc8c2a4
Merge branch 'master.fluent' of https://github.com/gitmotte/JSqlParse…
gitmotte 41568fa
remove test-classes from ReflectionModelTest
gitmotte 94adc21
remove visitoradapter-classes from ReflectionModelTest
gitmotte c2f80a2
* add SelectDeParser(StringBuilder)
gitmotte 81455ee
Merge branch 'master.cleancode'
gitmotte 2c38c25
push to synbee-contrib
gitmotte 20bc1ac
Merge branch 'github.validate'
gitmotte 08eca7f
add ValidationUtil for simple validation of one or more statements
gitmotte 25b6035
remove overrides of
gitmotte c336736
Merge branch 'github.validate'
gitmotte 3a9e7d4
add ValidationVisitor showcase
gitmotte bd85f47
add ValidationUtil for simple validation of one or more statements
gitmotte 5b8b1b9
remove overrides of
gitmotte 96537f6
visit(ShowTablesStatement)
gitmotte 750173d
copyright/license
gitmotte 0116cfe
add stubs (use deparsers as template)
gitmotte 563fc6a
Merge branch 'master.validate' of https://github.com/gitmotte/JSqlPar…
gitmotte 2f649a2
Merge branch 'master.validate' of
gitmotte df9c9b0
add ValidationVisitor showcase
gitmotte 6d7df4b
add ValidationUtil for simple validation of one or more statements
gitmotte da4a246
remove overrides of
gitmotte 2bf49b2
visit(ShowTablesStatement)
gitmotte 2297233
add stubs (use deparsers as template)
gitmotte b005db2
Merge branch 'master.validate' of https://github.com/gitmotte/JSqlPar…
gitmotte f852161
Merge branch 'master.validate' of
gitmotte fc92f50
add tests for ValidationUtil
gitmotte 617e76b
+ implements OrderByVisitor
gitmotte 1f38c74
split Expressionvalidator which implements both ItemsListVisitor and
gitmotte 5eed3c3
Merge branch 'github.validate'
gitmotte ff1a227
Merge branch 'github.validate'
gitmotte 7e97aeb
Merge branch 'github.validate'
gitmotte ee346ea
implement upsertvalidator
gitmotte 1a7a287
Merge branch 'master' into github.validate
gitmotte 2c0695d
Merge branch 'master.validate' of
gitmotte 8bf3bf9
add copyright
gitmotte 9ed6d07
use get() - orElseThrow() is not supported in 1.8
gitmotte 676ad81
validate through given ValidationCapability's
gitmotte 04ea85f
* switch to new method forced by
gitmotte 9b5eecc
add FeatureConfiguration
gitmotte 084377a
use FeatureConfiguration within parser
gitmotte 279515b
repair pom.xml
gitmotte 9b94f89
repair pom.xml
gitmotte edc32d4
repair pom.xml
gitmotte fe1ae01
repair pom.xml
gitmotte 33d4c9d
* make FeatureConfiguration not a singleton any more
gitmotte 3f78259
implement some Validators
gitmotte 4ddaa66
basic implementation of DatabaseMetaDataValidation /
gitmotte 45d9128
moving classes to sub-packages
gitmotte 50a75f3
* moving classes to sub-packages
gitmotte 8228432
repair pom.xml
gitmotte 694bd39
add and fix validations
gitmotte bc7da82
add javadoc
gitmotte d12b706
* force definition of ```public String getMessage(Feature feature)```
gitmotte e29a35b
impl.
gitmotte 18336b0
add Version-enums
gitmotte a5cc7d3
impl.
gitmotte e578036
refactoring enum-name should be upper case
gitmotte 8e5cdfb
add ansi sql enum
gitmotte 34727c6
refactoring enum-name should be upper case
gitmotte 57d3192
implement limitvalidator
gitmotte 1b64628
+ validateOffset
gitmotte e1bcee7
+ validateFetch
gitmotte abc34de
+ validate Pivot, UnPivot, PivotXml
gitmotte e362817
+ implement DropValidator
gitmotte b02022e
change testcase to image a more probably usecase
gitmotte e17116e
* add javadoc and
gitmotte 19e124b
* implement executevalidator
gitmotte 3c34426
implement ExpressionValidator
gitmotte ec7b0fc
implement GrantValidator
gitmotte 8968f9a
javadoc and complete SELECT constant
gitmotte 49fc2a7
use utility methods from AbstractValidator
gitmotte 5f2d8bd
more user friendly names
gitmotte 1b660d7
javadoc
gitmotte 6d904df
add subtypes for ValidationException
gitmotte d8240ba
javadoc & rename exception
gitmotte 989042a
rename method
gitmotte 3d639bd
extract parsing task into package - private class for {@link
gitmotte b6f16be
add null-check for parsedStatement
gitmotte 6115628
bugfix - do not collect duplicates
gitmotte a0ffd27
implement toString() for
gitmotte 2a591b7
add simple caching
gitmotte acde3dc
+ validateOptionalFromItem(s)
gitmotte 6a3cc6e
* implement GroupByValidator
gitmotte 47a0f04
implement merge-validator
gitmotte 559c553
renaming ItemListValidator -> ItemsListValidator
gitmotte 72e025b
+ validateOptionalItemsList
gitmotte 7c9ce67
* remove validateOptionalColumns -> switch to
gitmotte 971bfac
+ SetStatementValidator
gitmotte ed92dfe
+ ValuesStatementValidator
gitmotte c2136c8
+ UseStatementValidator
gitmotte f7249d5
* implement UpdateValidator
gitmotte 336a06a
* implement ShowStatementValidator/ShowColumnsStatementValidator
gitmotte 0f8e1d0
* implement UpdateValidator
gitmotte b10c298
* add Feature.jdbcParameter, Feature.jdbcNamedParameter, to all
gitmotte 5e5f3a4
+ validateOptionalFeature
gitmotte a4a410e
* implement DeleteValidator
gitmotte cf1a05e
...
gitmotte 25be4a4
fix typo
gitmotte 9754460
small optimization
gitmotte 145cdf9
* move method getFeaturesClone to FeatureSet
gitmotte 6a90b92
* add join - features to sqlserver, h2
gitmotte 1f63b0b
implementations
gitmotte d88f068
bugfix - merging the errors
gitmotte b66e0ee
copyright
gitmotte 7a0ac5b
https://github.com/JSQLParser/JSqlParser/issues/1022
gitmotte 783ea38
add more fine granular control for setOperations
gitmotte 128436b
fix nullpointerexception
gitmotte c4de844
add more fine granular control for comments
gitmotte 9a8f437
add Features supported
gitmotte 484ce56
* add javadoc
gitmotte 4ddd34d
extract methods isNotEmpty
gitmotte 2129ac5
check for isNotEmpty
gitmotte c106ec9
* add features to *Version-files
gitmotte 033dc65
always parse net.sf.jsqlparser.statement.Statements and validate the
gitmotte a94cb96
add known mariadb features
gitmotte 2b3835b
new names-set for FeaturesAllowed
gitmotte 73c173e
new names-set for FeaturesAllowed
gitmotte 4a73772
new names-set for FeaturesAllowed
gitmotte b5712c8
add ature.withItem, Feature.withItemRecursive to H2
gitmotte a3b5974
Feature.setOperation, Feature.setOperationUnion,
gitmotte 6a2f095
add features to SQLServer
gitmotte 5915b97
Merge branch 'master.orig' into github.validate
gitmotte f32d047
Merge branch 'master.orig' into github.validate
gitmotte 225db94
@Override() -> @Override
gitmotte 1c58c6e
* an extensible validation visitor framework (ValidationCapability and
gitmotte a24e309
Merge branch 'master' of https://github.com/JSQLParser/JSqlParser.git…
gitmotte 28ba063
fix typing error "joinStaight" > joinStraight
gitmotte f3b3709
rename Feature "insertValues" -> "values" and use "insertValues" for
gitmotte 03265dd
add javadoc
gitmotte c5acbe4
add Feature.selectGroupByGroupingSets to PostgresqlVersion
gitmotte 4f96d2b
implement basic OracleVersion
gitmotte aeb3159
Merge branch 'JSQLParser.master/master' into master.validate
gitmotte 1427246
add Feature.mySql* - also supported by mariadb
gitmotte 61b78eb
add some more finegraned control over "drop" Feature.
gitmotte 4ea582d
complete FeaturesAllowed groups INSERT/UPDATE/DELETE/MERGE/DML
gitmotte 142e2c1
add link to documentation
gitmotte 86a443b
fix - duplicate use of feature "function" - the use of functions in
gitmotte ca1ebc0
Merge branch 'master' of https://github.com/JSQLParser/JSqlParser.git…
gitmotte a301a43
Merge branch 'origin.orig/master' into origin/master.validate
gitmotte cd39e18
TODO this feature seams very close to a jsqlparser-user usecase
gitmotte d2285f4
* implement MySqlVersion
gitmotte 8b971ab
remove HSQLDBVersion - do not support this variant
gitmotte 0c0ce78
remove HSQLDBVersion - do not support this variant
gitmotte 45514fd
Merge branch 'JSQLParser.master/master' into master.validate
gitmotte c736432
add unit-test
gitmotte 90f0da7
+ add unittests for
gitmotte 90227d1
add some utility-methods in ValidationTestAsserts
gitmotte ddebad4
complete unit-tests for InsertValidator
gitmotte 66e3fb4
remote Feature.insertReturningExpressionList for Oracle -
gitmotte ae8085e
add some more select validation tests
gitmotte bd31191
add DropValidatorTests
gitmotte f9c271d
add DropValidatorTests
gitmotte 7b85ab8
add CreateTableValidatorTests
gitmotte 149224c
add CreateTableValidatorTests
gitmotte 4eaee78
add ExpressionValidatorTests
gitmotte 8758923
add OrderByValidatorTest
gitmotte dc55189
use isNotEmpty
gitmotte d247f11
implement GroupByValidatorTest
gitmotte cbdd2d2
implement CreateSequenceValidatorTest
gitmotte 9ec4518
remove @Ignore - test is ok
gitmotte 2074bfb
implement CreateIndexValidatorTest
gitmotte c7261ca
implement CreateViewValidatorTest
gitmotte 7f2bd15
enable validation of Feature.commentOnView (#1024 is merged already)
gitmotte f4b4a7f
change format of #toString() for better readability
gitmotte 67edd7a
* implement MergeValidatorTest
gitmotte cce8912
rename
gitmotte 5e593ac
add DatabaseMetaDataValidationTest
gitmotte a348358
checkstyle fix
gitmotte bc07dc4
add copyright statement
gitmotte f065256
add unit-tests for show tables, show column, show statements
gitmotte a87e797
* add ExecuteValidatorTest
gitmotte 42de644
* add ExecuteValidatorTest for CALL fnName (mysql, mariadb, postgres)
gitmotte 643b3ac
add upsertvalidatortest
gitmotte 3caccf7
add GrantValidatorTest
gitmotte 7f0de9c
add AlterSequenceValidatorTest
gitmotte 1abac95
add AlterSequenceValidatorTest
gitmotte bda1689
add AlterViewValidatorTest
gitmotte fec4d65
add AlterValidatorTest
gitmotte 5207760
replace != null by isNotEmpty on collections
gitmotte f813f8f
fix formatting
gitmotte d2914cf
add validate commit
gitmotte e4cfd21
add validate block
gitmotte ad95766
add DeclareStatementValidatorTest
gitmotte 079c580
let NamesLookup implement UnaryOperator<String>
gitmotte e100701
let NamesLookup implement UnaryOperator<String>
gitmotte eb723b0
add javadoc
gitmotte 6a6aab5
add more DatabaseMetaDataValidationTest's
gitmotte df60604
extract JdbcDatabaseMetaDataCapability.splitAndValidateMinMax
gitmotte 0ec87ef
add pivot/unpivot/pivotxml validation testcases
gitmotte b8bbe8f
add testcase for Feature.tableFunction
gitmotte b1c094d
add test for lateral joins and subjoins
gitmotte e8209a7
add testValidationRowMovementOption
gitmotte 0ac4006
add values validator test
gitmotte 5c2b65d
move tests to LimitValidatorTest
gitmotte 457d17b
move tests to UseStatementValidatorTest
gitmotte 5eb08ec
add tests for SET - statements
gitmotte 5bec08a
fix checkstyle error
gitmotte 29623ad
new serialVersionUID
gitmotte d455cbb
add validation for NamedObject not existing
gitmotte 8a79a08
need table/view reference to validate column names
gitmotte 3714a2c
fix typo
gitmotte 63a7896
fix errormessage (Arrays.toString(types))
gitmotte 241ab00
add trigger, alias
gitmotte 9657d05
extract NamesLookup to own file (jdk-bug enum inner classes)
gitmotte 907cda7
fix name-check AlterOperation.ALTER
gitmotte c9030b2
fix error message
gitmotte 6257b66
remove methods not needed (they only delegate to ValidationContext)
gitmotte d2bc01f
add tests - validate metadata
gitmotte 5f8ff53
fix compile error
gitmotte 34cf7b9
fix columnExists check - depending on the statement the prefix is an
gitmotte f86eed8
fix javadoc warnings
gitmotte
Open
Validation visitor framework #1045
fix javadoc warnings
Jul 6, 2020
Jul 6, 2020
Jul 6, 2020
Jul 6, 2020
Jul 6, 2020
Jul 6, 2020
Jul 6, 2020
Jul 6, 2020
Jul 6, 2020
Jul 6, 2020
Jul 6, 2020
Jul 6, 2020
Jul 7, 2020
Jul 7, 2020
Jul 7, 2020
Jul 7, 2020
Jul 7, 2020
Jul 7, 2020
Jul 7, 2020
Jul 7, 2020
Jul 7, 2020
Jul 7, 2020
Jul 7, 2020
Jul 8, 2020
Jul 8, 2020
Jul 8, 2020
Jul 8, 2020
Jul 8, 2020
Jul 8, 2020
Jul 8, 2020
Jul 8, 2020
Jul 8, 2020
Jul 8, 2020
Jul 8, 2020
Jul 9, 2020
Jul 9, 2020
Jul 9, 2020
Jul 9, 2020
Jul 9, 2020
Jul 10, 2020
Jul 10, 2020
Jul 10, 2020
Jul 10, 2020
Jul 11, 2020
Jul 11, 2020
Jul 11, 2020
Jul 12, 2020
Jul 12, 2020
Jul 12, 2020
Jun 30, 2020
Jul 12, 2020
Jul 12, 2020
Jul 12, 2020
Jul 12, 2020
Jul 16, 2020
Jul 16, 2020
Jul 16, 2020
Jun 30, 2020
Jul 12, 2020
Jul 12, 2020
Jul 12, 2020
Jul 16, 2020
Jul 16, 2020
Jul 16, 2020
Jul 16, 2020
Jul 16, 2020
Jul 16, 2020
Jul 16, 2020
Jul 16, 2020
Jul 16, 2020
Jul 16, 2020
Jul 16, 2020
Jul 17, 2020
Jul 17, 2020
Jul 17, 2020
Jul 17, 2020
Jul 17, 2020
Jul 17, 2020
Jul 17, 2020
Jul 17, 2020
Jul 17, 2020
Jul 17, 2020
Jul 17, 2020
Jul 18, 2020
Jul 19, 2020
Jul 19, 2020
Jul 19, 2020
Jul 19, 2020
Jul 19, 2020
Jul 19, 2020
Jul 20, 2020
Jul 20, 2020
Jul 20, 2020
Jul 20, 2020
Jul 20, 2020
Jul 21, 2020
Jul 21, 2020
Jul 21, 2020
Jul 21, 2020
Jul 21, 2020
Jul 21, 2020
Jul 21, 2020
Jul 21, 2020
Jul 21, 2020
Jul 21, 2020
Jul 21, 2020
Jul 21, 2020
Jul 21, 2020
Jul 21, 2020
Jul 22, 2020
Jul 22, 2020
Jul 22, 2020
Jul 22, 2020
Jul 22, 2020
Jul 22, 2020
Jul 22, 2020
Jul 22, 2020
Jul 23, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 24, 2020
Jul 25, 2020
Jul 25, 2020
Jul 25, 2020
Jul 25, 2020
Jul 25, 2020
Jul 26, 2020
Jul 26, 2020
Jul 26, 2020
Jul 26, 2020
Jul 26, 2020
Jul 26, 2020
Jul 31, 2020
Jul 31, 2020
Jul 31, 2020
Jul 31, 2020
Aug 3, 2020
Aug 4, 2020
Aug 4, 2020
Aug 4, 2020
Aug 4, 2020
Aug 4, 2020
Aug 4, 2020
Aug 4, 2020
Aug 17, 2020
Aug 17, 2020
Aug 26, 2020
Aug 26, 2020
Aug 26, 2020
Sep 2, 2020
Sep 2, 2020
Sep 2, 2020
Sep 2, 2020
Sep 2, 2020
Sep 2, 2020
Sep 2, 2020
Sep 2, 2020
Sep 2, 2020
Sep 2, 2020
Sep 8, 2020
Sep 8, 2020
Sep 8, 2020
Sep 8, 2020
Sep 11, 2020
Sep 11, 2020
Sep 11, 2020
Sep 11, 2020
Sep 11, 2020
Sep 14, 2020
Sep 14, 2020
Sep 15, 2020
Sep 15, 2020
Sep 15, 2020
Sep 15, 2020
Sep 15, 2020
Sep 15, 2020
Sep 15, 2020
Sep 15, 2020
Sep 16, 2020
Sep 16, 2020
Sep 16, 2020
Sep 16, 2020
Sep 16, 2020
Sep 16, 2020
Sep 16, 2020
Sep 16, 2020
Sep 16, 2020
Sep 16, 2020
Sep 18, 2020
Sep 18, 2020
Sep 18, 2020
Sep 18, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 21, 2020
Sep 22, 2020
Sep 22, 2020
Sep 22, 2020
Sep 22, 2020
Sep 22, 2020
Sep 22, 2020
Sep 22, 2020
Sep 22, 2020
Sep 22, 2020
Sep 22, 2020
Sep 22, 2020
Sep 22, 2020
Sep 22, 2020
Sep 23, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 24, 2020
Sep 25, 2020
Sep 25, 2020
Sep 25, 2020
Sep 25, 2020
Sep 27, 2020
Sep 28, 2020
Sep 29, 2020
Sep 29, 2020
f86eed8
Select commit
4b3a1a4
Merge branch 'master.fluent' of https://github.com/gitmotte/JSqlParse…
gitmotte 34db4f5
* add with prefix for fluent setters.
gitmotte a2600c7
add getters
gitmotte bb2b15f
* add with prefix for fluent setters. (revert to chaining setters, do
gitmotte 8b6fd6b
* add with prefix for fluent setters. (revert to chaining setters, do
gitmotte 0880fde
use new methods within testcases
gitmotte 63679e0
use new methods within testcases
gitmotte 1d0a24d
use new methods within testcases
gitmotte fda2f67
use new methods within testcases
gitmotte 8d2cde4
use new methods within testcases
gitmotte 1027829
use new methods within testcases
gitmotte 8de6c09
use new methods within testcases
gitmotte a0cc175
use new methods within testcases
gitmotte dd60c2e
Merge branch 'master.fluent' of
gitmotte ea4356a
remove create() methods - they do not add enough value to be justified
gitmotte 8ece698
* use new methods within testcases
gitmotte 77d92c0
* use new methods within testcases
gitmotte 0c99e8c
* use new methods within testcases
gitmotte 89fe5f4
* renamed constant
gitmotte 4d94a4d
use new methods within testcases
gitmotte d2cec9d
use new methods within testcases
gitmotte 0554831
use new methods within testcases
gitmotte b55b988
use new methods within testcases
gitmotte 8b68980
Merge branch 'master.fluent' of https://github.com/gitmotte/JSqlParse…
gitmotte 5f10ac4
* use new methods within testcases
gitmotte a7a0b70
* use new methods within testcases
gitmotte 77cf290
remove empty implicit constructor
gitmotte 09691fe
return the deparsed Statement - object
gitmotte d0c12d6
compare object tree
gitmotte 06684c1
compare object tree
gitmotte 2babbd7
* fix ObjectTreeToStringStyle
gitmotte c0dddbf
remove casts not needed
gitmotte cb2d078
* use new methods within testcases
gitmotte 48d859c
* use new methods within testcases
gitmotte 6267772
add empty constructors and override with-/add-methods returning concrete
gitmotte bfa2e20
* add ReflectionModelTest
gitmotte b80b2d5
* use new methods within testcases
gitmotte f1dfc4f
fix checkstyle errors
gitmotte e383883
license header
gitmotte bc8c2a4
Merge branch 'master.fluent' of https://github.com/gitmotte/JSqlParse…
gitmotte 41568fa
remove test-classes from ReflectionModelTest
gitmotte 94adc21
remove visitoradapter-classes from ReflectionModelTest
gitmotte c2f80a2
* add SelectDeParser(StringBuilder)
gitmotte 81455ee
Merge branch 'master.cleancode'
gitmotte 2c38c25
push to synbee-contrib
gitmotte 20bc1ac
Merge branch 'github.validate'
gitmotte 08eca7f
add ValidationUtil for simple validation of one or more statements
gitmotte 25b6035
remove overrides of
gitmotte c336736
Merge branch 'github.validate'
gitmotte 3a9e7d4
add ValidationVisitor showcase
gitmotte bd85f47
add ValidationUtil for simple validation of one or more statements
gitmotte 5b8b1b9
remove overrides of
gitmotte 96537f6
visit(ShowTablesStatement)
gitmotte 750173d
copyright/license
gitmotte 0116cfe
add stubs (use deparsers as template)
gitmotte 563fc6a
Merge branch 'master.validate' of https://github.com/gitmotte/JSqlPar…
gitmotte 2f649a2
Merge branch 'master.validate' of
gitmotte df9c9b0
add ValidationVisitor showcase
gitmotte 6d7df4b
add ValidationUtil for simple validation of one or more statements
gitmotte da4a246
remove overrides of
gitmotte 2bf49b2
visit(ShowTablesStatement)
gitmotte 2297233
add stubs (use deparsers as template)
gitmotte b005db2
Merge branch 'master.validate' of https://github.com/gitmotte/JSqlPar…
gitmotte f852161
Merge branch 'master.validate' of
gitmotte fc92f50
add tests for ValidationUtil
gitmotte 617e76b
+ implements OrderByVisitor
gitmotte 1f38c74
split Expressionvalidator which implements both ItemsListVisitor and
gitmotte 5eed3c3
Merge branch 'github.validate'
gitmotte ff1a227
Merge branch 'github.validate'
gitmotte 7e97aeb
Merge branch 'github.validate'
gitmotte ee346ea
implement upsertvalidator
gitmotte 1a7a287
Merge branch 'master' into github.validate
gitmotte 2c0695d
Merge branch 'master.validate' of
gitmotte 8bf3bf9
add copyright
gitmotte 9ed6d07
use get() - orElseThrow() is not supported in 1.8
gitmotte 676ad81
validate through given ValidationCapability's
gitmotte 04ea85f
* switch to new method forced by
gitmotte 9b5eecc
add FeatureConfiguration
gitmotte 084377a
use FeatureConfiguration within parser
gitmotte 279515b
repair pom.xml
gitmotte 9b94f89
repair pom.xml
gitmotte edc32d4
repair pom.xml
gitmotte fe1ae01
repair pom.xml
gitmotte 33d4c9d
* make FeatureConfiguration not a singleton any more
gitmotte 3f78259
implement some Validators
gitmotte 4ddaa66
basic implementation of DatabaseMetaDataValidation /
gitmotte 45d9128
moving classes to sub-packages
gitmotte 50a75f3
* moving classes to sub-packages
gitmotte 8228432
repair pom.xml
gitmotte 694bd39
add and fix validations
gitmotte bc7da82
add javadoc
gitmotte d12b706
* force definition of ```public String getMessage(Feature feature)```
gitmotte e29a35b
impl.
gitmotte 18336b0
add Version-enums
gitmotte a5cc7d3
impl.
gitmotte e578036
refactoring enum-name should be upper case
gitmotte 8e5cdfb
add ansi sql enum
gitmotte 34727c6
refactoring enum-name should be upper case
gitmotte 57d3192
implement limitvalidator
gitmotte 1b64628
+ validateOffset
gitmotte e1bcee7
+ validateFetch
gitmotte abc34de
+ validate Pivot, UnPivot, PivotXml
gitmotte e362817
+ implement DropValidator
gitmotte b02022e
change testcase to image a more probably usecase
gitmotte e17116e
* add javadoc and
gitmotte 19e124b
* implement executevalidator
gitmotte 3c34426
implement ExpressionValidator
gitmotte ec7b0fc
implement GrantValidator
gitmotte 8968f9a
javadoc and complete SELECT constant
gitmotte 49fc2a7
use utility methods from AbstractValidator
gitmotte 5f2d8bd
more user friendly names
gitmotte 1b660d7
javadoc
gitmotte 6d904df
add subtypes for ValidationException
gitmotte d8240ba
javadoc & rename exception
gitmotte 989042a
rename method
gitmotte 3d639bd
extract parsing task into package - private class for {@link
gitmotte b6f16be
add null-check for parsedStatement
gitmotte 6115628
bugfix - do not collect duplicates
gitmotte a0ffd27
implement toString() for
gitmotte 2a591b7
add simple caching
gitmotte acde3dc
+ validateOptionalFromItem(s)
gitmotte 6a3cc6e
* implement GroupByValidator
gitmotte 47a0f04
implement merge-validator
gitmotte 559c553
renaming ItemListValidator -> ItemsListValidator
gitmotte 72e025b
+ validateOptionalItemsList
gitmotte 7c9ce67
* remove validateOptionalColumns -> switch to
gitmotte 971bfac
+ SetStatementValidator
gitmotte ed92dfe
+ ValuesStatementValidator
gitmotte c2136c8
+ UseStatementValidator
gitmotte f7249d5
* implement UpdateValidator
gitmotte 336a06a
* implement ShowStatementValidator/ShowColumnsStatementValidator
gitmotte 0f8e1d0
* implement UpdateValidator
gitmotte b10c298
* add Feature.jdbcParameter, Feature.jdbcNamedParameter, to all
gitmotte 5e5f3a4
+ validateOptionalFeature
gitmotte a4a410e
* implement DeleteValidator
gitmotte cf1a05e
...
gitmotte 25be4a4
fix typo
gitmotte 9754460
small optimization
gitmotte 145cdf9
* move method getFeaturesClone to FeatureSet
gitmotte 6a90b92
* add join - features to sqlserver, h2
gitmotte 1f63b0b
implementations
gitmotte d88f068
bugfix - merging the errors
gitmotte b66e0ee
copyright
gitmotte 7a0ac5b
https://github.com/JSQLParser/JSqlParser/issues/1022
gitmotte 783ea38
add more fine granular control for setOperations
gitmotte 128436b
fix nullpointerexception
gitmotte c4de844
add more fine granular control for comments
gitmotte 9a8f437
add Features supported
gitmotte 484ce56
* add javadoc
gitmotte 4ddd34d
extract methods isNotEmpty
gitmotte 2129ac5
check for isNotEmpty
gitmotte c106ec9
* add features to *Version-files
gitmotte 033dc65
always parse net.sf.jsqlparser.statement.Statements and validate the
gitmotte a94cb96
add known mariadb features
gitmotte 2b3835b
new names-set for FeaturesAllowed
gitmotte 73c173e
new names-set for FeaturesAllowed
gitmotte 4a73772
new names-set for FeaturesAllowed
gitmotte b5712c8
add ature.withItem, Feature.withItemRecursive to H2
gitmotte a3b5974
Feature.setOperation, Feature.setOperationUnion,
gitmotte 6a2f095
add features to SQLServer
gitmotte 5915b97
Merge branch 'master.orig' into github.validate
gitmotte f32d047
Merge branch 'master.orig' into github.validate
gitmotte 225db94
@Override() -> @Override
gitmotte 1c58c6e
* an extensible validation visitor framework (ValidationCapability and
gitmotte a24e309
Merge branch 'master' of https://github.com/JSQLParser/JSqlParser.git…
gitmotte 28ba063
fix typing error "joinStaight" > joinStraight
gitmotte f3b3709
rename Feature "insertValues" -> "values" and use "insertValues" for
gitmotte 03265dd
add javadoc
gitmotte c5acbe4
add Feature.selectGroupByGroupingSets to PostgresqlVersion
gitmotte 4f96d2b
implement basic OracleVersion
gitmotte aeb3159
Merge branch 'JSQLParser.master/master' into master.validate
gitmotte 1427246
add Feature.mySql* - also supported by mariadb
gitmotte 61b78eb
add some more finegraned control over "drop" Feature.
gitmotte 4ea582d
complete FeaturesAllowed groups INSERT/UPDATE/DELETE/MERGE/DML
gitmotte 142e2c1
add link to documentation
gitmotte 86a443b
fix - duplicate use of feature "function" - the use of functions in
gitmotte ca1ebc0
Merge branch 'master' of https://github.com/JSQLParser/JSqlParser.git…
gitmotte a301a43
Merge branch 'origin.orig/master' into origin/master.validate
gitmotte cd39e18
TODO this feature seams very close to a jsqlparser-user usecase
gitmotte d2285f4
* implement MySqlVersion
gitmotte 8b971ab
remove HSQLDBVersion - do not support this variant
gitmotte 0c0ce78
remove HSQLDBVersion - do not support this variant
gitmotte 45514fd
Merge branch 'JSQLParser.master/master' into master.validate
gitmotte c736432
add unit-test
gitmotte 90f0da7
+ add unittests for
gitmotte 90227d1
add some utility-methods in ValidationTestAsserts
gitmotte ddebad4
complete unit-tests for InsertValidator
gitmotte 66e3fb4
remote Feature.insertReturningExpressionList for Oracle -
gitmotte ae8085e
add some more select validation tests
gitmotte bd31191
add DropValidatorTests
gitmotte f9c271d
add DropValidatorTests
gitmotte 7b85ab8
add CreateTableValidatorTests
gitmotte 149224c
add CreateTableValidatorTests
gitmotte 4eaee78
add ExpressionValidatorTests
gitmotte 8758923
add OrderByValidatorTest
gitmotte dc55189
use isNotEmpty
gitmotte d247f11
implement GroupByValidatorTest
gitmotte cbdd2d2
implement CreateSequenceValidatorTest
gitmotte 9ec4518
remove @Ignore - test is ok
gitmotte 2074bfb
implement CreateIndexValidatorTest
gitmotte c7261ca
implement CreateViewValidatorTest
gitmotte 7f2bd15
enable validation of Feature.commentOnView (#1024 is merged already)
gitmotte f4b4a7f
change format of #toString() for better readability
gitmotte 67edd7a
* implement MergeValidatorTest
gitmotte cce8912
rename
gitmotte 5e593ac
add DatabaseMetaDataValidationTest
gitmotte a348358
checkstyle fix
gitmotte bc07dc4
add copyright statement
gitmotte f065256
add unit-tests for show tables, show column, show statements
gitmotte a87e797
* add ExecuteValidatorTest
gitmotte 42de644
* add ExecuteValidatorTest for CALL fnName (mysql, mariadb, postgres)
gitmotte 643b3ac
add upsertvalidatortest
gitmotte 3caccf7
add GrantValidatorTest
gitmotte 7f0de9c
add AlterSequenceValidatorTest
gitmotte 1abac95
add AlterSequenceValidatorTest
gitmotte bda1689
add AlterViewValidatorTest
gitmotte fec4d65
add AlterValidatorTest
gitmotte 5207760
replace != null by isNotEmpty on collections
gitmotte f813f8f
fix formatting
gitmotte d2914cf
add validate commit
gitmotte e4cfd21
add validate block
gitmotte ad95766
add DeclareStatementValidatorTest
gitmotte 079c580
let NamesLookup implement UnaryOperator<String>
gitmotte e100701
let NamesLookup implement UnaryOperator<String>
gitmotte eb723b0
add javadoc
gitmotte 6a6aab5
add more DatabaseMetaDataValidationTest's
gitmotte df60604
extract JdbcDatabaseMetaDataCapability.splitAndValidateMinMax
gitmotte 0ec87ef
add pivot/unpivot/pivotxml validation testcases
gitmotte b8bbe8f
add testcase for Feature.tableFunction
gitmotte b1c094d
add test for lateral joins and subjoins
gitmotte e8209a7
add testValidationRowMovementOption
gitmotte 0ac4006
add values validator test
gitmotte 5c2b65d
move tests to LimitValidatorTest
gitmotte 457d17b
move tests to UseStatementValidatorTest
gitmotte 5eb08ec
add tests for SET - statements
gitmotte 5bec08a
fix checkstyle error
gitmotte 29623ad
new serialVersionUID
gitmotte d455cbb
add validation for NamedObject not existing
gitmotte 8a79a08
need table/view reference to validate column names
gitmotte 3714a2c
fix typo
gitmotte 63a7896
fix errormessage (Arrays.toString(types))
gitmotte 241ab00
add trigger, alias
gitmotte 9657d05
extract NamesLookup to own file (jdk-bug enum inner classes)
gitmotte 907cda7
fix name-check AlterOperation.ALTER
gitmotte c9030b2
fix error message
gitmotte 6257b66
remove methods not needed (they only delegate to ValidationContext)
gitmotte d2bc01f
add tests - validate metadata
gitmotte 5f8ff53
fix compile error
gitmotte 34cf7b9
fix columnExists check - depending on the statement the prefix is an
gitmotte f86eed8
fix javadoc warnings
gitmotte