Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
3e18bd0
feat: Implement IMPORT statement grammar
Feb 3, 2025
482a993
feat: Classify new keywords in ParserKeywordsUtils
Feb 3, 2025
dcea88f
feat: Implement java classes for IMPORT statement
Feb 4, 2025
e1a74e1
feat: Add LOOKAHEADs for IMPORT statement
Feb 4, 2025
711200d
fix: Fix issues in IMPORT implementation
Feb 4, 2025
b0e6276
feat: Update keywords
Feb 5, 2025
0c9b80e
feat: Allow IMPORT as FromItem in SELECT
Feb 5, 2025
d412059
fix: Split double dot to fix broken unit tests
Feb 6, 2025
bcfa4e9
fix: Fix errors occured during verify step
Feb 6, 2025
0130d56
test: Implement unit tests for IMPORT
Feb 7, 2025
7437a75
feat: Simplify grammar
Feb 7, 2025
f495c96
test: Implement test for sub IMPORT
Feb 7, 2025
431a046
Merge branch 'master' into feature/exasol-import-statement
Feb 7, 2025
60bb98d
fix: Use double dot token in IMPORT
Feb 7, 2025
34fc6dd
feat: Implement EXPORT statement
Feb 7, 2025
c4e5907
refactor: Fix file extension in IMPORT tests
Feb 10, 2025
c1129a0
test: Implement unit tests for EXPORT statement
Feb 10, 2025
34791cf
feat: Implement classes for EXPORT statement
Feb 10, 2025
c658f4d
test: Fix EXPORT unit tests
Feb 11, 2025
9a71180
Merge branch 'master' into feature/exasol-import-export
Jun 2, 2025
8adaa89
fix: Implement missing SampleClause methods
Jun 2, 2025
0c132d0
feat: Add further Import tests
Jun 4, 2025
3d1b786
fix: Update Keywords and fix boolean data type matching
Jun 4, 2025
223143a
fix: Fix SourceDestinationType implementations
Jun 4, 2025
40f916d
style: Run spotlessApply
Jun 5, 2025
b56565d
fix: Fix spotbugsMain
Jun 5, 2025
3b74289
feat: Add test for RTRIM and LTRIM functions
Jun 10, 2025
7a08e3f
Merge branch 'master' into feature/exasol-import-export
Jun 10, 2025
140a6f1
feat: Add EXPORT feature flag
Jun 10, 2025
82e2f78
feat: Implement EXASOL dialect feature flag
Jun 10, 2025
f30d0bf
Merge branch 'master' into feature/exasol-import-export
manticore-projects Jun 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: Simplify grammar
  • Loading branch information
