macro classfromTable extends Annotation with StaticAnnotation
Macro annotation for a BigQuery table.
Generate case classes for a BigQuery table. Note that tableSpec must be a string literal in
the form of project:dataset.table with optional .stripMargin at the end. For example:
@BigQueryType.fromTable("project:dataset.table") class MyRecord
String formatting syntax can be used in tableSpec when additional args are supplied. For
example:
Macro annotation for a BigQuery table.
Generate case classes for a BigQuery table. Note that
tableSpec
must be a string literal in the form ofproject:dataset.table
with optional.stripMargin
at the end. For example:String formatting syntax can be used in
tableSpec
when additionalargs
are supplied. For example:"$LATEST" can be used as a placeholder for table partitions. The latest partition available will be used. For example:
Also generate a companion object with convenience methods.