#line 1 "sample.d" #line 14 "sample.d" /* * $Id: sample.d,v 1.3 2004/01/28 13:53:57 dtynan Exp $ * * This stuff appears at the front of the C include file... * (new to v0.5) */ #include #include #include #include #include "dbow.h" /* * C/C++ prolog file - the following information was generated by * DBOW, the database object generator. Do not edit the contents * of this file but instead the source file from which it was * generated. Changes to this file will be lost. * * Source is "sample.d" * Template is "$Id: c.m4,v 1.12 2006/03/06 13:18:43 dtynan Exp $" */ #include "dbow.h" /* * Structure definition for SQL table "user". */ struct db_user { void *dbres; int user_id; char *fname; char *lname; char *a1; char *a2; char *a3; char *city; char *state_county; char *postcode_zip; int country_id; char *contact_phone; char *handle; char *password; }; /* * Prototypes */ struct db_user *db_useralloc(); void db_userfree(struct db_user *p); struct db_user *db_runuserquery(dbow_conn *c, char *q); struct db_user *db_finduserfirst(dbow_conn *c); struct db_user *db_findusernext(dbow_conn *c, struct db_user *p); int db_insertuser(dbow_conn *c, struct db_user *p); int db_deleteuserbyuser_id(dbow_conn *c, int ); struct db_user *db_finduserbyuser_id(dbow_conn *c, int ); int db_updateuserbyuser_id(dbow_conn *c, struct db_user *p, int );