Built-in Extensions
vsql_complex
Status: Built-in with VillageSQL Repository: villagesql-server/villagesql/examples/vsql-complex Complex number data type with full arithmetic support for electrical engineering, signal processing, and scientific computing. Features:COMPLEXcolumn type for storing complex numbers (a + bi)- Constructor:
COMPLEX(real, imaginary) - Arithmetic: add, subtract, multiply, divide
- Utilities:
complex_real(),complex_imag(),complex_abs(),complex_conjugate() - Binary storage: 16 bytes (2 doubles)
Additional Built-in Extensions
The following built-in extensions are maintained in separate repositories. Each extension provides its own installation instructions and documentation.vsql_uuid
UUID data type and functionsGenerate, validate, convert, and compare UUIDs. Includes v1, v4, and v5 UUID generation.
vsql_crypto
Cryptographic functionsHashing (SHA-256, SHA-512), encryption (AES), and secure random data generation using OpenSSL.
vsql_network_address
Network address typesIPv4, IPv6, and MAC address data types with validation, comparison, and network operations.
vsql_ai
AI-powered SQL functionsIntegrate AI capabilities directly into your database queries.
Installing Built-in Extensions
Built-in extensions are included with VillageSQL and ready to install:Creating Your Own Extension
Build custom extensions using the VillageSQL extension template:vsql_extension_template
Fork this template to start building your own VillageSQL extension

