[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/luasql/luasql.desc [COPY] Copyright (C) 2006 - 2026 The T2 SDE Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] A simple interface from Lua to a DBMS [T] LuaSQL is a simple interface from Lua to a DBMS. It enables a Lua [T] program to: connect to ODBC, ADO, Oracle, MySQL, SQLite and PostgreSQL [T] databases, execute arbitrary SQL statements, and retrieve results in a [T] row-by-row cursor fashion. [U] https://lunarmodules.github.io/luasql/ [A] Pedro Miller [A] Roberto Ierusalimschy [A] Andre Carregal [M] René Rebe [C] extra/database [F] CROSS FPIC [L] OpenSource [V] 2.8.1 [CV-URL] http://luaforge.net/frs/?group_id=12 [D] 144e7808e58bef8f5ddbf8d2dba645bdb79337300c31f9cf8339e945 luasql-2.8.1.tar.gz https://github.com/lunarmodules/luasql/archive/2.8.1/ . $base/package/*/*/lua-conf.in runmake=0 var_append makeinstopt ' ' LUA_LIBDIR=$root$pkglibdir dblist= pkginstalled mysql && var_append dblist ' ' mysql pkginstalled postgresql && var_append dblist ' ' postgres pkginstalled unixodbc && var_append dblist ' ' odbc pkginstalled sqlite && var_append dblist ' ' sqlite3 luasql_build_db() { case "$1" in mysql) di="-I$root/$(pkgprefix includedir mysql)/mysql" dl="-L$root/$(pkgprefix libdir mysql)/mysql -lmysqlclient -lz" ;; postgres) di="-I$root/$(pkgprefix includedir postgresql)" dl="-L$root/$(pkgprefix libdir postgresql) -lpq" ;; odbc) di="-I$root/$(pkgprefix includedir unixodbc)" dl="-L$root/$(pkgprefix libdir unixodbc) -lodbc" ;; sqlite3) di="-I$root/$(pkgprefix includedir sqlite)" dl="-L$root/$(pkgprefix libdir sqlite) -lsqlite3" ;; esac eval $MAKE $makeopt DRIVER_LIBS="'$dl'" DRIVER_INCS="'$di'" $1 } luasql_build() { for db in $dblist; do luasql_build_db $db done eval $MAKE $makeinstopt } hook_add premake 3 luasql_build