Documentation
¶
Index ¶
- func AllowMysqlAES() bool
- func NewAesConverter(dbName string) gust.Option[*AesConverter]
- func QueryDbName(db QueryRow) (string, error)
- func RegisterAesTable(db *sql.DB, tableName, aesKey string, aesColumnNames []string) error
- type AesConverter
- func (a *AesConverter) ConvertDml(sql string) (string, error)
- func (a *AesConverter) ConvertDmlAst(stmt ast.StmtNode) error
- func (a *AesConverter) ExpandWildcard(tableName string, addAlias bool) []string
- func (a *AesConverter) ToDecryptedJoinConditions(tableName, join string) (string, error)
- func (a *AesConverter) ToDecryptedSelectFields(tableName string, hadSelectPrefix bool, selectFields ...string) ([]string, error)
- func (a *AesConverter) ToDecryptedWhereConditions(tableName, cond string, hadWherePrefix bool) (string, error)
- type DbInfo
- type FieldInfo
- type QueryRow
- type SubConverter
- type TabCtx
- type TableInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowMysqlAES ¶
func AllowMysqlAES() bool
func NewAesConverter ¶
func NewAesConverter(dbName string) gust.Option[*AesConverter]
func QueryDbName ¶
Types ¶
type AesConverter ¶
type AesConverter struct {
*TabCtx
}
func (*AesConverter) ConvertDml ¶
func (a *AesConverter) ConvertDml(sql string) (string, error)
func (*AesConverter) ConvertDmlAst ¶
func (a *AesConverter) ConvertDmlAst(stmt ast.StmtNode) error
func (*AesConverter) ExpandWildcard ¶
func (a *AesConverter) ExpandWildcard(tableName string, addAlias bool) []string
func (*AesConverter) ToDecryptedJoinConditions ¶
func (a *AesConverter) ToDecryptedJoinConditions(tableName, join string) (string, error)
func (*AesConverter) ToDecryptedSelectFields ¶
func (*AesConverter) ToDecryptedWhereConditions ¶
func (a *AesConverter) ToDecryptedWhereConditions(tableName, cond string, hadWherePrefix bool) (string, error)
type DbInfo ¶
type SubConverter ¶
type SubConverter struct { *AesConverter // contains filtered or unexported fields }
type TableInfo ¶
type TableInfo struct {
// contains filtered or unexported fields
}
func (*TableInfo) EncryptValueNode ¶
func (*TableInfo) GetEncryptedColumnValue ¶
func (*TableInfo) IsAesField ¶
Click to show internal directories.
Click to hide internal directories.