-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStatusCode.h
36 lines (29 loc) · 1.38 KB
/
StatusCode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// Created by Jan on 2021/1/4.
//
#ifndef MYDB1_STATUSCODE_H
#define MYDB1_STATUSCODE_H
#define WELCOME "Welcome to myDatabase!"
#define EXIT "Bye~"
#define ILLEGAL_INPUT "Illegal input, please try again"
#define ILLEGAL_INPUT_SHOW "Illegal input, please input like 'show databases' or 'show tables'"
#define ILLEGAL_INPUT_OBJECT "Illegal input, please input your operation object like 'database' or 'table'"
#define NOT_USE_DATABASE "Error, please use corresponding database first"
#define NOT_USE_TABLE "Error, please use corresponding table first"
#define NOT_FOUND_DATA "Sorry, the data is not found"
#define NOT_FOUND_DATABASE "Sorry, the database is not found"
#define NOT_FOUND_TABLE "Sorry, the table is not found"
#define SUCCESS_INSERT "Insert successfully"
#define SUCCESS_REMOVE "Remove successfully"
#define SUCCESS_ALTER "Alter successfully"
#define SUCCESS_CREATE_DATABASE "Create database successfully"
#define SUCCESS_DROP_DATABASE "Drop database successfully"
#define SUCCESS_CREATE_TABLE "Create table successfully"
#define SUCCESS_DROP_TABLE "Drop table successfully"
#define FAIL_REMOVE "Sorry, fail to remove the data"
#define FAIL_ALTER "Sorry, fail to alter the data"
#define EXIST_DATABASE "Sorry, the database already exists"
#define EXIST_DATA "Sorry, the data already exists"
#define USE_DATABASE "Database changed"
#define USE_TABLE "Table changed"
#endif //MYDB1_STATUSCODE_H