Skip to content

LadybugDB/ladybug-vlang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ladybug-vlang

V bindings for LadybugDB via the C API (lbug.h), using ladybug-julia as the primary API reference.

Setup

  1. Download native binaries:
bash scripts/download-liblbug.sh
  1. Build or run V code with this module.

API Coverage

Implemented high-level wrappers include:

  • open_database, Database.close
  • connect, Connection.close
  • Connection.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.

Example

v run examples/basic_usage.v

About

V language bindings for LadybugDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages