MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / withPluginClient

Function withPluginClient

plugins/destination/sqlite/client/delete_test.go:90–97  ·  view source on GitHub ↗
(ctx context.Context, r *require.Assertions)

Source from the content-addressed store, hash-verified

88}
89
90func withPluginClient(ctx context.Context, r *require.Assertions) *Client {
91 s := &Spec{ConnectionString: ":memory:"}
92 b, err := json.Marshal(s)
93 r.NoError(err)
94 c, err := New(ctx, zerolog.Nop(), b, plugin.NewClientOptions{})
95 r.NoError(err)
96 return c.(*Client)
97}
98
99func valueToArrowRecord(tableName string, value string) arrow.RecordBatch {
100 bldrDeleteMatch := array.NewRecordBuilder(memory.DefaultAllocator, (&schema.Table{

Callers 1

TestDeleteFunction · 0.70

Calls 1

NewFunction · 0.70

Tested by

no test coverage detected