blanton v0.2.2 Blanton.Column
This module that handles columns of table schema.
Link to this section Summary
Functions
Create GoogleApi.BigQuery.V2.Model.TableFieldSchema from Listed map
Create GoogleApi.BigQuery.V2.Model.TableFieldSchema
Link to this section Functions
new(columns)
Specs
new([Map.t()]) :: [GoogleApi.BigQuery.V2.Model.TableFieldSchema.t()]
Create GoogleApi.BigQuery.V2.Model.TableFieldSchema from Listed map
example
new([ %{name: "column1", type: :string, mode: :required}, %{name: "column2", type: :int64, mode: :nullable}, ])
[ %GoogleApi.BigQuery.V2.Model.TableFieldSchema{name: "column1", type: "STRING", mode: "REQUIRED"}, %GoogleApi.BigQuery.V2.Model.TableFieldSchema{name: "column2", type: "INT64", mode: "NULLABLE"} ]
new(name, type, mode, fields)
Specs
new(String.t(), atom(), atom(), nil) :: GoogleApi.BigQuery.V2.Model.TableFieldSchema.t()
new(String.t(), atom(), atom(), list()) :: GoogleApi.BigQuery.V2.Model.TableFieldSchema.t()
new(String.t(), atom(), atom(), list()) :: GoogleApi.BigQuery.V2.Model.TableFieldSchema.t()
Create GoogleApi.BigQuery.V2.Model.TableFieldSchema
example
new("column", :string, :required, [%{name: String.t(), mode: :string, type: :nullable}])
%GoogleApi.BigQuery.V2.Model.TableFieldSchema{ name: "column", type: "STRING", mode: "REQUIRED" fields: [
%GoogleApi.BigQuery.V2.Model.TableFieldSchema{name: "column", type: "STRING", mode: "NULLABLE"}
] }