/* Copyright 2007 - 2008 MySQL AB, 2008 - 2009 Sun Microsystems, Inc. All rights reserved. The MySQL Connector/C++ is licensed under the terms of the GPL , like most MySQL Connectors. There are special exceptions to the terms and conditions of the GPL as it is applied to this software, see the FLOSS License Exception . */ #ifndef _EXAMPLES_H #define _EXAMPLES_H // Portable __FUNCTION__ #ifndef __FUNCTION__ #ifdef __func__ #define __FUNCTION__ __func__ #else #define __FUNCTION__ "(function n/a)" #endif #endif #ifndef __LINE__ #define __LINE__ "(line number n/a)" #endif // Connection properties #define EXAMPLE_DB "test" #define EXAMPLE_HOST "localhost" #define EXAMPLE_USER "my_userid" #define EXAMPLE_PASS "my_passwrd" // Sample data #define EXAMPLE_NUM_TEST_ROWS 4 struct _test_data { int id; const char* label; }; static _test_data test_data[EXAMPLE_NUM_TEST_ROWS] = { {1, ""}, {2, "a"}, {3, "b"}, {4, "c"}, }; #endif /* _EXAMPLES_H */