lua-users home
lua-l archive

Re: Berkeley DB

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 03.09.19 Luiz Henrique de Figueiredo pressed the following keys:
> >the berkeley db interface is "huge" compared to gdbm :)
> 
> I was looking at db.h in my RH 5.2, which lists dbopen and then the
> following methods:
> 
> 	 int (*close) __P((struct __db *));
> 	 int (*del) __P((const struct __db *, const DBT *, u_int));
> 	 int (*get) __P((const struct __db *, const DBT *, DBT *, u_int));
> 	 int (*put) __P((const struct __db *, DBT *, const DBT *, u_int));
> 	 int (*seq) __P((const struct __db *, DBT *, DBT *, u_int));
> 	 int (*sync) __P((const struct __db *, u_int));
> 	 int (*fd) __P((const struct __db *));
> 
> I think this is BDB 1.x. I've looked at newer RHs and indeed there are several
> other methods in newer versions...
This interface is the old ``compatibility'' interface sometimes called
db_185. Every version of Berkeley DB provides this interface one way or
another. And most programmers use even the newest (in case of my debian
db-4.1) version of the library via this interface.
Robert
-- 
Robert R. Wal Bastard Operator From 149.156.96.35
mail/jabber/wpkontakt/msn: rrw@hell.pl gg: 2785415 icq: 8853661

AltStyle によって変換されたページ (->オリジナル) /