ndb_schema.hpp
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:3k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. /* Copyright (C) 2003 MySQL AB
  2.    This program is free software; you can redistribute it and/or modify
  3.    it under the terms of the GNU General Public License as published by
  4.    the Free Software Foundation; either version 2 of the License, or
  5.    (at your option) any later version.
  6.    This program is distributed in the hope that it will be useful,
  7.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9.    GNU General Public License for more details.
  10.    You should have received a copy of the GNU General Public License
  11.    along with this program; if not, write to the Free Software
  12.    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
  13. #ifndef NDB_SCHEMA_H
  14. #define NDB_SCHEMA_H
  15. #include "testDefinitions.h"
  16. #define SUBSCRIBER_TABLE        "SUBSCRIBER"
  17. #define SUBSCRIBER_NUMBER       "NUMBER"
  18. #define SUBSCRIBER_LOCATION     "LOCATION"
  19. #define SUBSCRIBER_NAME         "NAME"
  20. #define SUBSCRIBER_GROUP        "GROUP_ID"
  21. #define SUBSCRIBER_SESSIONS     "SESSIONS"
  22. #define SUBSCRIBER_CHANGED_BY   "CHANGED_BY"
  23. #define SUBSCRIBER_CHANGED_TIME "CHANGED_TIME"
  24. #define SERVER_TABLE             "SERVER"
  25. #define SERVER_ID                "SERVER_ID"
  26. #define SERVER_SUBSCRIBER_SUFFIX "SUFFIX"
  27. #define SERVER_NAME              "NAME"
  28. #define SERVER_READS             "NO_OF_READ"
  29. #define SERVER_INSERTS           "NO_OF_INSERT"
  30. #define SERVER_DELETES           "NO_OF_DELETE"
  31. #define GROUP_TABLE              "GROUP"
  32. #define GROUP_ID                 "GROUP_ID"
  33. #define GROUP_NAME               "GROUP_NAME"
  34. #define GROUP_ALLOW_READ         "ALLOW_READ"
  35. #define GROUP_ALLOW_INSERT       "ALLOW_INSERT"
  36. #define GROUP_ALLOW_DELETE       "ALLOW_DELETE"
  37. #define SESSION_TABLE            "SESSION"
  38. #define SESSION_SERVER           "SERVER_ID"
  39. #define SESSION_SUBSCRIBER       "NUMBER"
  40. #define SESSION_DATA             "DATA"
  41. /** Numbers */
  42. #define IND_SUBSCRIBER_NUMBER        (unsigned)0
  43. #define IND_SUBSCRIBER_NAME          (unsigned)1
  44. #define IND_SUBSCRIBER_GROUP         (unsigned)2
  45. #define IND_SUBSCRIBER_LOCATION      (unsigned)3
  46. #define IND_SUBSCRIBER_SESSIONS      (unsigned)4
  47. #define IND_SUBSCRIBER_CHANGED_BY    (unsigned)5
  48. #define IND_SUBSCRIBER_CHANGED_TIME  (unsigned)6
  49. #define IND_SERVER_SUBSCRIBER_SUFFIX (unsigned)0
  50. #define IND_SERVER_ID                (unsigned)1
  51. #define IND_SERVER_NAME              (unsigned)2
  52. #define IND_SERVER_READS             (unsigned)3
  53. #define IND_SERVER_INSERTS           (unsigned)4
  54. #define IND_SERVER_DELETES           (unsigned)5
  55. #define IND_GROUP_ID                 (unsigned)0
  56. #define IND_GROUP_NAME               (unsigned)1
  57. #define IND_GROUP_ALLOW_READ         (unsigned)2
  58. #define IND_GROUP_ALLOW_INSERT       (unsigned)3
  59. #define IND_GROUP_ALLOW_DELETE       (unsigned)4
  60. #define IND_SESSION_SUBSCRIBER       (unsigned)0
  61. #define IND_SESSION_SERVER           (unsigned)1
  62. #define IND_SESSION_DATA             (unsigned)2
  63. #endif