godot-libsql

June 18, 2023 ยท View on GitHub

A custom Godot Engine module to use the SQLite relational database.

Table of Contents

How to Compile

Example Usage

Creating WASM Programs

Bindgen LibSQL

Installation for Windows

cmd
scoop install llvm-mingw@20220906
scoop install rustup
rustup update
rustup target remove x86_64-pc-windows-msvc
rustup target add x86_64-pc-windows-gnu
rustup default stable-x86_64-pc-windows-gnu
cd ~/scoop/apps/llvm-mingw/20220906/x86_64-w64-mingw32/lib
ln -s libc++.a libgcc.a # https://www.reddit.com/r/rust/comments/jst1kk/building_rust_without_linking_against_libgcc/
ln -s libunwind.a libgcc_eh.a

Refreshing sqlite3.c

msys2
pacman -S make clang diff mingw-w64-x86_64-rust
sh configure --enable-all --enable-wasm-runtime
make sqlite3.c

Attribution

This engine module for Godot is based on gdsqlite-native by Khairul Hidayat in 2017.

Thanks to the libsql team for their work in 2023.