Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OnDelete_name = map[int32]string{ 0: "CASCADE", 1: "SET_NULL", 2: "SET_DEFAULT", 3: "NOTING", } OnDelete_value = map[string]int32{ "CASCADE": 0, "SET_NULL": 1, "SET_DEFAULT": 2, "NOTING": 3, } )
Enum value maps for OnDelete.
View Source
var ( // optional bool is_table = 53001; E_IsTable = &file_proto_database_proto_extTypes[0] // optional string table_name = 53002; E_TableName = &file_proto_database_proto_extTypes[1] // optional bool junction_table = 53004; E_JunctionTable = &file_proto_database_proto_extTypes[2] // repeated string unique_together = 53005; E_UniqueTogether = &file_proto_database_proto_extTypes[3] // repeated string get_by_fields = 53006; E_GetByFields = &file_proto_database_proto_extTypes[4] // repeated string update_by_fields = 53007; E_UpdateByFields = &file_proto_database_proto_extTypes[5] // repeated string delete_by_fields = 53008; E_DeleteByFields = &file_proto_database_proto_extTypes[6] )
Extension fields to descriptor.MessageOptions.
View Source
var ( // optional bool nullable = 54001; E_Nullable = &file_proto_database_proto_extTypes[7] // optional string db_tags = 54002; E_DbTags = &file_proto_database_proto_extTypes[8] // optional string json_tags = 54003; E_JsonTags = &file_proto_database_proto_extTypes[9] // optional string custom_type = 54004; E_CustomType = &file_proto_database_proto_extTypes[10] // optional string custom_name = 54005; E_CustomName = &file_proto_database_proto_extTypes[11] // optional google.protobuf.Any default_value = 54006; E_DefaultValue = &file_proto_database_proto_extTypes[12] // optional string foreign_table = 54007; E_ForeignTable = &file_proto_database_proto_extTypes[13] // optional string foreign_field = 54008; E_ForeignField = &file_proto_database_proto_extTypes[14] // optional protobuf.OnDelete foreign_on_delete = 54009; E_ForeignOnDelete = &file_proto_database_proto_extTypes[15] // optional bool unique = 54010; E_Unique = &file_proto_database_proto_extTypes[16] // optional bool auto = 54011; E_Auto = &file_proto_database_proto_extTypes[17] )
Extension fields to descriptor.FieldOptions.
View Source
var ( // optional string contain_swagger_header = 52001; E_ContainSwaggerHeader = &file_proto_swagger_proto_extTypes[0] // optional string swagger_service_title = 52002; E_SwaggerServiceTitle = &file_proto_swagger_proto_extTypes[1] // optional string swagger_service_description = 52003; E_SwaggerServiceDescription = &file_proto_swagger_proto_extTypes[2] )
Extension fields to descriptor.FileOptions.
View Source
var File_proto_database_proto protoreflect.FileDescriptor
View Source
var File_proto_swagger_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type OnDelete ¶
type OnDelete int32
func (OnDelete) Descriptor ¶
func (OnDelete) Descriptor() protoreflect.EnumDescriptor
func (OnDelete) EnumDescriptor
deprecated
func (OnDelete) Number ¶
func (x OnDelete) Number() protoreflect.EnumNumber
func (OnDelete) Type ¶
func (OnDelete) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.