/* Users functions */
+/* {{{ proto long velocis_connect(string server, string user, sting pass)
+ */
PHP_FUNCTION(velocis_connect)
{
pval *serv,*user,*pass;
php_velocis_module.num_links++;
RETURN_LONG(ind);
}
+/* }}} */
+/* {{{ proto bool velocis_close(int id)
+ */
PHP_FUNCTION(velocis_close)
{
pval *id;
php_velocis_module.num_links--;
RETURN_TRUE;
}
+/* }}} */
+/* {{{ proto int velocis(int index, string exec_str)
+ */
PHP_FUNCTION(velocis_exec)
{
pval *ind,*exec_str;
indx = velocis_add_result(list,res,conn);
RETURN_LONG(indx);
}
+/* }}} */
+/* {{{ proto bool velocis_fetch(int index)
+ */
PHP_FUNCTION(velocis_fetch)
{
pval *ind;
res->fetched = 1;
RETURN_TRUE;
}
+/* }}} */
+/* {{{ proto mixed velocis_result(int index, int col)
+ */
PHP_FUNCTION(velocis_result)
{
pval *ind,*col;
}
}
}
+/* }}} */
+/* {{{ proto bool velocis_freeresult(int index)
+ */
PHP_FUNCTION(velocis_freeresult)
{
pval *ind;
velocis_del_result(list,Z_LVAL_P(ind));
RETURN_TRUE;
}
+/* }}} */
+/* {{{ proto bool velocis_on_autocommit(int index)
+ */
PHP_FUNCTION(velocis_autocommit)
{
pval *id;
}
RETURN_TRUE;
}
+/* }}} */
+/* {{{ proto bool velocis_off_autocommit(int index)
+ */
PHP_FUNCTION(velocis_off_autocommit)
{
pval *id;
}
RETURN_TRUE;
}
+/* }}} */
+/* {{{ proto bool velocis_commit(int index)
+ */
PHP_FUNCTION(velocis_commit)
{
pval *id;
}
RETURN_TRUE;
}
+/* }}} */
+/* {{{ proto bool velocis_rollback(int index)
+ */
PHP_FUNCTION(velocis_rollback)
{
pval *id;
}
RETURN_TRUE;
}
+/* }}} */
+/* {{{ proto string velocis_fieldname(int index, int col)
+ */
PHP_FUNCTION(velocis_fieldname)
{
pval *ind,*col;
}
RETURN_STRING(res->values[indx].name,TRUE);
}
+/* }}} */
+/* {{{ proto int velocis_fieldnum(int index)
+ */
PHP_FUNCTION(velocis_fieldnum)
{
pval *ind;
}
RETURN_LONG(res->numcols);
}
+/* }}} */
#endif /* HAVE_VELOCIS */