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
base: master
Commits on Jul 6, 2020
-
Merge branch 'master.fluent' of https://github.com/gitmotte/JSqlParse…
…r.git into master.fluent
gitmotte committedJul 6, 2020 -
gitmotte committed
Jul 6, 2020 -
* add with prefix for fluent setters. (revert to chaining setters, do
not break current api) #1004
gitmotte committedJul 6, 2020 -
* add with prefix for fluent setters. (revert to chaining setters, do
not break current api) #1004
gitmotte committedJul 6, 2020 -
use new methods within testcases
gitmotte committedJul 6, 2020 -
use new methods within testcases
gitmotte committedJul 6, 2020 -
use new methods within testcases
gitmotte committedJul 6, 2020 -
use new methods within testcases
gitmotte committedJul 6, 2020 -
use new methods within testcases
gitmotte committedJul 6, 2020 -
use new methods within testcases
gitmotte committedJul 6, 2020 -
use new methods within testcases
gitmotte committedJul 6, 2020
Commits on Jul 7, 2020
-
use new methods within testcases
gitmotte committedJul 7, 2020 -
Merge branch 'master.fluent' of
https://github.com/gitmotte/JSqlParser.git into master.fluent
gitmotte committedJul 7, 2020 -
remove create() methods - they do not add enough value to be justified
gitmotte committedJul 7, 2020 -
* use new methods within testcases
* add some constructors * fix and add "with" / "add" methods
gitmotte committedJul 7, 2020 -
* use new methods within testcases
gitmotte committedJul 7, 2020 -
gitmotte committed
Jul 7, 2020 -
use new methods within testcases
gitmotte committedJul 7, 2020 -
use new methods within testcases
gitmotte committedJul 7, 2020 -
use new methods within testcases
gitmotte committedJul 7, 2020 -
use new methods within testcases
gitmotte committedJul 7, 2020
Commits on Jul 8, 2020
-
Merge branch 'master.fluent' of https://github.com/gitmotte/JSqlParse…
…r.git into master.fluent
gitmotte committedJul 8, 2020 -
* use new methods within testcases
* add some with-methods * add getter/setter named after the field without abbrivation
gitmotte committedJul 8, 2020 -
* use new methods within testcases
gitmotte committedJul 8, 2020 -
remove empty implicit constructor
gitmotte committedJul 8, 2020 -
return the deparsed Statement - object
gitmotte committedJul 8, 2020 -
gitmotte committed
Jul 8, 2020 -
gitmotte committed
Jul 8, 2020 -
gitmotte committed
Jul 8, 2020 -
* use new methods within testcases
* add some "set" "with" "add" methods missing
gitmotte committedJul 8, 2020 -
* use new methods within testcases
gitmotte committedJul 8, 2020
Commits on Jul 9, 2020
-
add empty constructors and override with-/add-methods returning concrete
type
gitmotte committedJul 9, 2020 -
gitmotte committed
Jul 9, 2020 -
* use new methods within testcases
gitmotte committedJul 9, 2020 -
gitmotte committed
Jul 9, 2020 -
Commits on Jul 10, 2020
-
Merge branch 'master.fluent' of https://github.com/gitmotte/JSqlParse…
…r.git into master.fluent
gitmotte committedJul 10, 2020 -
-
-
* add SelectDeParser(StringBuilder)
* remove overriding setters/getters of buffer #1007
Commits on Jul 11, 2020
-
Merge branch 'master.cleancode'
gitmotte committedJul 11, 2020 -
org.synbee.commons.contrib:jsqlparser:3.2-0.0.6-SNAPSHOT
gitmotte committedJul 11, 2020 -
Merge branch 'github.validate'
gitmotte committedJul 11, 2020
Commits on Jul 12, 2020
-
add ValidationUtil for simple validation of one or more statements
gitmotte committedJul 12, 2020 -
* getCause * printStackTrace variants why add an additional cause ? set cause.getMessage() the message within constructor JSQLParserException(Throwable cause), othewise cause.toString() will be set as default.
gitmotte committedJul 12, 2020 -
Merge branch 'github.validate'
gitmotte committedJul 12, 2020 -
add ValidationUtil for simple validation of one or more statements
gitmotte committedJul 12, 2020 -
* getCause * printStackTrace variants why add an additional cause ? set cause.getMessage() the message within constructor JSQLParserException(Throwable cause), othewise cause.toString() will be set as default.
gitmotte committedJul 12, 2020 -
gitmotte committed
Jul 12, 2020 -
gitmotte committed
Jul 12, 2020
Commits on Jul 16, 2020
-
add stubs (use deparsers as template)
gitmotte committedJul 16, 2020 -
Merge branch 'master.validate' of https://github.com/gitmotte/JSqlPar…
…ser.git into master.validate
gitmotte committedJul 16, 2020 -
Merge branch 'master.validate' of
https://github.com/gitmotte/JSqlParser.git into master.validate
gitmotte committedJul 16, 2020 -
add ValidationUtil for simple validation of one or more statements
gitmotte committedJul 16, 2020 -
* getCause * printStackTrace variants why add an additional cause ? set cause.getMessage() the message within constructor JSQLParserException(Throwable cause), othewise cause.toString() will be set as default.
gitmotte committedJul 16, 2020 -
gitmotte committed
Jul 16, 2020 -
add stubs (use deparsers as template)
gitmotte committedJul 16, 2020 -
Merge branch 'master.validate' of https://github.com/gitmotte/JSqlPar…
…ser.git into master.validate
gitmotte committedJul 16, 2020 -
Merge branch 'master.validate' of
https://github.com/gitmotte/JSqlParser.git into master.validate
gitmotte committedJul 16, 2020 -
gitmotte committed
Jul 16, 2020 -
gitmotte committed
Jul 16, 2020 -
split Expressionvalidator which implements both ItemsListVisitor and
Expressionvisitor into Expressionvalidator and ItemListValidator
gitmotte committedJul 16, 2020 -
Merge branch 'github.validate'
gitmotte committedJul 16, 2020 -
Merge branch 'github.validate'
gitmotte committedJul 16, 2020 -
Merge branch 'github.validate'
gitmotte committedJul 16, 2020 -
gitmotte committed
Jul 16, 2020 -
Merge branch 'master' into github.validate
gitmotte committedJul 16, 2020
Commits on Jul 17, 2020
-
Merge branch 'master.validate' of
https://github.com/gitmotte/JSqlParser.git into master.validate
gitmotte committedJul 17, 2020 -
gitmotte committed
Jul 17, 2020 -
use get() - orElseThrow() is not supported in 1.8
gitmotte committedJul 17, 2020 -
validate through given ValidationCapability's
gitmotte committedJul 17, 2020 -
* switch to new method forced by
ValidationCapability.validate(ValidationContext context, Consumer<String> errorMessageConsumer); * add AllowedTypesValidation
gitmotte committedJul 17, 2020 -
gitmotte committed
Jul 17, 2020 -
use FeatureConfiguration within parser
gitmotte committedJul 17, 2020 -
gitmotte committed
Jul 17, 2020 -
gitmotte committed
Jul 17, 2020 -
gitmotte committed
Jul 17, 2020 -
gitmotte committed
Jul 17, 2020
Commits on Jul 18, 2020
-
* make FeatureConfiguration not a singleton any more
* CCJSqlParser extends AbstractJSqlParser<CCJSqlParser> * add FeaturesAllowed for testing against features allowed
gitmotte committedJul 18, 2020
Commits on Jul 19, 2020
-
gitmotte committed
Jul 19, 2020 -
basic implementation of DatabaseMetaDataValidation /
JdbcDatabaseMetaDataCapability
gitmotte committedJul 19, 2020 -
moving classes to sub-packages
gitmotte committedJul 19, 2020 -
gitmotte committed
Jul 19, 2020 -
gitmotte committed
Jul 19, 2020
Commits on Jul 20, 2020
-
gitmotte committed
Jul 20, 2020 -
* force definition of ```public String getMessage(Feature feature)```
in FeatureSetValidation * allow all objects as feature-value - this may be needed by the parser, if a none-boolean configuration is needed
gitmotte committedJul 20, 2020 -
gitmotte committed
Jul 20, 2020 -
* InsertValidator * multiple implementations of visit(SubSelect) -> forward to SelectValidator * add some known features to SqlServerVersion
gitmotte committedJul 20, 2020
Commits on Jul 21, 2020
-
refactoring enum-name should be upper case
gitmotte committedJul 21, 2020 -
gitmotte committed
Jul 21, 2020 -
refactoring enum-name should be upper case
gitmotte committedJul 21, 2020 -
gitmotte committed
Jul 21, 2020 -
gitmotte committed
Jul 21, 2020 -
gitmotte committed
Jul 21, 2020 -
+ validate Pivot, UnPivot, PivotXml
gitmotte committedJul 21, 2020 -
gitmotte committed
Jul 21, 2020 -
change testcase to image a more probably usecase
gitmotte committedJul 21, 2020 -
* predefined sets for EXECUTE, ALTER, DROP * allow to combine FeatureSets
gitmotte committedJul 21, 2020 -
gitmotte committed
Jul 21, 2020 -
gitmotte committed
Jul 21, 2020 -
gitmotte committed
Jul 21, 2020 -
javadoc and complete SELECT constant
gitmotte committedJul 21, 2020
Commits on Jul 22, 2020
-
use utility methods from AbstractValidator
gitmotte committedJul 22, 2020 -
gitmotte committed
Jul 22, 2020 -
add subtypes for ValidationException
* ValidationParseException * DatabaseException * UnexpectedValidationException and change Set<String> errors to Set<ValidationException> for collect.
gitmotte committedJul 22, 2020 -
gitmotte committed
Jul 22, 2020 -
gitmotte committed
Jul 22, 2020 -
extract parsing task into package - private class for {@link
ValidationUtil} to parse the statements * within it's own {@link ValidationCapability}gitmotte committedJul 22, 2020 -
add null-check for parsedStatement
gitmotte committedJul 22, 2020
Commits on Jul 23, 2020
-
bugfix - do not collect duplicates
gitmotte committedJul 23, 2020
Commits on Jul 24, 2020
-
gitmotte committed
Jul 24, 2020 -
gitmotte committed
Jul 24, 2020 -
gitmotte committed
Jul 24, 2020 -
gitmotte committed
Jul 24, 2020 -
renaming ItemListValidator -> ItemsListValidator
gitmotte committedJul 24, 2020 -
+ implement ReplaceValidator + use validateOptionalColumns, validateOptionalExpression where possible
gitmotte committedJul 24, 2020 -
* remove validateOptionalColumns -> switch to
validateOptionalExpressions * move validateOptionalOrderByElements to AbstractValidator * add validateOptional in AbstractValidator * add validateOptionalList in AbstractValidator
gitmotte committedJul 24, 2020 -
gitmotte committed
Jul 24, 2020 -
gitmotte committed
Jul 24, 2020 -
gitmotte committed
Jul 24, 2020 -
gitmotte committed
Jul 24, 2020 -
* implement ShowStatementValidator/ShowColumnsStatementValidator
gitmotte committedJul 24, 2020 -
gitmotte committed
Jul 24, 2020 -
* add Feature.jdbcParameter, Feature.jdbcNamedParameter, to all
featuresets * + Version.getFeaturesClone * add javadoc to Version-enum-constructors
gitmotte committedJul 24, 2020 -
gitmotte committed
Jul 24, 2020 -
gitmotte committed
Jul 24, 2020
Commits on Jul 25, 2020
-
gitmotte committed
Jul 25, 2020 -
* move method getFeaturesClone to FeatureSet
* implement join - validation * add copy(), add(Collection), remove(*) methods to FeaturesAllowed
gitmotte committedJul 25, 2020 -
* add join - features to sqlserver, h2
gitmotte committedJul 25, 2020 -
gitmotte committed
Jul 25, 2020 -
gitmotte committed
Jul 25, 2020
Commits on Jul 26, 2020
-
https://github.com//issues/1022
gitmotte committedJul 26, 2020 -
add more fine granular control for setOperations
gitmotte committedJul 26, 2020 -
gitmotte committed
Jul 26, 2020 -
add more fine granular control for comments
gitmotte committedJul 26, 2020 -
gitmotte committed
Jul 26, 2020
Commits on Jul 31, 2020
-
gitmotte committed
Jul 31, 2020 -
gitmotte committed
Jul 31, 2020 -
* add features to *Version-files
gitmotte committedJul 31, 2020
Commits on Aug 3, 2020
-
always parse net.sf.jsqlparser.statement.Statements and validate the
list of included net.sf.jsqlparser.statement.Statement's
gitmotte committedAug 3, 2020
Commits on Aug 4, 2020
-
gitmotte committed
Aug 4, 2020 -
new names-set for FeaturesAllowed
gitmotte committedAug 4, 2020 -
new names-set for FeaturesAllowed
gitmotte committedAug 4, 2020 -
new names-set for FeaturesAllowed
gitmotte committedAug 4, 2020 -
add ature.withItem, Feature.withItemRecursive to H2
gitmotte committedAug 4, 2020 -
Feature.setOperation, Feature.setOperationUnion,
Feature.setOperationIntersect, Feature.setOperationExcept, for MariaDbgitmotte committedAug 4, 2020 -
gitmotte committed
Aug 4, 2020
Commits on Aug 17, 2020
-
Merge branch 'master.orig' into github.validate
gitmotte committedAug 17, 2020 -
Merge branch 'master.orig' into github.validate
gitmotte committedAug 17, 2020
Commits on Aug 26, 2020
-
* an extensible validation visitor framework (ValidationCapability and
its subtypes FeatureSetValidation, DatabaseMetaDataValidation, AllowedTypesValidation) * FeatureConfiguration/Feature/FeatureSet class new packages * net.sf.jsqlparser.util.validation * net.sf.jsqlparser.parser.feature ------ history: * fresh clone from JSQLParser/JSqlParser (master) -> master.validate * (Merge the work on this issue done in 'github.validate' into master.validate) #1005
gitmotte committedAug 26, 2020 -
Merge branch 'master' of https://github.com/JSQLParser/JSqlParser.git …
…into origin.orig/master
gitmotte committedAug 26, 2020
Commits on Sep 2, 2020
-
fix typing error "joinStaight" > joinStraight
gitmotte committedSep 2, 2020 -
rename Feature "insertValues" -> "values" and use "insertValues" for
INSERT INTO ... VALUES
gitmotte committedSep 2, 2020 -
gitmotte committed
Sep 2, 2020 -
add Feature.selectGroupByGroupingSets to PostgresqlVersion
gitmotte committedSep 2, 2020 -
gitmotte committed
Sep 2, 2020 -
Merge branch 'JSQLParser.master/master' into master.validate
gitmotte committedSep 2, 2020 -
add Feature.mySql* - also supported by mariadb
gitmotte committedSep 2, 2020 -
add some more finegraned control over "drop" Feature.
* drop, * dropTable, * dropIndex, * dropView, * dropSchema, * dropSequence, * dropIfExists,
gitmotte committedSep 2, 2020 -
complete FeaturesAllowed groups INSERT/UPDATE/DELETE/MERGE/DML
gitmotte committedSep 2, 2020 -
gitmotte committed
Sep 2, 2020
Commits on Sep 8, 2020
-
fix - duplicate use of feature "function" - the use of functions in
statements and "createFunction" as a ddl statement
gitmotte committedSep 8, 2020 -
Merge branch 'master' of https://github.com/JSQLParser/JSqlParser.git …
…into origin.orig/master
gitmotte committedSep 8, 2020 -
Merge branch 'origin.orig/master' into origin/master.validate
gitmotte committedSep 8, 2020 -
TODO this feature seams very close to a jsqlparser-user usecase
gitmotte committedSep 8, 2020
Commits on Sep 11, 2020
-
* replace feature Feature.dropIfExists by features dropTableIfExists, dropIndexIfExists, dropViewIfExists, dropSchemaIfExists, dropSequenceIfExists * add methods FeatureSet.getNotContained FeatureSet.retainAll
gitmotte committedSep 11, 2020 -
remove HSQLDBVersion - do not support this variant
gitmotte committedSep 11, 2020 -
remove HSQLDBVersion - do not support this variant
gitmotte committedSep 11, 2020 -
Commits on Sep 14, 2020
-
* UpdateValidator * DeleteValidator add stubs for all other Validator-classes + ModifyableFeatureSet
-
Commits on Sep 15, 2020
-
complete unit-tests for InsertValidator
gitmotte committedSep 15, 2020 -
remote Feature.insertReturningExpressionList for Oracle -
returning_clause requires INTO clause (only PL/SQL)
gitmotte committedSep 15, 2020 -
-
gitmotte committed
Sep 15, 2020 -
gitmotte committed
Sep 15, 2020 -
gitmotte committed
Sep 15, 2020 -
-
Commits on Sep 16, 2020
-
gitmotte committed
Sep 16, 2020 -
gitmotte committed
Sep 16, 2020 -
implement GroupByValidatorTest
gitmotte committedSep 16, 2020 -
implement CreateSequenceValidatorTest
gitmotte committedSep 16, 2020 -
gitmotte committed
Sep 16, 2020 -
implement CreateIndexValidatorTest
gitmotte committedSep 16, 2020 -
implement CreateViewValidatorTest
gitmotte committedSep 16, 2020 -
enable validation of Feature.commentOnView (#1024 is merged already)
gitmotte committedSep 16, 2020 -
change format of #toString() for better readability
gitmotte committedSep 16, 2020 -
* implement MergeValidatorTest
* implement ReplaceValidatorTest * implement StatementValidatorTest
Commits on Sep 18, 2020
-
* ValidationUtil -> Validation * ValidatorUtil -> ValidationUtil add testcases for ValidationUtil
gitmotte committedSep 18, 2020 -
add DatabaseMetaDataValidationTest
gitmotte committedSep 18, 2020 -
gitmotte committed
Sep 18, 2020 -
Commits on Sep 21, 2020
-
add unit-tests for show tables, show column, show statements
gitmotte committedSep 21, 2020 -
* as there is a difference between execute <procedure> and execute [immediate] <dynamic sql> with USING expr, ... remove support for execute on MYSQL, MARIADB, ORACLE
gitmotte committedSep 21, 2020 -
* add ExecuteValidatorTest for CALL fnName (mysql, mariadb, postgres)
gitmotte committedSep 21, 2020 -
gitmotte committed
Sep 21, 2020 -
gitmotte committed
Sep 21, 2020 -
add AlterSequenceValidatorTest
gitmotte committedSep 21, 2020 -
add AlterSequenceValidatorTest
gitmotte committedSep 21, 2020 -
gitmotte committed
Sep 21, 2020 -
gitmotte committed
Sep 21, 2020 -
replace != null by isNotEmpty on collections
gitmotte committedSep 21, 2020 -
-
gitmotte committed
Sep 21, 2020 -
gitmotte committed
Sep 21, 2020 -
-
-
Commits on Sep 22, 2020
-
gitmotte committed
Sep 22, 2020 -
-
extract JdbcDatabaseMetaDataCapability.splitAndValidateMinMax
gitmotte committedSep 22, 2020 -
add pivot/unpivot/pivotxml validation testcases
gitmotte committedSep 22, 2020 -
add testcase for Feature.tableFunction
gitmotte committedSep 22, 2020 -
-
add testValidationRowMovementOption
gitmotte committedSep 22, 2020 -
gitmotte committed
Sep 22, 2020 -
move tests to LimitValidatorTest
gitmotte committedSep 22, 2020 -
move tests to UseStatementValidatorTest
gitmotte committedSep 22, 2020 -
add tests for SET - statements
gitmotte committedSep 22, 2020 -
-
Commits on Sep 23, 2020
Commits on Sep 24, 2020
-
need table/view reference to validate column names
gitmotte committedSep 24, 2020 -
fix errormessage (Arrays.toString(types))
gitmotte committedSep 24, 2020 -
return null, instead of throwing exception, if not found
Commits on Sep 25, 2020
-
-
gitmotte committed
Sep 25, 2020 -
remove methods not needed (they only delegate to ValidationContext)
gitmotte committedSep 25, 2020
Commits on Sep 27, 2020
-
gitmotte committed
Sep 27, 2020
Commits on Sep 28, 2020
Commits on Sep 29, 2020
-
fix columnExists check - depending on the statement the prefix is an
alias, a table/view or it has no prefix (need to lookup within all related tables/views)
gitmotte committedSep 29, 2020 -