Stefan Steinhauser
Stefan Steinhauser committed Feb 7, 2025
commit 7437a75438887cfbdeaa7f17f3d4237983b2a8b0
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class CSVFileDestination implements ErrorDestination {
private ConnectionDefinition connectionDefinition;
private boolean local;
private boolean secure;
private StringValue filePath;
private StringValue file;

public ConnectionDefinition getConnectionDefinition() {
return connectionDefinition;
Expand All @@ -41,12 +41,12 @@ public void setSecure(boolean secure) {
this.secure = secure;
}

public StringValue getFilePath() {
return filePath;
public StringValue getFile() {
return file;
}

public void setFilePath(StringValue filePath) {
this.filePath = filePath;
public void setFile(StringValue file) {
this.file = file;
}

@Override
Expand All @@ -68,7 +68,7 @@ public String toString() {
}

sql.append(" FILE ");
sql.append(filePath);
sql.append(file);

return sql.toString();
}
Expand Down
40 changes: 40 additions & 0 deletions src/main/java/net/sf/jsqlparser/statement/DBMSType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2019 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
*/
package net.sf.jsqlparser.statement;

import net.sf.jsqlparser.expression.StringValue;

public enum DBMSType implements SourceDestinationType {
EXA,
ORA,
JDBC;

private StringValue jdbcDriverDefinition;

public StringValue getJDBCDriverDefinition() {
return jdbcDriverDefinition;
}

public void setJDBCDriverDefinition(StringValue jdbcDriverDefinition) {
this.jdbcDriverDefinition = jdbcDriverDefinition;
}

@Override
public String toString() {
StringBuilder sql = new StringBuilder();

sql.append(super.toString());
if (jdbcDriverDefinition != null) {
sql.append(" DRIVER = ").append(jdbcDriverDefinition);
}

return sql.toString();
}
}
15 changes: 15 additions & 0 deletions src/main/java/net/sf/jsqlparser/statement/FileType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2025 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
*/
package net.sf.jsqlparser.statement;

public enum FileType implements SourceDestinationType {
CSV,
FBV
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
*/
package net.sf.jsqlparser.statement.imprt;
package net.sf.jsqlparser.statement;

import net.sf.jsqlparser.expression.StringValue;
import net.sf.jsqlparser.schema.Table;
import net.sf.jsqlparser.statement.ConnectionDefinition;
import net.sf.jsqlparser.statement.imprt.ImportFromItem;

import java.io.Serializable;
import java.util.List;

public class ScriptSource extends ImportFromItem implements Serializable {
public class ScriptSourceDestination extends ImportFromItem implements Serializable {
private Table script;
private ConnectionDefinition connectionDefinition;
private List<String> properties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
*/
package net.sf.jsqlparser.statement.imprt;
package net.sf.jsqlparser.statement;

public enum DataSource {
EXA,
ORA,
JDBC,
CSV,
FBV,
SCRIPT
public interface SourceDestinationType {
}
26 changes: 7 additions & 19 deletions src/main/java/net/sf/jsqlparser/statement/imprt/DBMSSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,25 @@
import net.sf.jsqlparser.schema.Column;
import net.sf.jsqlparser.schema.Table;
import net.sf.jsqlparser.statement.ConnectionDefinition;
import net.sf.jsqlparser.statement.SourceDestinationType;
import net.sf.jsqlparser.statement.select.PlainSelect;

import java.io.Serializable;
import java.util.List;

public class DBMSSource extends ImportFromItem implements Serializable {
private DataSource dataSource;
private StringValue jdbcDriverDefinition;
private SourceDestinationType sourceType;
private ConnectionDefinition connectionDefinition;
private Table table;
private ExpressionList<Column> columns;
private List<StringValue> statements;

public DataSource getDataSource() {
return dataSource;
public SourceDestinationType getSourceType() {
return sourceType;
}

public void setDataSource(DataSource dataSource) {
this.dataSource = dataSource;
}

public StringValue getJdbcDriverDefinition() {
return jdbcDriverDefinition;
}

public void setJdbcDriverDefinition(StringValue jdbcDriverDefinition) {
this.jdbcDriverDefinition = jdbcDriverDefinition;
public void setSourceType(SourceDestinationType sourceType) {
this.sourceType = sourceType;
}

public ConnectionDefinition getConnectionDefinition() {
Expand Down Expand Up @@ -79,11 +71,7 @@ public void setStatements(List<StringValue> statements) {
public String toString() {
StringBuilder sql = new StringBuilder();

sql.append(dataSource);

if (jdbcDriverDefinition != null) {
sql.append(" DRIVER = ").append(jdbcDriverDefinition);
}
sql.append(sourceType);

sql.append(" ");
sql.append(connectionDefinition);
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/net/sf/jsqlparser/statement/imprt/FileSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import java.util.Objects;

public class FileSource extends ImportFromItem implements Serializable {
private DataSource dataSource;
private SourceDestinationType sourceType;
private List<ConnectionFileDefinition> connectionFileDefinitions;
private Boolean local;
private Boolean secure;
Expand All @@ -26,12 +26,12 @@ public class FileSource extends ImportFromItem implements Serializable {
private List<FileOption> fileOptions;
private CertificateVerification certificateVerification;

public DataSource getDataSource() {
return dataSource;
public SourceDestinationType getSourceType() {
return sourceType;
}

public void setDataSource(DataSource dataSource) {
this.dataSource = dataSource;
public void setSourceType(SourceDestinationType sourceType) {
this.sourceType = sourceType;
}

public List<ConnectionFileDefinition> getConnectionFileDefinitions() {
Expand Down Expand Up @@ -104,7 +104,7 @@ public String toString() {
}
}

sql.append(dataSource);
sql.append(sourceType);
if (connectionFileDefinitions != null) {
sql.append(" ");
PlainSelect.appendStringListTo(sql, connectionFileDefinitions, false, false);
Expand Down
Loading