tlog.app/go/tlog@v0.23.1/ext/tlclick/click2.go (about) 1 package tlclick 2 3 import ( 4 "context" 5 "io" 6 7 "github.com/ClickHouse/ch-go/chpool" 8 ) 9 10 type ( 11 Click struct { 12 pool *chpool.Pool 13 } 14 ) 15 16 func New(pool *chpool.Pool) *Click { 17 return &Click{pool: pool} 18 } 19 20 func (d *Click) Write(p []byte) (int, error) { 21 return len(p), nil 22 } 23 24 func (d *Click) Query(ctx context.Context, w io.Writer, ts int64, q string) error { return nil } 25 26 func (d *Click) CreateTables(ctx context.Context) error { return nil }