Documentation
¶
Index ¶
- func AutomapSqlalchemyModel(db *gorm.DB, tableNames []string, schema string) map[string]TableInfo
- func DBEncodeHex(data interface{}, dbDialect string) interface{}
- func ModelToDict(model interface{}) map[string]interface{}
- func StringToTraceAddress(traceAddressString string) []int
- func StructToMap(obj interface{}) map[string]interface{}
- func TraceAddressToString(traceAddress []int) string
- type ColumnInfo
- type Config
- type TableInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutomapSqlalchemyModel ¶
GetTableInfo retrieves table information from the MySQL database
func DBEncodeHex ¶
func DBEncodeHex(data interface{}, dbDialect string) interface{}
DBEncodeHex encodes data to a hex string or bytes depending on the database dialect
func ModelToDict ¶
func ModelToDict(model interface{}) map[string]interface{}
func StringToTraceAddress ¶
StringToTraceAddress converts a trace address string to a slice of integers
func StructToMap ¶
func StructToMap(obj interface{}) map[string]interface{}
StructToMap converts a struct to a map[string]interface{} using reflection
func TraceAddressToString ¶
TraceAddressToString converts a trace address to a string representation
Types ¶
type ColumnInfo ¶
ColumnInfo represents information about a database column
type TableInfo ¶
type TableInfo struct { Name string Columns []ColumnInfo }
TableInfo represents information about a database table
Click to show internal directories.
Click to hide internal directories.