o
odinpkg.dev
packages / binding / sqlite3_odin

sqlite3_odin

9833f2ebinding

Ultra minimal bindings to the sqlite3 library for the Odin language. This repo serves two purposes: a simple binding to get your started & a reference for how the FFI process works in odin.

Unlicense · updated 9 months ago

Ultra basic sqlite3 bindings

Example

To run the example you can just do from the project root:

odin run example

The expected output is:

ID = 1
Name = Alice
Age = 30

ID = 2
Name = Bob
Age = 25

ID = 3
Name = Charlie
Age = 35


A note on using the bindings with a .a/.dll file

On linux and macOS the bindings assume that the sqlite lib is visible system wide, on Windows the bindings expect to find the sqlite3.dll next to the executable that is using said bindings.