V bindings for LadybugDB via the C API (lbug.h)
- Run the build script
./build.vsh- Build or run V code with this module.
Implemented high-level wrappers include:
open_database,Database.closeconnect,Connection.closeConnection.query,Connection.prepare,Connection.execute- Prepared statement binders:
bind_bool,bind_int64,bind_int32,bind_float,bind_double,bind_string,bind_value - Query result helpers:
is_success,error_message,num_rows,num_columns,column_names,has_next,next_tuple,reset_iterator,summary - Tuple/value helpers for common scalar types (
bool,int32,int64,float,double,string) - Version helpers:
version,storage_version
The raw C header is vendored at ladybug/lbug.h for signature compatibility.
v run examples/basic_usage.vAn interactive Ladybug shell is available at shell-v/main.v with:
- colored prompt/output
- history navigation + line editing (via V
readline) - tab autocomplete (shell commands + Cypher keywords)
- direct positional query for non-interactive runs
Run interactively:
v run shell-v/main.v -- test.dbRun a query directly (no stdin piping):
v run shell-v/main.v -- test.db 'RETURN "hello" AS msg;'Shell commands use . prefixes (for example, .schema, .help, .quit).