Read-only mirror of https://github.com/sfa-siard/SqlParser — Schweizerisches Bundesarchiv. Issues & pull requests at the source.
  • Java 93.6%
  • ANTLR 6.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-03-24 15:48:00 +01:00
.github/workflows chore: migrate to Java 17 2025-08-26 12:49:21 +02:00
doc chore: update documentation 2025-09-22 13:45:24 +02:00
etc first public version 2018-04-05 10:20:05 +02:00
gradle/wrapper refactor: improve release process (#4) 2024-07-09 15:44:37 +02:00
src refactor: improve release process (#4) 2024-07-09 15:44:37 +02:00
.gitattributes refactor: improve release process (#4) 2024-07-09 15:44:37 +02:00
.gitignore refactor: improve release process (#4) 2024-07-09 15:44:37 +02:00
build.gradle.kts chore: upgrade dependencies 2025-09-29 23:00:50 +02:00
gradlew refactor: improve release process (#4) 2024-07-09 15:44:37 +02:00
gradlew.bat refactor: improve release process (#4) 2024-07-09 15:44:37 +02:00
LICENSE.txt first public version 2018-04-05 10:20:05 +02:00
README.md Update README.md 2026-03-24 15:48:00 +01:00
settings.gradle.kts chore: migrate to Java 17 2025-08-26 12:49:21 +02:00

⚠️ ARCHIVED REPOSITORY
This repository is archived and no longer maintained. All development has moved to the new monorepo:
https://github.com/sfa-siard/siard-suite

Please create any issues or pull requests in the new monorepo, which now contains all submodules including this one.

SqlParser - SIARD 2.2 SQL:2008 Parser

This package contains a parser for SQL:2008 statements. Its main intention is parsing and formatting, but it can also handle primitive evaluation of single-table queries.

Getting started (for developers)

For building the binaries, Java JDK 17 must be installed. Generating sources from SQL Definition (*.g4) files is necessary to resolve compilation errors in your IDE, before running any tests.

Generate sources and build the project

./gradlew clean build

Run all tests

./gradlew check

Versioning, tags, and releases

Versions and tags are managed with the Axion Release Plugin for Gradle.

Short overview:

./gradlew currentVersion  # Shows the current version

./gradlew release         # Creates a new release, adds a tag, and pushes it to remote

Documentation

Declaration

Contributions to the codebase have been made with the support of Windsurf. Windsurf is AI-powered code completion tool, that is trained exclusively on natural language and source code data with permissive licenses.