Documentation ¶
Index ¶
- Variables
- func GenerateEffectPolicyAst(policyTable, eftColumnName, allow, deny string, policyType EffectPolicyType) []ast.Evaluable
- func NewIndexSchemaReader(info *TableInfo, indexIdx int) bschema.Reader
- type CIStr
- type Cloneable
- type ColumnInfo
- type DBInfo
- type EffectPolicyType
- type FKInfo
- type IndexColumn
- type IndexInfo
- type IndexSchemaReader
- type IndexType
- type MatcherInfo
- type TableInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTableNotExists = errors.New("table not exits")
Functions ¶
func GenerateEffectPolicyAst ¶
func GenerateEffectPolicyAst(policyTable, eftColumnName, allow, deny string, policyType EffectPolicyType) []ast.Evaluable
Types ¶
type ColumnInfo ¶
type ColumnInfo struct { ID uint64 ColName CIStr Offset int Tp bsontype.Type DefaultValue Cloneable DefaultValueBit []byte }
func (*ColumnInfo) Clone ¶
func (c *ColumnInfo) Clone() *ColumnInfo
func (*ColumnInfo) GetDefaultValue ¶
func (c *ColumnInfo) GetDefaultValue() []byte
func (*ColumnInfo) Name ¶
func (c *ColumnInfo) Name() []byte
func (*ColumnInfo) Type ¶
func (c *ColumnInfo) Type() bsontype.Type
type DBInfo ¶
type DBInfo struct { ID uint64 Name CIStr TableInfo []*TableInfo MatcherInfo []*MatcherInfo }
type EffectPolicyType ¶
type EffectPolicyType uint8
const ( AllowOverride EffectPolicyType = iota DenyOverride AllowAndDeny Priority PriorityBaseOnRole )
type FKInfo ¶
type IndexColumn ¶
func (*IndexColumn) Clone ¶
func (i *IndexColumn) Clone() *IndexColumn
type IndexInfo ¶
type IndexInfo struct { ID uint64 Name CIStr Table CIStr Columns []*IndexColumn Unique bool Primary bool Tp IndexType }
func (*IndexInfo) Leftmost ¶
func (i *IndexInfo) Leftmost() *IndexColumn
type IndexSchemaReader ¶
type IndexSchemaReader struct {
// contains filtered or unexported fields
}
func (IndexSchemaReader) Field ¶
func (i IndexSchemaReader) Field(s string) int
func (IndexSchemaReader) FieldsLen ¶
func (i IndexSchemaReader) FieldsLen() int
type MatcherInfo ¶
type MatcherInfo struct { ID uint64 Name CIStr Raw string EffectPolicy EffectPolicyType Predicate ast.Evaluable }
func (*MatcherInfo) Clone ¶
func (m *MatcherInfo) Clone() *MatcherInfo
Click to show internal directories.
Click to hide internal directories.