Add sqlite stub library

This commit is contained in:
2025-06-30 17:58:12 +10:00
parent 3de17cb77e
commit fc4d27abf1
6 changed files with 119 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
//! luby SQLite library.
#[path = "mod.rs"]
pub mod sqlite;

View File

@@ -0,0 +1,27 @@
//! SQLite library.
//!
//! The `lb:sqlite` library provides an interface to SQLite databases.
//!
//! ## Exports
//!
//! See [`lb_sqlitelib`] for items exported by this library.
use luaffi::{cdef, metatype};
/// Items exported by the `lb:sqlite` library.
///
/// This library can be acquired by calling
/// [`require("lb:sqlite")`](https://www.lua.org/manual/5.1/manual.html#pdf-require).
///
/// ```lua
/// local sqlite = require("lb:sqlite");
/// ```
#[cdef(module = "lb:time")]
pub struct lb_sqlitelib;
#[metatype]
impl lb_sqlitelib {
#[new]
extern "Lua-C" fn new() -> Self {
Self
}
}