Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISqlDatabase ¶
type ISqlDatabase interface { Initialize() error GetName() string GetSchema() ISqlSchema RunScript(string, string) error Query(Iterator, Command, ...Parameter) error QuerySingle(Iterator, Command, ...Parameter) error Execute(Command, ...Parameter) (int64, error) ExecuteAtomic(ISqlTransaction, Command, ...Parameter) (int64, error) ExecuteBatch(Command, int64, ...Parameter) (int64, error) InsertSingle(Command, ...Parameter) error InsertSingleAtomic(ISqlTransaction, Command, ...Parameter) error UpdateSingle(Command, ...Parameter) error UpdateSingleAtomic(ISqlTransaction, Command, ...Parameter) error DeleteSingle(Command, ...Parameter) error DeleteSingleAtomic(ISqlTransaction, Command, ...Parameter) error InsertAll(Command, int64, ...Parameter) error Count(Command, ...Parameter) (int, error) WithTransaction(SqlTransactionHandler) error }
type ISqlSchema ¶
type ISqlTransaction ¶
type ISqlTransaction interface {
OnCommit(func())
}
type SqlTransactionHandler ¶
type SqlTransactionHandler func(transaction ISqlTransaction) error
Click to show internal directories.
Click to hide internal directories.