Versions in this module Expand all Collapse all v1 v1.0.8 Nov 29, 2024 v1.0.7 Nov 28, 2024 Changes in this version type SqlExecMultiple + func (sq *SqlExecMultiple) GetTransactions() []*Transaction + func (sq *SqlExecMultiple) SetSqlSingle(s SqlExecSingle) (*Transaction, error) + func (sq *SqlExecMultiple) SetTransaction(s ...*Transaction) ([]*Transaction, error) v1.0.5 Nov 21, 2024 v1.0.4 Apr 3, 2024 v1.0.3 Feb 28, 2024 v1.0.2 Feb 26, 2024 Changes in this version + type Schema interface + GetSchemaDelete func() []Fields + GetSchemaInsert func() []Fields + GetSchemaUpdate func() []Fields + GetTableName func() string type SqlExecSingle + func (sq *SqlExecSingle) GetData() []map[string]interface{} type Transaction + func (t *Transaction) GetData() []map[string]interface{} v1.0.1 Feb 26, 2024 Changes in this version type Querys + func (q *Querys) SetTable(table string) *Querys v1.0.0 Feb 22, 2024 Changes in this version + func AesDecrypt(crypted, key []byte) ([]byte, error) + func AesDecrypt_PHP(crypted, key []byte) ([]byte, error) + func AesEncrypt(origData, key []byte) ([]byte, error) + func AesEncrypt_PHP(origData, key []byte) (string, error) + func CheckDate(date string) error + func Connection(database string) (*sql.DB, error) + func ConnectionCloud() (*sql.DB, error) + func DiferenciaDate(date ...string) float64 + func GetDateLocationString() string + func GetDateLocationTime() time.Time + func GetDay() int64 + func GetDayDate(date string) (string, int) + func GetFechaLocationString() string + func GetFechaLocationStringAdd(days int) string + func GetHoraLocationString() string + func GetKey_PrivateCrypto() []byte + func GetMonth() int64 + func GetMonthDate(date string) (string, int) + func GetMonthString() string + func GetYear() int64 + func GetYearDate(date string) (string, int) + func GetYearString() string + func IndexOf_String(arreglo []string, search string) int + func InterfaceToString(params ...interface{}) string + func IsItHoliday(date string, days_holidays []string) bool + func Null() *regexp.Regexp + func Number() *regexp.Regexp + func PKCS5Padding(src []byte, blockSize int) []byte + func PKCS7Padding(cipherText []byte, blockSize int) []byte + func PKCS7UnPadding(origData []byte) []byte + func Query_Cross_Update(query string) string + func SumarDate(date string, days int) string + type DataType string + const Bool + const Bytes + const Float + const Int + const String + const Time + const Uint + type Fields struct + Default interface{} + Description string + Empty bool + Name string + PrimaryKey bool + Required bool + Type DataType + Update bool + ValidateType interface{} + Where bool + func SchemaForDelete(modelo []Fields) []Fields + func SchemaForUpdate(modelo []Fields) []Fields + type OperatorWhere string + const BETWEEN + const D + const I + const IN + const LIKE + const MN + const MNI + const MY + const MYI + const NOT_BETWEEN + const NOT_IN + type QConfig struct + Cloud bool + Database string + Procedure bool + type Querys struct + Table string + func (q *Querys) All() ([]map[string]interface{}, error) + func (q *Querys) And(and string, op OperatorWhere, arg interface{}) *Querys + func (q *Querys) Close() + func (q *Querys) Connect(config QConfig) *Querys + func (q *Querys) Exec(config QConfig) *Querys + func (q *Querys) ExecTx() *Querys + func (q *Querys) GetErrors() error + func (q *Querys) GetQuery() string + func (q *Querys) GroupBy(group ...string) *Querys + func (q *Querys) Join(tp TypeJoin, table string, on string) *Querys + func (q *Querys) Limit(limit ...int) *Querys + func (q *Querys) One() (map[string]interface{}, error) + func (q *Querys) Or(or string, op OperatorWhere, arg interface{}) *Querys + func (q *Querys) OrderBy(campos ...string) *Querys + func (q *Querys) ResetQuery() + func (q *Querys) Select(campos ...string) *Querys + func (q *Querys) SetNewArgs(arg ...interface{}) error + func (q *Querys) SetQueryString(query string, arg interface{}) *Querys + func (q *Querys) Text(columna string) (interface{}, error) + func (q *Querys) Top(top int) *Querys + func (q *Querys) Where(where string, op OperatorWhere, arg interface{}) *Querys + type Regex interface + Float func() *regexp.Regexp + Letras func(start int8, end int16) *regexp.Regexp + type SqlExecMultiple struct + func (sq *SqlExecMultiple) Commit() error + func (sq *SqlExecMultiple) Exec(params ...bool) error + func (sq *SqlExecMultiple) ExecTransaction(t *Transaction) error + func (sq *SqlExecMultiple) New(database string) *SqlExecMultiple + func (sq *SqlExecMultiple) SetInfo(table string, datos ...map[string]interface{}) *Transaction + type SqlExecSingle struct + func (sq *SqlExecSingle) Delete(schema []Fields) error + func (sq *SqlExecSingle) Exec(database string, params ...bool) error + func (sq *SqlExecSingle) Insert(schema []Fields) error + func (sq *SqlExecSingle) New(table string, datos ...map[string]interface{}) *SqlExecSingle + func (sq *SqlExecSingle) Update(schema []Fields) error + type Transaction struct + func (t *Transaction) Delete(schema []Fields) error + func (t *Transaction) Insert(schema []Fields) error + func (t *Transaction) Update(schema []Fields) error + type TypeFloat64 struct + Mayor float64 + Menor float64 + Negativo bool + Porcentaje bool + type TypeInt64 struct + Max int64 + Min int64 + Negativo bool + type TypeJoin string + const FULL + const INNER + const LEFT + const RIGHT + type TypeStrings struct + Cifrar bool + Date bool + Encriptar bool + Expr *regexp.Regexp + LowerCase bool + Max int + Min int + UpperCase bool + type TypeUint64 struct + Max uint64