SQL Compiler is a C++ database library.
- Supports several SQL languages as SQLite.
- Provides a simple and intuitive interface for querying databases and retrieving results.
- Supports prepared statements for secure and efficient database queries.
- Perform SQL queries compilation which make it faster.
- Lightweight and easy to integrate into existing projects.
Prerequisites
- C++ compiler with C++20 support
- CMake 3.3 or higher
Clone the MyDatabaseLibrary repository:
git clone https://github.com/Full-Hat/SQL_Compiler.git
Run init script:
Windows:
bash init.bat
UNIX (MacOS & Linux):
bash init.sh
Create a build directory and navigate into it:
mkdir build && cd build
Run CMake to generate the build files:
cmake ../
Build the library:
make
To use SQL Compiler in your project, simply link against the library and include the appropriate headers. Here's an example of how to connect to a MySQL database and execute a simple query:
For more information on using MyDatabaseLibrary, please refer to the documentation.
Contributions to SQL Compiler are always welcome! To contribute, simply fork the repository, make your changes, and submit a pull request.
SQL Compiler is licensed under the MIT License. See LICENSE for details.