Update reserved word list.
@@ -3,63 +3,13 @@ pub struct TypeNameValidator {
}
impl TypeNameValidator {
+ // The source of the following list is from prisma-client-js. Any edit should be done in both places.
+ // https://github.com/prisma/prisma/blob/master/src/packages/client/src/generation/generateClient.ts#L443
pub fn new() -> Self {
Self {
reserved_names: vec![
- // The source of the following list is from prisma-client-js. Any edit should be done in both places.
- // https://github.com/prisma/prisma/blob/master/src/packages/client/src/generation/generateClient.ts#L443
- "dmmf",
- "PromiseType",
- "PromiseReturnType",
- "Enumerable",
- "MergeTruthyValues",
- "CleanupNever",
- "Subset",
- "AtLeastOne",
- "atMostOne",
- "OnlyOne",
- "PrismaClientFetcher",
"PrismaClient",
- "Engine",
- "Datasources",
- "ErrorFormat",
- "Hooks",
- "LogLevel",
- "LogDefinition",
- "GetLogType",
- "GetEvents",
- "QueryEvent",
- "LogEvent",
- "ModelDelegate",
- "QueryDelegate",
- "missingArg",
- "ArgError",
- "InvalidFieldError",
- "InvalidFieldNameError",
- "InvalidFieldTypeError",
- "EmptySelectError",
- "NoTrueSelectError",
- "IncludeAndSelectError",
- "EmptyIncludeError",
- "InvalidArgError",
- "InvalidArgNameError",
- "MissingArgError",
- "InvalidArgTypeError",
- "AtLeastOneError",
- "AtMostOneError",
- "PrismaClientRequestError",
- "PrismaClientOptions",
- "PrismaClientKnownRequestError",
- "PrismaClientUnknownRequestError",
- "PrismaClientInitializationError",
- "PrismaClientRustPanicError",
- "PrismaVersion",
- "QueryMode",
- "SortOrder",
- "InputJsonValue",
// JavaScript keywords
- "await",
- "async",
"break",
"case",
"catch",
