Documentation
¶
Index ¶
- Constants
- func ConsumeAsyncBuffer(ctx Context, errF func(err error)) (stop func())
- func ConsumeAsyncFlushEvents(ctx Context, block bool) error
- func Copy[E any](ctx Context, source E) E
- func DeleteEntity[E any](ctx Context, source E)
- func EditEntity[E any](ctx Context, source E) E
- func EditEntityField(ctx Context, entity any, field string, value any) error
- func GetByID[E any, I ID](ctx Context, id I) (entity *E, found bool)
- func GetByUniqueIndex[E any](ctx Context, indexName string, attributes ...any) (entity *E, found bool)
- func GetEntityField(ctx Context, entity any, field string) any
- func GetEntityFieldDefinition[E any](ctx Context, field string) (t reflect.Type, tags map[string]string)
- func GetEntityFields(ctx Context, entity any, field ...string) map[string]any
- func MustByID[E any, I ID](ctx Context, id I) *E
- func NewEntity[E any](ctx Context) *E
- func NewEntityWithID[E any, I ID](ctx Context, id I) *E
- func SearchIDs[E any](ctx Context, where Where, pager *Pager) []uint64
- func SearchIDsWithCount[E any](ctx Context, where Where, pager *Pager) (results []uint64, totalRows int)
- func SearchOne[E any](ctx Context, where Where) (entity *E, found bool)
- type Alter
- type AsyncFlushEvents
- type BaseWhere
- type Bind
- type BindError
- type ColumnSchemaDefinition
- type Context
- type DB
- type DBBase
- type DBClient
- type DBClientNoTX
- type DBClientQuery
- type DBTransaction
- type Engine
- type EngineRegistry
- type EngineSetter
- type EntityAnonymousIterator
- type EntityFlush
- type EntityFlushedEvent
- type EntityIterator
- func GetAll[E any](ctx Context) EntityIterator[E]
- func GetByIDs[E any](ctx Context, ids ...uint64) EntityIterator[E]
- func GetByIndex[E any](ctx Context, indexName string, attributes ...any) EntityIterator[E]
- func GetByReference[E any, I ID](ctx Context, referenceName string, id I) EntityIterator[E]
- func Search[E any](ctx Context, where Where, pager *Pager) EntityIterator[E]
- func SearchWithCount[E any](ctx Context, where Where, pager *Pager) (results EntityIterator[E], totalRows int)
- type EntitySchema
- type EntitySchemaSetter
- type EntitySchemaShared
- type EnumValues
- type ExecResult
- type FlushEvent
- type FlushEventWithError
- type FlushType
- type ID
- type IDGetter
- type IndexSchemaDefinition
- type LocalCache
- type LocalCacheConfig
- type LocalCacheUsage
- type Lock
- type Locker
- type LogEntity
- type LogHandler
- type Meta
- type MockDBClient
- func (m *MockDBClient) Exec(query string, args ...any) (sql.Result, error)
- func (m *MockDBClient) ExecContext(context context.Context, query string, args ...any) (sql.Result, error)
- func (m *MockDBClient) Prepare(query string) (*sql.Stmt, error)
- func (m *MockDBClient) Query(query string, args ...any) (*sql.Rows, error)
- func (m *MockDBClient) QueryContext(context context.Context, query string, args ...any) (*sql.Rows, error)
- func (m *MockDBClient) QueryRow(query string, args ...any) *sql.Row
- func (m *MockDBClient) QueryRowContext(context context.Context, query string, args ...any) *sql.Row
- type MockLogHandler
- type MySQLConfig
- type MySQLOptions
- type Pager
- type PipeLineBool
- type PipeLineGet
- type PipeLineInt
- type PipeLineSlice
- type PipeLineString
- type PluginInterfaceEntityFlush
- type PluginInterfaceInitRegistryFromYaml
- type PluginInterfaceValidateEntitySchema
- type PluginInterfaceValidateRegistry
- type PostFlushAction
- type PreparedStmt
- type QueryLoggerSource
- type RedisCache
- type RedisOptions
- type RedisPipeLine
- func (rp *RedisPipeLine) Del(key ...string)
- func (rp *RedisPipeLine) Exec(ctx Context)
- func (rp *RedisPipeLine) Expire(key string, expiration time.Duration) *PipeLineBool
- func (rp *RedisPipeLine) Get(key string) *PipeLineGet
- func (rp *RedisPipeLine) HDel(key string, values ...string)
- func (rp *RedisPipeLine) HIncrBy(key, field string, incr int64) *PipeLineInt
- func (rp *RedisPipeLine) HSet(key string, values ...any)
- func (rp *RedisPipeLine) LPush(key string, values ...any)
- func (rp *RedisPipeLine) LRange(key string, start, stop int64) *PipeLineSlice
- func (rp *RedisPipeLine) LSet(key string, index int64, value any)
- func (rp *RedisPipeLine) MSet(pairs ...any)
- func (rp *RedisPipeLine) RPush(key string, values ...any)
- func (rp *RedisPipeLine) SAdd(key string, members ...any)
- func (rp *RedisPipeLine) SRem(key string, members ...any)
- func (rp *RedisPipeLine) Set(key string, value any, expiration time.Duration)
- func (rp *RedisPipeLine) XAdd(stream string, values []string) *PipeLineString
- type RedisPoolConfig
- type Reference
- type ReferenceInterface
- type Registry
- type Rows
- type SQLRow
- type SQLRows
- type TXClient
- type TableSQLSchemaDefinition
- type Where
Constants ¶
View Source
const DefaultPoolCode = "default"
Variables ¶
This section is empty.
Functions ¶
func ConsumeAsyncBuffer ¶ added in v1.4.0
func ConsumeAsyncFlushEvents ¶ added in v1.4.0
func DeleteEntity ¶ added in v1.4.0
func EditEntity ¶ added in v1.4.0
func EditEntityField ¶ added in v1.4.0
func GetByUniqueIndex ¶ added in v1.4.0
func GetEntityField ¶ added in v1.5.0
func GetEntityFieldDefinition ¶ added in v1.5.0
func GetEntityFields ¶ added in v1.5.0
func NewEntityWithID ¶ added in v1.6.0
func SearchIDsWithCount ¶ added in v1.4.0
Types ¶
type AsyncFlushEvents ¶ added in v1.4.0
type AsyncFlushEvents interface {
EntitySchemas() []EntitySchema
EventsCount() uint64
ErrorsCount() uint64
Events(total int) []FlushEvent
Errors(total int, last bool) []FlushEventWithError
TrimEvents(total int)
TrimErrors(total int)
RedilPool() string
RedisList() string
}
func ReadAsyncFlushEvents ¶ added in v1.4.0
func ReadAsyncFlushEvents(ctx Context) []AsyncFlushEvents
type BaseWhere ¶ added in v1.4.0
type BaseWhere struct {
// contains filtered or unexported fields
}
func (*BaseWhere) GetParameters ¶ added in v1.4.0
func (*BaseWhere) SetParameter ¶ added in v1.4.0
func (*BaseWhere) SetParameters ¶ added in v1.4.0
type ColumnSchemaDefinition ¶ added in v1.4.0
type Context ¶ added in v1.4.2
type Context interface {
Context() context.Context
Clone() Context
CloneWithContext(context context.Context) Context
Engine() Engine
Flush() error
FlushAsync() error
ClearFlush()
RedisPipeLine(pool string) *RedisPipeLine
RegisterQueryLogger(handler LogHandler, mysql, redis, local bool)
EnableQueryDebug()
EnableQueryDebugCustom(mysql, redis, local bool)
SetMetaData(key, value string)
GetMetaData() Meta
// contains filtered or unexported methods
}
type DB ¶
type DB interface {
DBBase
Begin(ctx Context) DBTransaction
}
type DBBase ¶ added in v1.4.0
type DBBase interface {
GetConfig() MySQLConfig
GetDBClient() DBClient
SetMockDBClient(mock DBClient)
Prepare(ctx Context, query string) (stmt PreparedStmt, close func())
Exec(ctx Context, query string, args ...any) ExecResult
QueryRow(ctx Context, query Where, toFill ...any) (found bool)
Query(ctx Context, query string, args ...any) (rows Rows, close func())
}
type DBClient ¶ added in v1.4.0
type DBClient interface {
DBClientQuery
}
type DBClientNoTX ¶ added in v1.4.0
type DBClientNoTX interface {
DBClientQuery
Begin() (*sql.Tx, error)
}
type DBClientQuery ¶ added in v1.4.0
type DBClientQuery interface {
Prepare(query string) (*sql.Stmt, error)
Exec(query string, args ...any) (sql.Result, error)
ExecContext(context context.Context, query string, args ...any) (sql.Result, error)
QueryRow(query string, args ...any) *sql.Row
QueryRowContext(context context.Context, query string, args ...any) *sql.Row
Query(query string, args ...any) (*sql.Rows, error)
QueryContext(context context.Context, query string, args ...any) (*sql.Rows, error)
}
type DBTransaction ¶ added in v1.4.0
type Engine ¶
type Engine interface {
NewContext(parent context.Context) Context
DB(code string) DB
LocalCache(code string) LocalCache
Redis(code string) RedisCache
Registry() EngineRegistry
Option(key string) any
}
type EngineRegistry ¶ added in v1.4.0
type EngineRegistry interface {
EntitySchema(entity any) EntitySchema
DBPools() map[string]DB
LocalCachePools() map[string]LocalCache
RedisPools() map[string]RedisCache
Entities() []EntitySchema
Option(key string) any
Enums() map[string][]string
// contains filtered or unexported methods
}
type EngineSetter ¶ added in v1.4.0
type EntityAnonymousIterator ¶ added in v1.4.0
type EntityFlush ¶ added in v1.4.0
type EntityFlush interface {
ID() uint64
Schema() *entitySchema
// contains filtered or unexported methods
}
type EntityFlushedEvent ¶ added in v1.4.0
type EntityFlushedEvent interface {
FlushType() FlushType
}
type EntityIterator ¶ added in v1.4.0
type EntityIterator[E any] interface { Next() bool ID() uint64 Index() int Len() int Entity() *E All() []*E Reset() LoadReference(columns ...string) }
func GetAll ¶ added in v1.4.0
func GetAll[E any](ctx Context) EntityIterator[E]
func GetByIndex ¶ added in v1.4.0
func GetByIndex[E any](ctx Context, indexName string, attributes ...any) EntityIterator[E]
func GetByReference ¶ added in v1.4.0
func GetByReference[E any, I ID](ctx Context, referenceName string, id I) EntityIterator[E]
func Search ¶ added in v1.4.0
func Search[E any](ctx Context, where Where, pager *Pager) EntityIterator[E]
func SearchWithCount ¶ added in v1.4.0
type EntitySchema ¶ added in v1.4.0
type EntitySchema interface {
EntitySchemaShared
DropTable(ctx Context)
TruncateTable(ctx Context)
UpdateSchema(ctx Context)
UpdateSchemaAndTruncateTable(ctx Context)
GetSchemaChanges(ctx Context) (alters []Alter, has bool)
DisableCache(local, redis bool)
NewEntity(ctx Context) any
GetByID(ctx Context, id uint64) (entity any, found bool)
Search(ctx Context, where Where, pager *Pager) EntityAnonymousIterator
SearchWithCount(ctx Context, where Where, pager *Pager) (results EntityAnonymousIterator, totalRows int)
SearchIDs(ctx Context, where Where, pager *Pager) []uint64
SearchIDsWithCount(ctx Context, where Where, pager *Pager) (results []uint64, totalRows int)
IsDirty(ctx Context, id uint64) (oldValues, newValues Bind, hasChanges bool)
Copy(ctx Context, source any) any
EditEntityField(ctx Context, entity any, field string, value any) error
EditEntity(ctx Context, entity any) any
DeleteEntity(ctx Context, entity any)
// contains filtered or unexported methods
}
func GetEntitySchema ¶ added in v1.4.0
func GetEntitySchema[E any](ctx Context) EntitySchema
type EntitySchemaSetter ¶ added in v1.4.0
type EntitySchemaSetter interface {
SetOption(key string, value any)
EntitySchemaShared
}
type EntitySchemaShared ¶ added in v1.4.0
type EntitySchemaShared interface {
}
type EnumValues ¶ added in v1.4.0
type EnumValues interface {
EnumValues() any
}
type ExecResult ¶
type FlushEvent ¶ added in v1.4.0
type FlushEventWithError ¶ added in v1.4.0
type FlushEventWithError struct {
FlushEvent
Error string
}
type IndexSchemaDefinition ¶ added in v1.4.0
type IndexSchemaDefinition struct {
Name string
Unique bool
Duplicated bool
// contains filtered or unexported fields
}
func (*IndexSchemaDefinition) GetColumns ¶ added in v1.4.0
func (ti *IndexSchemaDefinition) GetColumns() []string
func (*IndexSchemaDefinition) SetColumns ¶ added in v1.4.0
func (ti *IndexSchemaDefinition) SetColumns(columns []string)
type LocalCache ¶
type LocalCacheConfig ¶
type LocalCacheConfig interface {
GetCode() string
GetLimit() int
GetSchema() EntitySchema
}
type LocalCacheUsage ¶ added in v1.4.0
type Locker ¶
type Locker struct {
// contains filtered or unexported fields
}
func (*Locker) MustObtain ¶ added in v1.6.1
type LogHandler ¶ added in v1.4.0
type MockDBClient ¶ added in v1.4.0
type MockDBClient struct {
OriginDB DBClient
PrepareMock func(query string) (*sql.Stmt, error)
ExecMock func(query string, args ...any) (sql.Result, error)
ExecContextMock func(context context.Context, query string, args ...any) (sql.Result, error)
QueryRowMock func(query string, args ...any) *sql.Row
QueryRowContextMock func(context context.Context, query string, args ...any) *sql.Row
QueryMock func(query string, args ...any) (*sql.Rows, error)
QueryContextMock func(context context.Context, query string, args ...any) (*sql.Rows, error)
BeginMock func() (*sql.Tx, error)
CommitMock func() error
RollbackMock func() error
}
func (*MockDBClient) ExecContext ¶ added in v1.4.0
func (*MockDBClient) Prepare ¶ added in v1.4.0
func (m *MockDBClient) Prepare(query string) (*sql.Stmt, error)
func (*MockDBClient) QueryContext ¶ added in v1.4.0
func (*MockDBClient) QueryRow ¶ added in v1.4.0
func (m *MockDBClient) QueryRow(query string, args ...any) *sql.Row
func (*MockDBClient) QueryRowContext ¶ added in v1.4.0
type MockLogHandler ¶ added in v1.4.0
func (*MockLogHandler) Clear ¶ added in v1.4.0
func (h *MockLogHandler) Clear()
type MySQLConfig ¶ added in v1.4.0
type MySQLConfig interface {
GetCode() string
GetDatabaseName() string
GetDataSourceURI() string
GetOptions() *MySQLOptions
// contains filtered or unexported methods
}
type MySQLOptions ¶ added in v1.4.0
type Pager ¶
func (*Pager) GetCurrentPage ¶
func (*Pager) GetPageSize ¶
func (*Pager) IncrementPage ¶
func (pager *Pager) IncrementPage()
type PipeLineBool ¶
type PipeLineBool struct {
// contains filtered or unexported fields
}
func (*PipeLineBool) Result ¶
func (c *PipeLineBool) Result() bool
type PipeLineGet ¶
type PipeLineGet struct {
// contains filtered or unexported fields
}
func (*PipeLineGet) Result ¶
func (c *PipeLineGet) Result() (value string, has bool)
type PipeLineInt ¶
type PipeLineInt struct {
// contains filtered or unexported fields
}
func (*PipeLineInt) Result ¶
func (c *PipeLineInt) Result() int64
type PipeLineSlice ¶ added in v1.4.0
type PipeLineSlice struct {
// contains filtered or unexported fields
}
func (*PipeLineSlice) Result ¶ added in v1.4.0
func (c *PipeLineSlice) Result() []string
type PipeLineString ¶
type PipeLineString struct {
// contains filtered or unexported fields
}
func (*PipeLineString) Result ¶
func (c *PipeLineString) Result() string
type PluginInterfaceEntityFlush ¶ added in v1.4.0
type PluginInterfaceEntityFlush interface {
EntityFlush(schema EntitySchema, entity reflect.Value, before, after Bind, engine Engine) (PostFlushAction, error)
}
type PluginInterfaceInitRegistryFromYaml ¶ added in v1.4.0
type PluginInterfaceValidateEntitySchema ¶ added in v1.4.0
type PluginInterfaceValidateEntitySchema interface {
ValidateEntitySchema(schema EntitySchemaSetter) error
}
type PluginInterfaceValidateRegistry ¶ added in v1.4.0
type PluginInterfaceValidateRegistry interface {
ValidateRegistry(engine EngineSetter, registry Registry) error
}
type PostFlushAction ¶ added in v1.4.0
type PostFlushAction func(ctx Context)
type PreparedStmt ¶ added in v1.4.0
type QueryLoggerSource ¶
type QueryLoggerSource int
type RedisCache ¶
type RedisCache interface {
Set(ctx Context, key string, value any, expiration time.Duration)
MSet(ctx Context, pairs ...any)
Del(ctx Context, keys ...string)
HSet(ctx Context, key string, values ...any)
HDel(ctx Context, key string, keys ...string)
GetSet(ctx Context, key string, expiration time.Duration, provider func() any) any
Info(ctx Context, section ...string) string
GetConfig() RedisPoolConfig
Get(ctx Context, key string) (value string, has bool)
Eval(ctx Context, script string, keys []string, args ...any) any
EvalSha(ctx Context, sha1 string, keys []string, args ...any) (res any, exists bool)
SetNX(ctx Context, key string, value any, expiration time.Duration) bool
ScriptExists(ctx Context, sha1 string) bool
ScriptLoad(ctx Context, script string) string
LPush(ctx Context, key string, values ...any) int64
LPop(ctx Context, key string) string
RPush(ctx Context, key string, values ...any) int64
LLen(ctx Context, key string) int64
Exists(ctx Context, keys ...string) int64
Type(ctx Context, key string) string
LRange(ctx Context, key string, start, stop int64) []string
LIndex(ctx Context, key string, index int64) (string, bool)
LSet(ctx Context, key string, index int64, value any)
RPop(ctx Context, key string) (value string, found bool)
BLMove(ctx Context, source, destination, srcPos, destPos string, timeout time.Duration) string
LMove(ctx Context, source, destination, srcPos, destPos string) string
LRem(ctx Context, key string, count int64, value any)
Ltrim(ctx Context, key string, start, stop int64)
HSetNx(ctx Context, key, field string, value any) bool
HMGet(ctx Context, key string, fields ...string) map[string]any
HGetAll(ctx Context, key string) map[string]string
HGet(ctx Context, key, field string) (value string, has bool)
HLen(ctx Context, key string) int64
HIncrBy(ctx Context, key, field string, incr int64) int64
IncrBy(ctx Context, key string, incr int64) int64
Incr(ctx Context, key string) int64
IncrWithExpire(ctx Context, key string, expire time.Duration) int64
Expire(ctx Context, key string, expiration time.Duration) bool
ZAdd(ctx Context, key string, members ...redis.Z) int64
ZRevRange(ctx Context, key string, start, stop int64) []string
ZRevRangeWithScores(ctx Context, key string, start, stop int64) []redis.Z
ZRangeWithScores(ctx Context, key string, start, stop int64) []redis.Z
ZCard(ctx Context, key string) int64
ZCount(ctx Context, key string, min, max string) int64
ZScore(ctx Context, key, member string) float64
MGet(ctx Context, keys ...string) []any
SAdd(ctx Context, key string, members ...any) int64
SMembers(ctx Context, key string) []string
SIsMember(ctx Context, key string, member any) bool
SCard(ctx Context, key string) int64
SPop(ctx Context, key string) (string, bool)
SPopN(ctx Context, key string, max int64) []string
XTrim(ctx Context, stream string, maxLen int64) (deleted int64)
XRange(ctx Context, stream, start, stop string, count int64) []redis.XMessage
XRevRange(ctx Context, stream, start, stop string, count int64) []redis.XMessage
XInfoStream(ctx Context, stream string) *redis.XInfoStream
XInfoGroups(ctx Context, stream string) []redis.XInfoGroup
XGroupCreate(ctx Context, stream, group, start string) (key string, exists bool)
XGroupCreateMkStream(ctx Context, stream, group, start string) (key string, exists bool)
XGroupDestroy(ctx Context, stream, group string) int64
XRead(ctx Context, a *redis.XReadArgs) []redis.XStream
XDel(ctx Context, stream string, ids ...string) int64
XGroupDelConsumer(ctx Context, stream, group, consumer string) int64
XReadGroup(ctx Context, a *redis.XReadGroupArgs) (streams []redis.XStream)
XPending(ctx Context, stream, group string) *redis.XPending
XPendingExt(ctx Context, a *redis.XPendingExtArgs) []redis.XPendingExt
XLen(ctx Context, stream string) int64
XClaim(ctx Context, a *redis.XClaimArgs) []redis.XMessage
XClaimJustID(ctx Context, a *redis.XClaimArgs) []string
XAck(ctx Context, stream, group string, ids ...string) int64
FlushAll(ctx Context)
FlushDB(ctx Context)
GetLocker() *Locker
Process(ctx Context, cmd redis.Cmder) error
GetCode() string
}
type RedisOptions ¶ added in v1.4.0
type RedisPipeLine ¶
type RedisPipeLine struct {
// contains filtered or unexported fields
}
func (*RedisPipeLine) Del ¶
func (rp *RedisPipeLine) Del(key ...string)
func (*RedisPipeLine) Exec ¶
func (rp *RedisPipeLine) Exec(ctx Context)
func (*RedisPipeLine) Expire ¶
func (rp *RedisPipeLine) Expire(key string, expiration time.Duration) *PipeLineBool
func (*RedisPipeLine) Get ¶
func (rp *RedisPipeLine) Get(key string) *PipeLineGet
func (*RedisPipeLine) HDel ¶
func (rp *RedisPipeLine) HDel(key string, values ...string)
func (*RedisPipeLine) HIncrBy ¶
func (rp *RedisPipeLine) HIncrBy(key, field string, incr int64) *PipeLineInt
func (*RedisPipeLine) HSet ¶
func (rp *RedisPipeLine) HSet(key string, values ...any)
func (*RedisPipeLine) LPush ¶ added in v1.4.0
func (rp *RedisPipeLine) LPush(key string, values ...any)
func (*RedisPipeLine) LRange ¶ added in v1.4.0
func (rp *RedisPipeLine) LRange(key string, start, stop int64) *PipeLineSlice
func (*RedisPipeLine) LSet ¶ added in v1.4.0
func (rp *RedisPipeLine) LSet(key string, index int64, value any)
func (*RedisPipeLine) MSet ¶ added in v1.4.0
func (rp *RedisPipeLine) MSet(pairs ...any)
func (*RedisPipeLine) RPush ¶ added in v1.4.0
func (rp *RedisPipeLine) RPush(key string, values ...any)
func (*RedisPipeLine) SAdd ¶ added in v1.4.0
func (rp *RedisPipeLine) SAdd(key string, members ...any)
func (*RedisPipeLine) SRem ¶ added in v1.4.0
func (rp *RedisPipeLine) SRem(key string, members ...any)
func (*RedisPipeLine) Set ¶
func (rp *RedisPipeLine) Set(key string, value any, expiration time.Duration)
func (*RedisPipeLine) XAdd ¶
func (rp *RedisPipeLine) XAdd(stream string, values []string) *PipeLineString
type RedisPoolConfig ¶ added in v1.3.0
type Reference ¶ added in v1.4.0
func (Reference[E]) Schema ¶ added in v1.5.0
func (r Reference[E]) Schema(ctx Context) EntitySchema
type ReferenceInterface ¶ added in v1.5.0
type ReferenceInterface interface {
IDGetter
Schema(ctx Context) EntitySchema
// contains filtered or unexported methods
}
type Registry ¶
type Registry interface {
Validate() (Engine, error)
RegisterEntity(entity ...any)
RegisterPlugin(plugin ...any)
RegisterMySQL(dataSourceName string, poolCode string, poolOptions *MySQLOptions)
RegisterLocalCache(code string, limit int)
RegisterRedis(address string, db int, poolCode string, options *RedisOptions)
InitByYaml(yaml any) error
SetOption(key string, value any)
}
func NewRegistry ¶ added in v1.2.7
func NewRegistry() Registry
type TXClient ¶ added in v1.4.0
type TXClient interface {
DBClientQuery
}
type TableSQLSchemaDefinition ¶ added in v1.4.0
type TableSQLSchemaDefinition struct {
EntitySchema EntitySchema
EntityColumns []*ColumnSchemaDefinition
EntityIndexes []*IndexSchemaDefinition
DBTableColumns []*ColumnSchemaDefinition
DBIndexes []*IndexSchemaDefinition
DBCreateSchema string
DBEncoding string
Engine string
PreAlters []Alter
PostAlters []Alter
// contains filtered or unexported fields
}
func (*TableSQLSchemaDefinition) CreateTableSQL ¶ added in v1.4.0
func (td *TableSQLSchemaDefinition) CreateTableSQL() string
Source Files
¶
- bind.go
- column_setter.go
- copy.go
- db.go
- edit_entity_field.go
- editable_entity.go
- engine.go
- entity_deserialize.go
- entity_iterator.go
- entity_schema.go
- enum.go
- flush.go
- flush_async_buffer.go
- flush_async_consumer.go
- get_all.go
- get_by_id.go
- get_by_ids.go
- get_by_index.go
- get_by_reference.go
- get_by_unique_index.go
- get_entity_field.go
- local_cache.go
- locker.go
- log_table.go
- orm.go
- pager.go
- plugin.go
- query_logger.go
- read_flush_async_events.go
- redis_cache.go
- redis_pipeline.go
- reference.go
- registry.go
- schema.go
- search.go
- test.go
- utils.go
- where.go
- yaml_loader.go
Click to show internal directories.
Click to hide internal directories.