Versions in this module Expand all Collapse all v1 v1.0.26 Feb 19, 2026 v1.0.25 Feb 19, 2026 Changes in this version + type Connection struct + Read IDatabaseRead + Write IDatabaseWrite + func NewDatabaseReadAndWrite(config databaseConfig.IConfig) (*Connection, error) + type IDatabaseRead interface + Find func(entityPointer interface{}, where map[string]interface{}, table string) response.IResponse + FindPreload func(entityPointer interface{}, where map[string]interface{}, ...) response.IResponse + FindPreloadWitLimitAndPage func(entityPointer interface{}, where map[string]interface{}, ...) response.IResponse + First func(entityPointer interface{}, where map[string]interface{}, table string) response.IResponse + IsAvailable func() bool + Raw func(rawSQL string, entityPointer interface{}, values ...interface{}) response.IResponse + type IDatabaseWrite interface + CommitTransaction func() response.IResponse + Create func(entityPointer interface{}, table string) response.IResponse + CreateOrUpdate func(entityPointer interface{}, where map[string]interface{}, table string) response.IResponse + Delete func(where map[string]interface{}, table string) response.IResponse + Exec func(rawQuery string, values ...interface{}) error + IsAvailable func() bool + RollbackTransaction func() response.IResponse + StartTransaction func() IDatabaseWrite + Update func(entityPointer interface{}, where map[string]interface{}, table string) response.IResponse + type Mock struct + func (m *Mock) CommitTransaction() response.IResponse + func (m *Mock) Create(_ interface{}, _ string) response.IResponse + func (m *Mock) CreateOrUpdate(_ interface{}, _ map[string]interface{}, _ string) response.IResponse + func (m *Mock) Delete(_ map[string]interface{}, _ string) response.IResponse + func (m *Mock) Exec(_ string, _ ...interface{}) error + func (m *Mock) Find(entityPointer interface{}, _ map[string]interface{}, _ string) response.IResponse + func (m *Mock) FindPreload(entityPointer interface{}, _ map[string]interface{}, ...) response.IResponse + func (m *Mock) FindPreloadWitLimitAndPage(entityPointer interface{}, _ map[string]interface{}, ...) response.IResponse + func (m *Mock) First(entityPointer interface{}, _ map[string]interface{}, _ string) response.IResponse + func (m *Mock) IsAvailable() bool + func (m *Mock) Raw(_ string, entityPointer interface{}, _ ...interface{}) response.IResponse + func (m *Mock) RollbackTransaction() response.IResponse + func (m *Mock) StartTransaction() IDatabaseWrite + func (m *Mock) Update(_ interface{}, _ map[string]interface{}, _ string) response.IResponse