package
0.0.0-20240611043310-e7e2df93f36d
Repository: https://github.com/mdaxf/iac.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AddAliasWthDB add a aliasName for the drivename.
AddGlobalFilterChain adds a new FilterChain All orm instances built after this invocation will use this filterChain, but instances built before this invocation will not be affected.
BootStrap bootstrap models.
ColValue do the field raw changes.
ConnMaxLifetime return a hint about ConnMaxLifetime.
GetDB Get *sql.DB from registered database by db alias name.
MaxIdleConnections return a hint about MaxIdleConnections.
MaxOpenConnections return a hint about MaxOpenConnections.
MaxStmtCacheSize return a hint about MaxStmtCacheSize.
NewCondition return new condition struct.
No description provided by the author
No description provided by the author
NewLog set io.Writer to create a Logger.
NewModelCacheHandler generator of modelCache.
NewOrm create new orm.
NewOrmUsingDB create new orm with the name.
NewOrmWithDB create a new ormer object with specify *sql.DB for query.
NewQueryBuilder return the QueryBuilder.
RegisterDataBase Setting the database connect params.
RegisterDriver Register a database driver use specify driver name, this can be definition the driver is which database type.
RegisterModel register models.
RegisterModelWithPrefix register models with a prefix.
RegisterModelWithSuffix register models with a suffix.
ResetModelCache Clean model cache.
RunCommand listens for orm command and runs if command arguments have been passed.
RunSyncdb run syncdb command line.
SetDataBaseTZ Change the database default used timezone.
SetMaxIdleConns Change the max idle conns for *sql.DB, use specify database alias name Deprecated you should not use this, we will remove it in the future.
SetMaxOpenConns Change the max open conns for *sql.DB, use specify database alias name Deprecated you should not use this, we will remove it in the future.
SetNameStrategy set different name strategy.
ToInt64 interface to int64.
ToStr interface to string.

# Constants

define Col operations.
define Col operations.
define Col operations.
define Col operations.
define Col operations.
define Col operations.
define Col operations.
define Col operations.
define Col operations.
CommaSpace is the separation.
DebugQueries define the debug.
MS SQL Server.
mysql.
oracle.
pgsql.
sqlite.
TiDB.
ExprSep define the expression separation.
Define some logic enum.
Define some logic enum.
Define some logic enum.
Define some logic enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
No description provided by the author
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.
Define the Type enum.

# Variables

Define common vars.
Define common vars.
Define common vars.
Define common vars.
Define common vars.
Define common vars.
Define common vars.
ErrMissPK missing pk error.
Define common vars.
Define common vars.
Define common vars.
Define common vars.
Define common vars.
costomer log func.
No description provided by the author

# Structs

Condition struct.
No description provided by the author
No description provided by the author
DoNothingTxOrm is similar with DoNothingOrm, usually you use it to test.
Invocation represents an "Orm" invocation.
Log implement the log.Logger.
MySQLQueryBuilder is the SQL build.
PostgresQueryBuilder is the SQL build.
TiDBQueryBuilder is the SQL build.
No description provided by the author

# Interfaces

Data Manipulation Language.
Data Query Language.
Driver define database driver.
No description provided by the author
Fielder define field info.
Inserter insert prepared statement.
IsApplicableTableForDB if return false, we won't create table to this db.
No description provided by the author
QueryBuilder is the Query builder interface.
QueryExecutor wrapping for ormer.
QueryM2Mer model to model query struct all operations are on the m2m table only, will not affect the origin model table.
QuerySeter query seter.
RawPreparer raw query statement.
RawSeter raw query seter create From Ormer.Raw for example: sql := fmt.Sprintf("SELECT %sid%s,%sname%s FROM %suser%s WHERE id = ?",Q,Q,Q,Q,Q,Q) rs := Ormer.Raw(sql, 1).
TableEngineI is usually used by model when you want to use specific engine, like myisam, you can implement this interface for example: type User struct { ..
TableIndexI is usually used by model when you want to create indexes, you can implement this interface for example: type User struct { ..
TableNaming is usually used by model when you custom your table name, please implement this interfaces for example: type User struct { ..
TableUniqueI is usually used by model when you want to create unique indexes, you can implement this interface for example: type User struct { ..
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

BigIntegerField -9223372036854775808 to 9223372036854775807.
BooleanField A true/false field.
CharField A string field required values tag: size The size is enforced at the database level and in models’s validation.
DateField A date, represented in go by a time.Time instance.
DateTimeField A date, represented in go by a time.Time instance.
No description provided by the author
DriverType database driver constant int.
Filter's behavior is a little big strange.
FilterChain is used to build a Filter don't forget to call next(...) inside your Filter.
FloatField A floating-point number represented in go by a float32 value.
IntegerField -2147483648 to 2147483647.
JsonbField postgres json field.
JSONField postgres json field.
Params stores the Params.
ParamsList stores paramslist.
PositiveBigIntegerField 0 to 18446744073709551615.
PositiveIntegerField 0 to 4294967295.
PositiveSmallIntegerField 0 to 65535.
SmallIntegerField -32768 to 32767.
StrTo is the target string.
TextField A large text field.
TimeField A time, represented in go by a time.Time instance.