added: TextStream a class similar to std::ostringstream
but with a Clear() method the dynamic allocated buffer can be easily reused added: DbTextStream a special version of a stream used to create a database string query everything is escaped by default added: DbBase a base class with some basic methods for communicating with the database added: DbConn a class for managing connection to the database changed: some refactoring in Db class git-svn-id: svn://ttmath.org/publicrep/winix/trunk@655 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
50
db/dbitemcolumns.h
Executable file
50
db/dbitemcolumns.h
Executable file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef headerfile_winix_db_dbitemcolumns
|
||||
#define headerfile_winix_db_dbitemcolumns
|
||||
|
||||
|
||||
#include <libpq-fe.h>
|
||||
#include "core/item.h"
|
||||
|
||||
|
||||
|
||||
|
||||
struct DbItemColumns
|
||||
{
|
||||
int id;
|
||||
int user_id;
|
||||
int group_id;
|
||||
int privileges;
|
||||
int date_creation;
|
||||
int date_modification;
|
||||
int url;
|
||||
int type;
|
||||
int parent_id;
|
||||
int content_id;
|
||||
int default_item;
|
||||
int subject;
|
||||
int content;
|
||||
int content_type;
|
||||
int guest_name;
|
||||
int auth;
|
||||
int auth_path;
|
||||
int modification_user_id;
|
||||
int html_template;
|
||||
|
||||
void SetColumns(PGresult * r);
|
||||
void SetItem(PGresult * r, long row, Item & item);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user