1 /* 2 * Copyright (C) 2001-2003 FhG Fokus 3 * Copyright (C) 2007-2008 1&1 Internet AG 4 * 5 * This file is part of Kamailio, a free SIP server. 6 * 7 * Kamailio is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version 11 * 12 * Kamailio is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 */ 21 22 /** 23 * \file lib/srdb1/db_op.h 24 * \brief Type that represents a expression operator. 25 * \ingroup db1 26 */ 27 28 #ifndef DB1_OP_H 29 #define DB1_OP_H 30 31 /** operator less than */ 32 #define OP_LT "<" 33 /** operator greater than */ 34 #define OP_GT ">" 35 /** operator equal */ 36 #define OP_EQ "=" 37 /** operator less than equal */ 38 #define OP_LEQ "<=" 39 /** operator greater than equal */ 40 #define OP_GEQ ">=" 41 /** operator negation */ 42 #define OP_NEQ "<>" 43 /** bitwise AND */ 44 #define OP_BITWISE_AND "&" 45 46 47 /** 48 * This type represents an expression operator uses for SQL queries. 49 */ 50 typedef const char* db_op_t; 51 52 53 #endif /* DB1_OP_H */ 54