MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / deleteStale

Function deleteStale

cli/cmd/sync_v3.go:813–829  ·  view source on GitHub ↗
(client safeWriteClient, tables map[string]bool, sourceName string, syncTime time.Time)

Source from the content-addressed store, hash-verified

811}
812
813func deleteStale(client safeWriteClient, tables map[string]bool, sourceName string, syncTime time.Time) error {
814 for tableName := range tables {
815 if err := client.Send(&plugin.Write_Request{
816 Message: &plugin.Write_Request_Delete{
817 Delete: &plugin.Write_MessageDeleteStale{
818 SourceName: sourceName,
819 SyncTime: timestamppb.New(syncTime),
820 TableName: tableName,
821 },
822 },
823 }); err != nil {
824 return err
825 }
826 }
827
828 return nil
829}
830
831// createTableNameSchema creates a minimal Arrow schema containing only table metadata
832// This schema can be processed through the same transformation pipeline as MigrateTable

Callers 1

syncConnectionV3Function · 0.85

Calls 1

SendMethod · 0.45

Tested by

no test coverage detected