Documentation ¶
Index ¶
- Variables
- type Column
- type ColumnOptions
- func (*ColumnOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ColumnOptions) GetDefault() string
- func (x *ColumnOptions) GetNull() bool
- func (x *ColumnOptions) GetSequence() bool
- func (x *ColumnOptions) GetSize() int32
- func (x *ColumnOptions) GetType() string
- func (x *ColumnOptions) GetUnique() bool
- func (*ColumnOptions) ProtoMessage()
- func (x *ColumnOptions) ProtoReflect() protoreflect.Message
- func (x *ColumnOptions) Reset()
- func (x *ColumnOptions) String() string
- type DAOOptions
- type IndexOption
- func (*IndexOption) Descriptor() ([]byte, []int)deprecated
- func (x *IndexOption) GetColumns() []string
- func (x *IndexOption) GetName() string
- func (x *IndexOption) GetUnique() bool
- func (*IndexOption) ProtoMessage()
- func (x *IndexOption) ProtoReflect() protoreflect.Message
- func (x *IndexOption) Reset()
- func (x *IndexOption) String() string
- type QueryOption
- type TableOptions
- func (*TableOptions) Descriptor() ([]byte, []int)deprecated
- func (x *TableOptions) GetEngine() string
- func (x *TableOptions) GetIndexes() []*IndexOption
- func (x *TableOptions) GetPrimaryKey() []string
- func (x *TableOptions) GetTableName() string
- func (x *TableOptions) GetWithTimestamp() bool
- func (*TableOptions) ProtoMessage()
- func (x *TableOptions) ProtoReflect() protoreflect.Message
- func (x *TableOptions) Reset()
- func (x *TableOptions) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // optional dev.f110.ddl.TableOptions table = 60000; E_Table = &file_ddl_proto_extTypes[0] // optional dev.f110.ddl.DAOOptions dao = 60001; E_Dao = &file_ddl_proto_extTypes[1] )
Extension fields to descriptorpb.MessageOptions.
View Source
var (
// optional dev.f110.ddl.ColumnOptions column = 60000;
E_Column = &file_ddl_proto_extTypes[2]
)
Extension fields to descriptorpb.FieldOptions.
View Source
var File_ddl_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ColumnOptions ¶
type ColumnOptions struct { Sequence bool `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` Null bool `protobuf:"varint,2,opt,name=null,proto3" json:"null,omitempty"` Default string `protobuf:"bytes,3,opt,name=default,proto3" json:"default,omitempty"` Size int32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` Unique bool `protobuf:"varint,6,opt,name=unique,proto3" json:"unique,omitempty"` // contains filtered or unexported fields }
func (*ColumnOptions) Descriptor
deprecated
func (*ColumnOptions) Descriptor() ([]byte, []int)
Deprecated: Use ColumnOptions.ProtoReflect.Descriptor instead.
func (*ColumnOptions) GetDefault ¶
func (x *ColumnOptions) GetDefault() string
func (*ColumnOptions) GetNull ¶
func (x *ColumnOptions) GetNull() bool
func (*ColumnOptions) GetSequence ¶
func (x *ColumnOptions) GetSequence() bool
func (*ColumnOptions) GetSize ¶
func (x *ColumnOptions) GetSize() int32
func (*ColumnOptions) GetType ¶
func (x *ColumnOptions) GetType() string
func (*ColumnOptions) GetUnique ¶
func (x *ColumnOptions) GetUnique() bool
func (*ColumnOptions) ProtoMessage ¶
func (*ColumnOptions) ProtoMessage()
func (*ColumnOptions) ProtoReflect ¶
func (x *ColumnOptions) ProtoReflect() protoreflect.Message
func (*ColumnOptions) Reset ¶
func (x *ColumnOptions) Reset()
func (*ColumnOptions) String ¶
func (x *ColumnOptions) String() string
type DAOOptions ¶
type DAOOptions struct { Queries []*QueryOption `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"` // contains filtered or unexported fields }
func (*DAOOptions) Descriptor
deprecated
func (*DAOOptions) Descriptor() ([]byte, []int)
Deprecated: Use DAOOptions.ProtoReflect.Descriptor instead.
func (*DAOOptions) GetQueries ¶
func (x *DAOOptions) GetQueries() []*QueryOption
func (*DAOOptions) ProtoMessage ¶
func (*DAOOptions) ProtoMessage()
func (*DAOOptions) ProtoReflect ¶
func (x *DAOOptions) ProtoReflect() protoreflect.Message
func (*DAOOptions) Reset ¶
func (x *DAOOptions) Reset()
func (*DAOOptions) String ¶
func (x *DAOOptions) String() string
type IndexOption ¶
type IndexOption struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Columns []string `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"` Unique bool `protobuf:"varint,3,opt,name=unique,proto3" json:"unique,omitempty"` // contains filtered or unexported fields }
func (*IndexOption) Descriptor
deprecated
func (*IndexOption) Descriptor() ([]byte, []int)
Deprecated: Use IndexOption.ProtoReflect.Descriptor instead.
func (*IndexOption) GetColumns ¶
func (x *IndexOption) GetColumns() []string
func (*IndexOption) GetName ¶
func (x *IndexOption) GetName() string
func (*IndexOption) GetUnique ¶
func (x *IndexOption) GetUnique() bool
func (*IndexOption) ProtoMessage ¶
func (*IndexOption) ProtoMessage()
func (*IndexOption) ProtoReflect ¶
func (x *IndexOption) ProtoReflect() protoreflect.Message
func (*IndexOption) Reset ¶
func (x *IndexOption) Reset()
func (*IndexOption) String ¶
func (x *IndexOption) String() string
type QueryOption ¶
type QueryOption struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*QueryOption) Descriptor
deprecated
func (*QueryOption) Descriptor() ([]byte, []int)
Deprecated: Use QueryOption.ProtoReflect.Descriptor instead.
func (*QueryOption) GetName ¶
func (x *QueryOption) GetName() string
func (*QueryOption) GetQuery ¶
func (x *QueryOption) GetQuery() string
func (*QueryOption) ProtoMessage ¶
func (*QueryOption) ProtoMessage()
func (*QueryOption) ProtoReflect ¶
func (x *QueryOption) ProtoReflect() protoreflect.Message
func (*QueryOption) Reset ¶
func (x *QueryOption) Reset()
func (*QueryOption) String ¶
func (x *QueryOption) String() string
type TableOptions ¶
type TableOptions struct { TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` PrimaryKey []string `protobuf:"bytes,2,rep,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` Indexes []*IndexOption `protobuf:"bytes,3,rep,name=indexes,proto3" json:"indexes,omitempty"` Engine string `protobuf:"bytes,4,opt,name=engine,proto3" json:"engine,omitempty"` WithTimestamp bool `protobuf:"varint,5,opt,name=with_timestamp,json=withTimestamp,proto3" json:"with_timestamp,omitempty"` // contains filtered or unexported fields }
func (*TableOptions) Descriptor
deprecated
func (*TableOptions) Descriptor() ([]byte, []int)
Deprecated: Use TableOptions.ProtoReflect.Descriptor instead.
func (*TableOptions) GetEngine ¶
func (x *TableOptions) GetEngine() string
func (*TableOptions) GetIndexes ¶
func (x *TableOptions) GetIndexes() []*IndexOption
func (*TableOptions) GetPrimaryKey ¶
func (x *TableOptions) GetPrimaryKey() []string
func (*TableOptions) GetTableName ¶
func (x *TableOptions) GetTableName() string
func (*TableOptions) GetWithTimestamp ¶
func (x *TableOptions) GetWithTimestamp() bool
func (*TableOptions) ProtoMessage ¶
func (*TableOptions) ProtoMessage()
func (*TableOptions) ProtoReflect ¶
func (x *TableOptions) ProtoReflect() protoreflect.Message
func (*TableOptions) Reset ¶
func (x *TableOptions) Reset()
func (*TableOptions) String ¶
func (x *TableOptions) String() string
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
rules
|
|
Generated by protoc-ddl.
|
Generated by protoc-ddl. |
dao
Package dao contains the data access object.
|
Package dao contains the data access object. |
dao/daotest
Generated by protoc-ddl.
|
Generated by protoc-ddl. |
Click to show internal directories.
Click to hide internal directories.