mirror of
https://github.com/OMGeeky/google_bigquery_v2.git
synced 2026-01-03 10:15:01 +01:00
set query limit
This commit is contained in:
@@ -132,6 +132,13 @@ impl<'a, Table> BigQueryBuilder<'a, Table>
|
||||
|
||||
//region add content
|
||||
|
||||
pub fn set_limit(self, limit: usize) -> Self {
|
||||
Self {
|
||||
limit: Some(limit),
|
||||
..self
|
||||
}
|
||||
}
|
||||
|
||||
fn set_select_fields(self, fields: Vec<String>) -> Result<Self> {
|
||||
//TODO: this method probably does not work since the logic does
|
||||
// not work if (at least the required) fields are not selected
|
||||
|
||||
Reference in New Issue
Block a user