[Open Source] A Tool That Converts Database SQL Statements into RESTful-Style HTTP APIs
![[Open Source] A Tool That Converts Database SQL Statements into RESTful-Style HTTP APIs](https://yy123.ink/api/img/1782597813457-y6m5p3.jpg)
1. Project Overview
SQLREST

A tool that converts database SQL statements into RESTful-style HTTP APIs.
SQLREST is a fully open-source SQL2API low-code tool.
2. Open Source License
The author has not yet specified an open-source license.
3. Screenshots
1. Screenshots of Some System Interfaces











4. Feature Overview
In a nutshell, SQLREST provides tools for quickly building RESTful APIs using both SQL statements and Groovy scripts. Its features include:
-
Build RESTful APIs Using SQL
Provides a dynamic SQL syntax similar to MyBatis for building APIs.
-
Build RESTful APIs Using Scripts
Uses Groovy scripting syntax to build APIs for complex scenarios.
-
Supports Token-Based API Authentication
The executor supports token generation and token authentication.
-
Supports x-www-form-urlencoded and JSON API Request Parameters
HTTP request parameters support formats such as application/x-www-form-urlencoded and application/json.
-
Supports Online API Documentation Generation
Provides online API documentation generation based on swagger-ui.
-
Supports API Traffic Control
The executor uses Sentinel to provide API traffic control capabilities.
2. Supported Databases
-
Oracle Database by Oracle -
Microsoft SQL Server by Microsoft -
MySQL -
MariaDB -
PostgreSQL -
Greenplum (requires using the PostgreSQL type) -
DB2 by IBM -
Sybase Database -
Domestic Dameng Database (DM) -
Domestic Kingbase Database (Kingbase8) -
Domestic HighGo Database -
Domestic Shentong Database (Oscar) -
Domestic Nanda General Database (GBase8a) -
Apache Hive -
SQLite3 -
OpenGauss -
ClickHouse -
Apache Doris -
StarRocks -
OceanBase
3. Module Structure and Functions
4. Planned Features
-
(1) API Response Fields and Documentation
Define API response fields and their documentation through manual configuration or API debugging.
-
(2) Support API Cache Configuration
Implement API cache configuration using distributed caching and other technologies.
-
(3) SQL Result Set Output Format Conversion
Convert SQL query result sets into the corresponding API response formats.
-
(4) Overall Frontend Interface Enhancement
Improve the visual presentation and interaction of the interface.
5. Tech Stack
Build and Package
This tool is developed entirely in Java, and all dependencies come from open-source projects.
1. Build and Package
-
Environment Requirements: - JDK
:>=1.8 (JDK 1.8 is recommended) - maven
:>=3.6
Maven repositories are hosted overseas by default, which can result in slow access from China. You can switch to Alibaba Cloud's Maven repository.
Reference Tutorial: Alibaba Cloud Maven Repository Configuration Guide
-
Build Commands:
(1) On Windows:
(2) On Linux:
(3) With Docker:
2. Installation and Deployment
See the README.md documentation for details