| 3046 | } |
| 3047 | |
| 3048 | void CreateDatabaseToString(String & ret, const CreateDatabase & create_database) |
| 3049 | { |
| 3050 | ret += "CREATE DATABASE "; |
| 3051 | if (create_database.if_not_exists()) |
| 3052 | { |
| 3053 | ret += "IF NOT EXISTS "; |
| 3054 | } |
| 3055 | SQLIdentifierToString(ret, create_database.database()); |
| 3056 | if (create_database.has_uuid()) |
| 3057 | { |
| 3058 | ret += " UUID '"; |
| 3059 | ret += create_database.uuid(); |
| 3060 | ret += "'"; |
| 3061 | } |
| 3062 | if (create_database.has_cluster()) |
| 3063 | { |
| 3064 | ClusterToString(ret, true, create_database.cluster()); |
| 3065 | } |
| 3066 | ret += " ENGINE = "; |
| 3067 | DatabaseEngineToString(ret, create_database.dengine()); |
| 3068 | if (create_database.has_comment()) |
| 3069 | { |
| 3070 | ret += " COMMENT "; |
| 3071 | ret += create_database.comment(); |
| 3072 | } |
| 3073 | } |
| 3074 | |
| 3075 | static void CreateOrReplaceToString(String & ret, const CreateReplaceOption & cro) |
| 3076 | { |
no test coverage detected