1
0
Fork 0
forked from fun/fun

Renamed ./src/external to ./src/extensions. No code logic changes. (0.40.5)

This commit is contained in:
Johannes Findeisen 2026-04-19 00:02:36 +02:00
commit bb704a3778
25 changed files with 81 additions and 414 deletions

View file

@ -0,0 +1,33 @@
---
layout: page
published: true
noToc: false
noComments: false
noDate: false
title: Fun - SQLite extension (optional)
subtitle: Documentation for SQLite extension (optional)
description: Documentation for SQLite extension (optional)
permalink: /documentation/extensions/sqlite/
lang: en
tags:
- extension
- optional
- sqlite
---
- CMake option: FUN_WITH_SQLITE=ON
- Purpose: Access SQLite databases via the native C API.
- Homepage: [https://www.sqlite.org/](https://www.sqlite.org/){:class="ext"}
## Opcodes:
- OP_SQLITE_OPEN: pops path; pushes handle (>0) or 0
- OP_SQLITE_CLOSE: pops handle; pushes Nil
- OP_SQLITE_EXEC: pops sql, handle; pushes rc:int (0=OK)
- OP_SQLITE_QUERY: pops sql, handle; pushes array<map>
## Notes:
- Requires SQLite development headers/libs.
- See also: `libSQL` for a compatible alternative backend.