gormplugin2

package module
v0.0.0-...-1ad5a9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAesCallback

func RegisterAesCallback(db *gorm.DB) gust.Errable[error]

func RegisterAesTable

func RegisterAesTable(db *gorm.DB, tableName, aesKey string, aesColumnNames []string) gust.Errable[error]

RegisterAesTable Register the AES information of the specified DB Table NOTE: Raw().Rows() and Raw().Row() methods do not support transparent AES decryption When calling Raw().Scan(&v), if v is not the corresponding Model, Model(m).Raw().Scan(&v) should be called instead The length of the ciphertext is: if the length of the plaintext is 16n+m (m<16), then the length of the ciphertext is (16n+16)x4/3, and the ciphertext has increased by at least 1/3

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL