-
Notifications
You must be signed in to change notification settings - Fork 0
Frequently Asked Questions (FAQ)
This page answers the most common questions about the Generic SQL API Framework.
The Generic SQL API Framework is an open-source PHP framework for building dynamic SQL APIs using JSON requests and external SQL files. It separates SQL logic from application code, making APIs easier to maintain and reuse.
The framework is suitable for:
- Backend Developers
- Database Developers
- System Integrators
- Internal Business Applications
- Reporting Systems
- Dashboard Applications
Yes.
The project is open source and licensed under the MIT License.
Current support:
- Microsoft SQL Server
Planned support:
- MySQL
- PostgreSQL
- MariaDB
- SQLite
Yes.
The framework works with SQL Server Express, Standard, Enterprise, and Developer editions.
Yes.
Windows Authentication is supported when properly configured.
Yes.
Both SQL Server Authentication and Windows Authentication are supported.
SQL queries are stored as individual .sql files inside the queries/ directory.
Example:
queries/
customers.sql
Yes.
Example:
queries/
customers/
orders/
reports/
inventory/
Yes.
Parameterized queries are the recommended way to safely pass user input to SQL statements.
Yes.
Stored procedures can be executed if your framework version includes stored procedure support.
The framework communicates using JSON.
Request:
{
"query": "customers"
}Response:
{
"success": true,
"data": []
}Yes.
Pagination is supported using the pagination object in the request.
Yes.
Sorting can be configured through the sorting section of the JSON request.
Yes.
Filters can be supplied using the filters object.
The framework encourages secure development through parameterized queries. Avoid building SQL statements by concatenating user input.
No.
Use a dedicated SQL Server account with only the permissions required by your application.
No.
Deploy the framework on a web server and keep SQL Server on a protected internal network.
Yes.
XAMPP is recommended for local development.
Yes.
The framework is compatible with IIS.
Experimental support is available, depending on your PHP environment and SQL Server connectivity.
Yes.
Use pagination, indexing, and optimized SQL queries for better performance.
No.
Select only the columns your application requires.
You can contribute by:
- Reporting bugs
- Suggesting new features
- Improving documentation
- Fixing issues
- Submitting pull requests
See the Contributing guide for details.
If your question is not answered here:
- Read the Wiki documentation.
- Search existing GitHub Issues.
- Create a new issue with detailed information about your environment and the problem you're experiencing.