Custom indexes and aggregate functions for extensions are coming in a future release.
Command Syntax
Extensions are distributed as
.veb (VillageSQL Extension Bundle) files containing compiled libraries and metadata.Extension Naming Conventions
VillageSQL uses different naming conventions in different contexts:- SQL commands: Use underscores:
INSTALL EXTENSION 'vsql_complex' - Repository names: Use hyphens:
github.com/villagesql/vsql-complex - File names: Use underscores:
vsql_complex.veb - manifest.json: Use underscores to match SQL:
"name": "vsql_complex"
Prerequisites
- Running VillageSQL Server instance
- Administrative access (root or equivalent)
- Extension
.vebfile in vef_dir (check withSHOW VARIABLES LIKE 'vef_dir';)
Installing Built-in Extensions
Built-in extensions included with VillageSQL are already in the vef_dir. Simply enable them:Verify Installation
Test Functionality
Installing External Extensions
For extensions downloaded or built separately:1. Find VEF Directory
- Linux:
/usr/local/mysql/lib/veb/ - macOS:
/usr/local/mysql/lib/veb/
2. Copy Extension File
3. Install Extension
4. Verify Installation
Troubleshooting
| Issue | Solution |
|---|---|
Extension not found | Verify .veb file is in vef_dir with correct name |
Permission denied | Check file permissions: chmod 644 extension.veb |

