#big-query #macro #proc-macro #define #type #function #generate

macro bigquery-functions-types-macros

proc macros to define BigQuery function types

15 releases

0.1.15 Jun 9, 2024
0.1.14 Mar 21, 2024
0.1.7 Feb 16, 2023
0.1.4 Dec 12, 2022
0.1.3 Oct 24, 2022

#1706 in Procedural macros


Used in bigquery-functions

MIT license

150KB
62 lines

List of BigQuery Standard SQL Functions

This Reference is parsed to generate type definitions.

See output for a list of BiqQuery functions.

Usage

Here's how to process a list of BigQuery functions using Rust. Fist, add the following to Cargo.toml.

[dependencies]
bigquery-functions = "0.1.15"

Then call the function or type as follows.

use bigquery_functions::get_bigquery_function_names;

fn main() {
    let function_names = get_bigquery_function_names();
    println!("function_names: {:?}", function_names)
}

docs.rs is also helpful.

Dependencies

~0.5–1MB
~20K SLoC