Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.
/ lgdbm Public archive

A database library for Lua based on GNU dbm. GNU dbm is a set of database routines that use extensible hashing

Notifications You must be signed in to change notification settings

LuaDist/lgdbm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a gdbm interface for Lua 5.1. gdbm is the GNU database manager,
a replacement of the UNIX dbm library available at
	http://www.gnu.org/software/gdbm/
If you're running Linux, you probably already have gdbm installed.

To try the library, edit Makefile to reflect your installation of Lua and
then run make. This will build the library and run a simple test.
For detailed installation instructions, see
	http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/install.html

There is no manual but the library is simple and intuitive; see the summary
below. Read also test.lua, which shows the library in action.

test.lua also provides gdbm.proxy, which creates table proxies for gdbm
databases, and two "for" generators: "keys" and "entries", for convenient
traversal of databases.

This code is hereby placed in the public domain.
Please send comments, suggestions, and bug reports to lhf@tecgraf.puc-rio.br .

-------------------------------------------------------------------------------

gdbm library:
 __tostring(file) 		 nextkey(file,key) 
 close(file) 			 open(file,how) 
 delete(file,key) 		 reorganize(file) 
 exists(file,key) 		 replace(file,key,data) 
 fetch(file,key) 		 sync(file) 
 firstkey(file) 		 version 
 insert(file,key,data) 

-------------------------------------------------------------------------------

About

A database library for Lua based on GNU dbm. GNU dbm is a set of database routines that use extensible hashing

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •