/***************************** {{{ LICENSE ********************************\ * dbobj, the relational object persistence module for PHP * * Copyright (C) 2006 Adam Banko * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * \***************************** LICENSE }}} ********************************/ #ifndef DBOBJ_BASICPROPCONFIG_H #define DBOBJ_BASICPROPCONFIG_H #include "php_dbobj.h" #include "objPropClass.h" #include "access.h" #include "objType.h" #include "dbType.h" typedef struct _basicPropConfig { enum objPropClass Class; enum accessT readAccess; enum accessT writeAccess; basicType basicType; //this musn't be destoryed! //class specific section dbType dbType; //data type of the column char* dbField; //name of the database column uint dbFieldL; //length of the name of the database column uint PKIndex; /* if this column is PK then this filed contains the index * where this basicPropConfig can be found at classConfig.PKs * if this column in not a PK then contains PKINDEX_NOTPK */ char* name; //user given name for the column uint nameL; // and it's length } *basicPropConfig; #define PKINDEX_NOTPK (-1) #endif //DBOBJ_BASICPROPCONFIG_H /* * vim600: noet sw=4 ts=4 fdm=marker * vim<600: noet sw=4 ts=4 */