func()

in tools/mconnect/commands/export/export.go [209:217]


func (c *castExporter) tableExist(ctx context.Context, client *bq.Client) (bool, error) {
	_, err := client.Dataset(c.datasetID).Table(c.tableID).Metadata(ctx)
	if gapiutil.IsErrorWithCode(err, http.StatusNotFound) {
		return false, nil
	} else if err != nil {
		return false, err
	}
	return true, nil
}