Installation
Get SIMPLE_SQL set up in your Eiffel project.
Prerequisites
- EiffelStudio 23.09 or later
- eiffel_sqlite_2025 library (SQLite 3.51.1 with FTS5)
Step 1: Get the Library
Clone or download SIMPLE_SQL to your development environment:
git clone https://github.com/yourorg/simple_sql.git D:/prod/simple_sql
Step 2: Set Environment Variable
Set the SIMPLE_SQL environment variable to point to the library location:
Windows
setx SIMPLE_SQL "D:\prod\simple_sql"
Linux/macOS
export SIMPLE_SQL="/path/to/simple_sql"
Step 3: Add to Your ECF File
Add SIMPLE_SQL as a library in your project's ECF file:
<system name="my_app" xmlns="...">
...
<library name="simple_sql" location="$SIMPLE_SQL/simple_sql.ecf"/>
...
</system>
Alternative: Absolute Path
If you prefer not to use environment variables, you can use an absolute path:
<library name="simple_sql" location="D:/prod/simple_sql/simple_sql.ecf"/>
Step 4: Verify Installation
Create a simple test to verify everything works:
class TEST_SIMPLE_SQL
create
make
feature
make
local
db: SIMPLE_SQL_DATABASE
do
create db.make_memory
db.execute ("CREATE TABLE test (id INTEGER PRIMARY KEY, value TEXT)")
db.insert_into ("test").value ("value", "Hello SIMPLE_SQL!").execute
print ("SIMPLE_SQL installed successfully!%N")
db.close
end
end
SQLite Dependencies
SIMPLE_SQL depends on eiffel_sqlite_2025, which bundles SQLite 3.51.1 with these extensions enabled:
- FTS5 - Full-text search
- JSON1 - JSON functions
- RTREE - R-tree spatial indexing
Project Structure
simple_sql/
├── simple_sql.ecf -- Library configuration
├── src/ -- Source files
│ ├── simple_sql_database.e
│ ├── simple_sql_result.e
│ ├── simple_sql_row.e
│ └── ...
├── testing/ -- Test suite
├── docs/ -- Documentation (you're reading it!)
└── README.md
Troubleshooting
Library Not Found
If EiffelStudio can't find the library:
- Verify the
SIMPLE_SQLenvironment variable is set - Restart EiffelStudio after setting environment variables
- Check that the path contains
simple_sql.ecf
SQLite Linker Errors
If you see linker errors related to SQLite:
- Ensure eiffel_sqlite_2025 is properly installed
- On Windows: verify Visual Studio C++ compiler is accessible
- Try "Compile from scratch" to rebuild all C components
Next Steps
- Quick Start Guide - Your first queries
- Basic CRUD Tutorial - Learn the fundamentals
- API Reference - Explore the full API