MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cpp-samples / MakeSampleRows

Function MakeSampleRows

bigquery/write/single_threaded_write.cc:105–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105bq::storage::v1::ProtoRows MakeSampleRows(int start_id, int count) {
106 bq::storage::v1::ProtoRows rows;
107 for (int id = start_id; id != start_id + count; ++id) {
108 Singers singer;
109 singer.set_singerid(id);
110 singer.set_firstname("first name (" + std::to_string(id) + ")");
111 singer.set_lastname("last name (" + std::to_string(id) + ")");
112 rows.add_serialized_rows(singer.SerializeAsString());
113 }
114 return rows;
115}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected