feat(jsqlparser): 首次提交

This commit is contained in:
2026-01-21 20:50:35 +08:00
commit dc8ea30850
461 changed files with 61538 additions and 0 deletions

12
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: https://paypal.me/wumpz

41
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,41 @@
---
name: @ SQL Parser Error
about: Create a report to help us improve
title: '[BUG] JSQLParser Version : RDBMS : failing feature description'
labels: 'Parser Error', 'Feature Request', 'Documentation', 'Java API', 'RDBMS support'
assignees: ''
---
<!--
Note: Please search to see if an issue already exists for the bug you encountered.
-->
### Failing SQL Feature:
<!--
- Brief description of the failing SQL feature
- Example: `WITH ROLLUP` can't be parsed
-->
### SQL Example:
<!--
- Simplified Query Example, focusing on the failing feature
```sql
-- Replace with your ACTUAL example
select 1
from dual
```
-->
### Software Information:
<!--
- JSqlParser version
- Database (e. g. Oracle, MS SQL Server, H2, PostgreSQL, IBM DB2 )
-->
### Tips:
<!--
Please write in English and avoid Screenshots (as we can't copy and paste content from it).
[Try your example online with the latest JSQLParser](http://217.160.215.75:8080/jsqlformatter/demo.html) and share the link in the error report.
Do provide Links or References to the specific Grammar and Syntax you are trying to use.
-->

View File

@@ -0,0 +1,31 @@
---
name: Feature request
about: Suggest an unsupported Statement or Expression
title: "[FEATURE] missing feature description"
labels: ''
assignees: ''
---
### Grammar or Syntax Description
- Brief description of the failing SQL feature and the EBNF
- Example: `WITH ROLLUP` clause is not supported yet
### SQL Example
- Simplified Query Example, focusing on the failing feature
```sql
-- Replace with your ACTUAL example
select 1
from dual
```
- Please don't send screen shots
### Additional context
The used JSQLParser Version (please test the latest SNAPSHOT version before submitting).
State the applicable RDBMS and version
Links to the reference documentation
### Tips:
<!--
Please write in English and avoid Screenshots (as we can't copy and paste content from it).
-->

View File

@@ -0,0 +1,31 @@
---
name: SQL Parser Error
about: Report a Parser Error
title: "[BUG] JSQLParser Version : RDBMS : failing feature description"
labels: ''
assignees: ''
---
Always check against the **Latest SNAPSHOT of JSQLParser** and the [Syntax Diagram](https://jsqlparser.github.io/JSqlParser/syntax_snapshot.html)
### Failing SQL Feature:
- Brief description of the failing SQL feature
- Example: `WITH ROLLUP` can't be parsed
### SQL Example:
- Simplified Query Example, focusing on the failing feature
```sql
-- Replace with your ACTUAL example
select 1
from dual
```
### Software Information:
- JSqlParser version
- Database (e. g. Oracle, MS SQL Server, H2, PostgreSQL, IBM DB2 )
### Tips:
Please write in English and avoid Screenshots (as we can't copy and paste content from it).
[Try your example online with the latest JSQLParser](http://jsqlformatter.manticore-projects.com) and share the link in the error report.
Do provide Links or References to the specific Grammar and Syntax you are trying to use.

8
.github/release.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
changelog:
categories:
- title: Bugs solved
labels:
- "bug"
- title: Changes and new Features
labels:
- "*"

35
.github/workflows/gradle.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Gradle CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v2.6.0
with:
arguments: check
env:
ossrhUsername: ${{ secrets.OSSRHPASSWORD }}
ossrhPassword: ${{ secrets.OSSRHUSERNAME }}

37
.github/workflows/gradle_publish.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Gradle publish Snapshot
on:
workflow_dispatch:
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v2.6.0
with:
arguments: publish
# arguments: build check publish
env:
ossrhUsername: ${{ secrets.OSSRHPASSWORD }}
ossrhPassword: ${{ secrets.OSSRHUSERNAME }}

36
.github/workflows/maven.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Maven CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
package:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11]
name: Java ${{ matrix.java }} building ...
steps:
- uses: actions/checkout@v3
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
server-id: sonatype-nexus-snapshots
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build with Maven
run: mvn -B package --file pom.xml -DdisableXmlReport=true -Djacoco.skip=true -Dpmd.skip=true
env:
MAVEN_USERNAME: ${{ secrets.OSSRHUSERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRHPASSWORD }}

31
.github/workflows/maven_deploy.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Maven deploy snapshot
on:
push:
branches: [ "master" ]
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11]
name: Java ${{ matrix.java }} building ...
steps:
- uses: actions/checkout@v3
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
server-id: sonatype-nexus-snapshots
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build with Maven
run: mvn -B deploy --file pom.xml -DdisableXmlReport=true -Djacoco.skip=true -Dpmd.skip=true
env:
MAVEN_USERNAME: ${{ secrets.OSSRHUSERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRHPASSWORD }}

34
.github/workflows/sphinx.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Sphinx Pages
on:
push:
branches: [ "master" ]
permissions: write-all
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
- name: Install XSLT Processor
run: sudo apt-get install xsltproc sphinx-common
- name: Install dependencies
run: pip install furo myst_parser sphinx-prompt sphinx_substitution_extensions sphinx_issues sphinx_inline_tabs pygments
- name: Checkout project sources
uses: actions/checkout@v2
with:
ref: master
fetch-depth: 0
- name: Setup Gradle
uses: gradle/gradle-build-action@v2.4.2
- name: Run build with Gradle Wrapper
run: FLOATING_TOC=false gradle --no-build-cache clean xmldoc sphinx
- name: Deploy
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: 'build/sphinx'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1