Documentation
¶
Index ¶
- Constants
- func AsSha256(o interface{}) string
- func AsSha256OfOrderedMap(o map[string]interface{}, orderedKey []string) string
- func CleanAndTrim(text string) string
- func ExecScript(ctx context.Context, model interface{}, sql string, dbCon *sqlx.DB, ...) error
- func NumericHash(ac interface{}) int64
- func StructToSlice(st interface{}, allFields bool) ([]interface{}, []string)
- type OverTransactionAdditionalQueries
Constants ¶
View Source
const ( //GlobalDBVersion ... GlobalDBVersion int = 1 MT5_MIN_DATE int64 = 1616111768768 )
Variables ¶
This section is empty.
Functions ¶
func AsSha256OfOrderedMap ¶
AsSha256OfOrderedMap hash function My tests showed this is unnecessary because apparently, the order of the key is the same if the content of the row is the same. So, two rows could have different field order, but it should be always the same for the specific row
func ExecScript ¶
func ExecScript(ctx context.Context, model interface{}, sql string, dbCon *sqlx.DB, fn OverTransactionAdditionalQueries) error
ExecScript runs que SQL
func NumericHash ¶ added in v0.9.2
func NumericHash(ac interface{}) int64
func StructToSlice ¶
StructToSlice return field name and its values from a struct
Types ¶
type OverTransactionAdditionalQueries ¶
OverTransactionAdditionalQueries allow you to runs additional taks over the openned transaction
Click to show internal directories.
Click to hide internal directories.