feat: 在 Gfdb 接口中添加 GetAll 方法
This commit is contained in:
@@ -436,6 +436,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Gfdb interface {
|
type Gfdb interface {
|
||||||
|
GetAll(ctx context.Context, sql string, args ...any) (gdb.Result, error)
|
||||||
Exec(ctx context.Context, sql string, args ...any) (sql.Result, error)
|
Exec(ctx context.Context, sql string, args ...any) (sql.Result, error)
|
||||||
Model(ctx context.Context, tableNameOrStruct ...any) *model
|
Model(ctx context.Context, tableNameOrStruct ...any) *model
|
||||||
Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) error
|
Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) error
|
||||||
|
|||||||
Reference in New Issue
Block a user