-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a302fd
commit 75bf1dc
Showing
10 changed files
with
54 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "DatabaseData.h" | ||
|
||
namespace faker | ||
{ | ||
const std::array<std::string_view, 7> collations = {"utf8_unicode_ci", "utf8_general_ci", "utf8_bin", | ||
"ascii_bin", "ascii_general_ci", "cp1250_bin", | ||
"cp1250_general_ci"}; | ||
|
||
const std::array<std::string_view, 17> columnNames = { | ||
"id", "title", "name", "email", "username", "first_name", "last_name", "phone", "token", | ||
"group", "category", "password", "comment", "avatar", "status", "created_at", "updated_at", | ||
}; | ||
|
||
const std::array<std::string_view, 24> columnTypes = { | ||
"int", "varchar", "text", "date", "datetime", "tinyint", "time", "timestamp", | ||
"smallint", "mediumint", "bigint", "decimal", "float", "double", "real", "bit", | ||
"boolean", "serial", "blob", "binary", "enum", "set", "geometry", "point", | ||
}; | ||
|
||
const std::array<std::string_view, 6> engines = {"InnoDB", "MyISAM", "MEMORY", "CSV", "BLACKHOLE", "ARCHIVE"}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
#include <array> | ||
#include <string_view> | ||
|
||
namespace faker | ||
{ | ||
extern const std::array<std::string_view, 7> collations; | ||
extern const std::array<std::string_view, 17> columnNames; | ||
extern const std::array<std::string_view, 24> columnTypes; | ||
extern const std::array<std::string_view, 6> engines; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters