Skip to content

Commit

Permalink
get all
Browse files Browse the repository at this point in the history
  • Loading branch information
latolukasz committed Oct 28, 2023
1 parent 62b56a7 commit dc8751f
Show file tree
Hide file tree
Showing 14 changed files with 103 additions and 91 deletions.
3 changes: 2 additions & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ type Context interface {
Clone() Context
CloneWithContext(ctx context.Context) Context
Engine() Engine
Flush(lazy bool) error
Flush() error
FlushLazy() error
ClearFlush()
RedisPipeLine(pool string) *RedisPipeLine
RegisterQueryLogger(handler LogHandler, mysql, redis, local bool)
Expand Down
8 changes: 6 additions & 2 deletions flush.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ type entitySQLOperations map[FlushType][]EntityFlush
type schemaSQLOperations map[*entitySchema]entitySQLOperations
type sqlOperations map[DB]schemaSQLOperations

func (c *contextImplementation) Flush(lazy bool) error {
return c.flush(lazy)
func (c *contextImplementation) Flush() error {
return c.flush(false)
}

func (c *contextImplementation) FlushLazy() error {
return c.flush(true)
}

func (c *contextImplementation) flush(lazy bool) error {
Expand Down
Loading

0 comments on commit dc8751f

Please sign in to comment.