mirror of
https://github.com/uptrace/go-clickhouse.git
synced 2025-06-08 23:26:11 +02:00
24 lines
356 B
Go
24 lines
356 B
Go
|
package chschema
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"reflect"
|
||
|
)
|
||
|
|
||
|
type Query interface {
|
||
|
QueryAppender
|
||
|
Operation() string
|
||
|
GetModel() Model
|
||
|
GetTableName() string
|
||
|
}
|
||
|
|
||
|
type Model interface {
|
||
|
ScanBlock(*Block) error
|
||
|
}
|
||
|
|
||
|
type AfterScanRowHook interface {
|
||
|
AfterScanRow(context.Context) error
|
||
|
}
|
||
|
|
||
|
var afterScanBlockHookType = reflect.TypeOf((*AfterScanRowHook)(nil)).Elem()
|