debian/0000755000000000000000000000000012216311331007157 5ustar debian/lua5.1.sqlite3.dh-lua.conf0000644000000000000000000000134412216311331013571 0ustar ### $Id: Makefile.Debian.conf.sample 1398 2009-11-13 21:10:12Z gareuselesinge $ ### mandatory fields PKG_NAME=dbi.sqlite3 ### things relative to the C library part CLIB_CFLAGS=$(shell pkg-config sqlite3 --cflags) -I . CLIB_LDFLAGS=$(shell pkg-config sqlite3 --libs) CLIB_LDFLAGS_STATIC=$(shell pkg-config sqlite3 --libs --static) CLIB_OBJS=dbd/common.lo $(patsubst %.c,%.lo,$(wildcard dbd/sqlite3/*.c)) LUA_MODNAME_CPART=dbdsqlite3 ### things relative to the lua library part LUA_HEADER= LUA_SOURCES= LUA_MODNAME=dbdsqlite3 LUA_TEST=test.lua SQLite3 foo.db ### this part is relative to pkg-config PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE= PKG_URL= PKG_REQUIRES= PKG_CONFLICTS= debian/lua5.1.common.dh-lua.conf0000644000000000000000000000077012216311331013477 0ustar ### $Id: Makefile.Debian.conf.sample 1398 2009-11-13 21:10:12Z gareuselesinge $ ### mandatory fields PKG_NAME=dbi.common ### things relative to the C library part CLIB_CFLAGS= CLIB_LDFLAGS= CLIB_LDFLAGS_STATIC= CLIB_OBJS= ### things relative to the lua library part LUA_HEADER= LUA_SOURCES=DBI.lua LUA_MODNAME= LUA_TEST= ### this part is relative to pkg-config PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE= PKG_URL= PKG_REQUIRES= PKG_CONFLICTS= debian/watch0000644000000000000000000000027712216311331010216 0ustar # test this watch file using: # uscan --watchfile debian/watch --upstream-version 0.0.1 --package lua-dbi # version=3 http://code.google.com/p/luadbi/downloads/list .*luadbi.([\d\.]+).tar.gz debian/rules0000755000000000000000000000054212216311331010240 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=lua --with lua override_dh_auto_install: dh_auto_install find debian/tmp -name \*.lua -exec chmod -x {} \; override_dh_strip: dh_strip -Xdbi-sqlite3 -Xdbi-postgresql --dbg-package=lua-dbi-mysql-dbg dh_strip -Xdbi-sqlite3 --dbg-package=lua-dbi-postgresql-dbg dh_strip --dbg-package=lua-dbi-sqlite3-dbg debian/compat0000644000000000000000000000000212216311331010355 0ustar 9 debian/source/0000755000000000000000000000000012216311331010457 5ustar debian/source/format0000644000000000000000000000001412216311331011665 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000264612216311331011041 0ustar lua-dbi (0.5.hg5ba1dd988961-2) unstable; urgency=low * Build-depend on postgresql-server-dev-all -- Enrico Tassi Wed, 18 Sep 2013 10:39:16 +0200 lua-dbi (0.5.hg5ba1dd988961-1) unstable; urgency=low * New upstream snapshot fixing mysql bug * Packaging moved to git -- Enrico Tassi Sat, 10 Aug 2013 20:35:27 +0200 lua-dbi (0.5+svn78-5~dbg4matthew1) unstable; urgency=low * debian/compat set to 9 * new package lua-dbi-mysql-dbg * new package lua-dbi-sqlite3-dbg * new package lua-dbi-postgresql-dbg -- Enrico Tassi Sat, 30 Jun 2012 11:22:38 +0200 lua-dbi (0.5+svn78-4) unstable; urgency=low * Add patch preventing an off by one in mysql driver: http://code.matthewwild.co.uk/luadbi/rev/5ba1dd988961 -- Enrico Tassi Fri, 29 Jun 2012 19:00:58 +0200 lua-dbi (0.5+svn78-3) unstable; urgency=low * Add path: mysql-memory-consumption from http://code.matthewwild.co.uk/luadbi/rev/7c968f66bccd -- Enrico Tassi Mon, 30 Apr 2012 16:22:07 +0200 lua-dbi (0.5+svn78-2) unstable; urgency=low * Ship -dev packages -- Enrico Tassi Mon, 09 Apr 2012 15:04:16 +0200 lua-dbi (0.5+svn78-1) unstable; urgency=low * Initial release. (Closes: #668173) -- Enrico Tassi Mon, 09 Apr 2012 14:50:23 +0200 debian/copyright0000644000000000000000000000241112216311331011110 0ustar Format: http://dep.debian.net/deps/dep5/ Upstream-Name: luadbi Upstream-Contact: Neil Richardson (nrich@ii.net) Source: http://code.google.com/p/luadbi/ Files: * Copyright: 2008-2010 Neil Richardson (nrich@ii.net) License: MIT/X Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/lua5.1.postgresql.dh-lua.conf0000644000000000000000000000127212216311331014410 0ustar ### $Id: Makefile.Debian.conf.sample 1398 2009-11-13 21:10:12Z gareuselesinge $ ### mandatory fields PKG_NAME=dbi.postgresql ### things relative to the C library part CLIB_CFLAGS=-I$(shell pg_config --includedir) -I$(shell pg_config --includedir-server) -I . CLIB_LDFLAGS=-lpq CLIB_LDFLAGS_STATIC=-lpq CLIB_OBJS=dbd/common.lo $(patsubst %.c,%.lo,$(wildcard dbd/postgresql/*.c)) LUA_MODNAME_CPART=dbdpostgresql ### things relative to the lua library part LUA_HEADER= LUA_SOURCES= LUA_MODNAME=dbdpostgresql LUA_TEST= ### this part is relative to pkg-config PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE= PKG_URL= PKG_REQUIRES= PKG_CONFLICTS= debian/control0000644000000000000000000001321712216311331010566 0ustar Source: lua-dbi Section: interpreters Priority: optional Maintainer: Enrico Tassi Build-Depends: dh-lua, debhelper (>= 9), libsqlite3-dev, postgresql-server-dev-all, libmysqlclient-dev Standards-Version: 3.9.3 Homepage: http://code.google.com/p/luadbi/ Vcs-Git: git://git.debian.org/git/pkg-lua/lua-dbi.git Vcs-Browser: http://git.debian.org/?p=pkg-lua/lua-dbi.git Package: lua-dbi-common Architecture: all Multi-Arch: foreign Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends} Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: DBI library for the Lua language, common files Lua DBI is a database interface library for Lua. It is designed to provide a RDBMS agnostic API for handling database operations. LuaDBI also provides support for prepared statement handles, placeholders and bind parameters for all database operations. . This package contains the files common to all backends. . Lua DBI is a better alternative to lua-sql since it supports prepared statements. Package: lua-dbi-sqlite3 Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends}, lua-dbi-common Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: DBI library for the Lua language, sqlite3 backend Lua DBI is a database interface library for Lua. It is designed to provide a RDBMS agnostic API for handling database operations. LuaDBI also provides support for prepared statement handles, placeholders and bind parameters for all database operations. . This package contains the sqlite3 backend. . Lua DBI is a better alternative to lua-sql since it supports prepared statements. Package: lua-dbi-sqlite3-dev Architecture: any Multi-Arch: same Section: libdevel Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends}, lua-dbi-sqlite3 (= ${binary:Version}) Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: DBI library for the Lua language, sqlite3 development files This package contains the development files of the lua DBI library (Sqlite3 backend), useful to create a statically linked binary (like a C application or a standalone Lua interpreter). Package: lua-dbi-mysql Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends}, lua-dbi-common Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: DBI library for the Lua language, MySQL backend Lua DBI is a database interface library for Lua. It is designed to provide a RDBMS agnostic API for handling database operations. LuaDBI also provides support for prepared statement handles, placeholders and bind parameters for all database operations. . This package contains the MySQL backend. . Lua DBI is a better alternative to lua-sql since it supports prepared statements. Package: lua-dbi-mysql-dev Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Section: libdevel Depends: ${shlibs:Depends}, ${misc:Depends}, lua-dbi-mysql (= ${binary:Version}) Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: DBI library for the Lua language, MySQL development files This package contains the development files of the lua DBI library (MySQL backend), useful to create a statically linked binary (like a C application or a standalone Lua interpreter). Package: lua-dbi-postgresql Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends}, lua-dbi-common Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: DBI library for the Lua language, PostgreSQL backend Lua DBI is a database interface library for Lua. It is designed to provide a RDBMS agnostic API for handling database operations. LuaDBI also provides support for prepared statement handles, placeholders and bind parameters for all database operations. . This package contains the PostgreSQL backend. . Lua DBI is a better alternative to lua-sql since it supports prepared statements. Package: lua-dbi-postgresql-dev Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Section: libdevel Depends: ${shlibs:Depends}, ${misc:Depends}, lua-dbi-postgresql (= ${binary:Version}) Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: DBI library for the Lua language, PostgreSQL development files This package contains the development files of the lua DBI library (PostgreSQL backend), useful to create a statically linked binary (like a C application or a standalone Lua interpreter). Package: lua-dbi-mysql-dbg Architecture: any Priority: extra Section: debug Multi-Arch: same Pre-Depends: multiarch-support Depends: lua-dbi-mysql (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} XB-Lua-Versions: ${lua:Versions} Description: DBI library for the Lua language, MySQL backend debug symbols This package contains the debugging symbols for lua-dbi-mysql. Package: lua-dbi-postgresql-dbg Architecture: any Priority: extra Section: debug Multi-Arch: same Pre-Depends: multiarch-support Depends: lua-dbi-postgresql (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} XB-Lua-Versions: ${lua:Versions} Description: DBI library for the Lua language, PostgreSQL backend debug symbols This package contains the debugging symbols for lua-dbi-postgresql. Package: lua-dbi-sqlite3-dbg Architecture: any Priority: extra Section: debug Multi-Arch: same Pre-Depends: multiarch-support Depends: lua-dbi-sqlite3 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} XB-Lua-Versions: ${lua:Versions} Description: DBI library for the Lua language, sqlite3 backend debug symbols This package contains the debugging symbols for lua-dbi-sqlite3. debian/patches/0000755000000000000000000000000012216311331010606 5ustar debian/patches/series0000644000000000000000000000004012216311331012015 0ustar remove-shebang.patch test.patch debian/patches/test.patch0000644000000000000000000000107612216311331012612 0ustar Index: lua-dbi-0.5/test.lua =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ lua-dbi-0.5/test.lua 2012-04-09 12:35:21.000000000 +0200 @@ -0,0 +1,12 @@ +local DBI = require('DBI') + +local h = assert(DBI.Connect(...)) +DBI.Do(h,'DROP TABLE foo') +assert(DBI.Do(h,'CREATE TABLE foo (n int)')) +assert(DBI.Do(h,'INSERT INTO foo VALUES (3)')) +local s = h:prepare('SELECT * FROM foo where n > ?') +assert(s:execute(3)) +assert(s:fetch() == nil) +assert(s:execute(2)) +assert(#(s:fetch()) == 1) +h:close() debian/patches/remove-shebang.patch0000644000000000000000000000047412216311331014536 0ustar Index: lua-dbi-0.5/DBI.lua =================================================================== --- lua-dbi-0.5.orig/DBI.lua 2010-05-01 08:19:00.000000000 +0200 +++ lua-dbi-0.5/DBI.lua 2012-04-09 12:24:03.000000000 +0200 @@ -1,5 +1,3 @@ -#!/usr/bin/lua - module('DBI', package.seeall) -- Driver to module mapping debian/lua5.1.mysql.dh-lua.conf0000644000000000000000000000125212216311331013350 0ustar ### $Id: Makefile.Debian.conf.sample 1398 2009-11-13 21:10:12Z gareuselesinge $ ### mandatory fields PKG_NAME=dbi.mysql ### things relative to the C library part CLIB_CFLAGS=$(shell mysql_config --cflags) -I . CLIB_LDFLAGS=$(shell mysql_config --libs) CLIB_LDFLAGS_STATIC=$(shell mysql_config --libs) CLIB_OBJS=dbd/common.lo $(patsubst %.c,%.lo,$(wildcard dbd/mysql/*.c)) LUA_MODNAME_CPART=dbdmysql ### things relative to the lua library part LUA_HEADER= LUA_SOURCES= LUA_MODNAME=dbdmysql LUA_TEST= ### this part is relative to pkg-config PKG_VERSION=$(shell dpkg-parsechangelog|grep ^Ver|cut -d ' ' -f 2|cut -d '-' -f 1) PKG_LIBS_PRIVATE= PKG_URL= PKG_REQUIRES= PKG_CONFLICTS=