MCPcopy Create free account
hub / github.com/apecloud/myduckserver / Release

Method Release

flightsqlserver/sql_batch_reader.go:237–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235}
236
237func (r *SqlBatchReader) Release() {
238 // debug.Assert(atomic.LoadInt64(&r.refCount) > 0, "too many releases")
239
240 if atomic.AddInt64(&r.refCount, -1) == 0 {
241 r.rows.Close()
242 r.rows, r.schema, r.rowdest = nil, nil, nil
243 r.bldr.Release()
244 r.bldr = nil
245 if r.record != nil {
246 r.record.Release()
247 r.record = nil
248 }
249 }
250}
251func (r *SqlBatchReader) Schema() *arrow.Schema { return r.schema }
252
253func (r *SqlBatchReader) Record() arrow.Record { return r.record }

Callers 7

DoGetCatalogsMethod · 0.45
DoGetDBSchemasMethod · 0.45
getParamsForStatementFunction · 0.45
NextMethod · 0.45
GetTypeInfoResultFunction · 0.45

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected