dbd/postgresql/main.c

Tue, 02 Dec 2008 21:11:27 +0000

author
nrich@ii.net
date
Tue, 02 Dec 2008 21:11:27 +0000
changeset 12
014ba3ab3903
parent 2
c4f02fc67e5a
child 33
6c64c45e7d8f
permissions
-rw-r--r--

Renamed statement:fetch() to statement:rows(), and statement:row() to statement:fetch(). The API reads better this way.

#include "dbd_postgresql.h"

int dbd_postgresql_connection(lua_State *L);
int dbd_postgresql_statement(lua_State *L);

/*
 * library entry point
 */
int luaopen_dbdpostgresql(lua_State *L) {
    dbd_postgresql_connection(L);
    dbd_postgresql_statement(L); 

    return 1;
}

mercurial