Documentation
¶
Index ¶
- type DB
- func (db *DB) CloseDatabase()
- func (db *DB) ConnectDatabase()
- func (db *DB) DynamicCount(builder *gobuilder.GoBuilder) (int, error)
- func (db *DB) DynamicCreate(builder *gobuilder.GoBuilder) (int, error)
- func (db *DB) DynamicFind(builder *gobuilder.GoBuilder, model any) error
- func (db *DB) DynamicGet(builder *gobuilder.GoBuilder, model any) ([]any, error)
- func (db *DB) DynamicPaginate(builder *gobuilder.GoBuilder, model any) ([]any, error)
- func (db *DB) DynamicUpdate(builder *gobuilder.GoBuilder) error
- func (db *DB) ExistsInTable(builder *gobuilder.GoBuilder) error
- func (db *DB) HardDelete(builder *gobuilder.GoBuilder) error
- func (db *DB) NotExistsInTable(builder *gobuilder.GoBuilder) error
- func (db *DB) QueryExec(builder *gobuilder.GoBuilder) error
- func (db *DB) SoftDelete(builder *gobuilder.GoBuilder) error
- type Kafka
- type Redis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) CloseDatabase ¶
func (db *DB) CloseDatabase()
CloseDatabase method is closing a connection between your app and your db
func (*DB) ConnectDatabase ¶
func (db *DB) ConnectDatabase()
ConnectDatabase is creating a new connection to our database
func (*DB) DynamicCount ¶ added in v1.0.2
DynamicCount: returns the number of data according to the conditions
func (*DB) DynamicCreate ¶
DynamicCreate: the specified values are recorded in the specified table.
func (*DB) DynamicFind ¶ added in v1.0.2
DynamicFind: only renders the first matching record to the p.Model object based on the conditions
func (*DB) DynamicGet ¶ added in v1.0.2
DynamicGet: returns all records it finds
func (*DB) DynamicPaginate ¶ added in v1.0.2
DynamicPaginate: returns all records according to the conditions
func (*DB) DynamicUpdate ¶
DynamicUpdate: the values specified in the table are updated.
func (*DB) ExistsInTable ¶
ExistsInTable: If exists, return "nil".
func (*DB) HardDelete ¶ added in v1.0.2
HardDelete: hard delete the specified id in the specified table.
func (*DB) NotExistsInTable ¶
NotExistsInTable: If not exists, return "nil".
type Kafka ¶
type Kafka struct {
sarama.SyncProducer
}
func (*Kafka) CloseKafka ¶
func (k *Kafka) CloseKafka()
func (*Kafka) ConnectKafka ¶ added in v1.1.1
func (k *Kafka) ConnectKafka()