Re: [SR-Users] [PATCH] modules_k/db_sqlite: new sql backend

2011-04-05 Thread Timo Teräs
Hi, On 04/04/2011 03:25 PM, Daniel-Constantin Mierla wrote: thanks, that is very useful! I was playing with the idea of developing it for using in small deployments and embedded devices, but couldn't find any time for it ... Yes. Same idea here. It's still missing the sql table creation

Re: [SR-Users] [PATCH] modules_k/db_sqlite: new sql backend

2011-04-04 Thread Daniel-Constantin Mierla
Hi Timo, thanks, that is very useful! I was playing with the idea of developing it for using in small deployments and embedded devices, but couldn't find any time for it ... To get the code in the repository, there are some things that need to be sorted out: - code reviewing - from my point

Re: [SR-Users] [PATCH] modules_k/db_sqlite: new sql backend

2011-04-04 Thread Alex Hermann
On Monday 04 April 2011, Timo Teräs wrote: Implements the kamailio database API for SQLite. +static str* str_dup(const char *_s) +{ + str *s; + int len = strlen(_s); + + s = (str*) pkg_malloc(sizeof(str)+len+1); + s-len = len; + s-s = ((char*)s) + sizeof(str); +