[SR-Dev] DB decisions
henning.westerholt at 1und1.de
Mon Nov 24 10:52:19 CET 2008
On Friday 21 November 2008, Andrei Pelinescu-Onciul wrote:
> On Nov 21, 2008 at 04:34, Jan Janak <jan at iptel.org> wrote:
> > Unless nobody objects, I would suggest we do the following:
> > 1) Convert both API versions into libraries. Here I would suggest some
> > simpler name, sr_dbk sounds is cryptic, how about using just db1 and
> > db2 possibly prefixed with sr (libsrdb1, libsrdb2)?
> Do we go for libsrdb or somebody has a better ideea?
> Do I keep the kamailio db history or we use directly Jan's version (no
if you can keep the history this would be nice, but we can also use Jans
version directly. For the naming, libsrdb1 and libsrdb2 is ok.
> > 2) Rename conflicting identifiers in both libraries, i.e. db_con1,
> > db_con2, db_res1, db_res2.
> I think we would have to rename the DB_* macros too:
> DB1_STR DB1_INT DB1_BLOB DB1_BIGINT DB1_DOUBLE DB1_STRING DB1_DATETIME
I agree that we need to rename the identifiers, but it is really necessary to
rename the macros also? Do we plan to compile a module with both DB APIs at
the same time?
More information about the sr-dev