Created
April 16, 2019 23:51
-
-
Save freb/4500cb5258abe2e4740511743160e857 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- /* map from db type to non-null protobuf go type */ -}} | |
{{- $pbTypes := makeMap "bigint" "int64" "boolean" "bool" "character varying" "string" "character" "string" "date" "*timestamp.Timestamp" "integer" "int64" "smallint" "int32" "text" "string" "timestamp with time zone" "timestamp.Timestamp" "timestamptz" "*timestamp.Timestamp" "tsvector" "string" "varchar" "string" "uuid" "string" "bytea" "[]byte" "jsonb" "string" "action_type" "ActionType" "project_type" "ProjectType" "stage_type" "StageType" "tag_type" "TagType" "user_assoc_type" "UserAssocType" -}} | |
{{- /* map from db type to null protobuf go type */}} | |
{{- $pbNullTypes := makeMap "bigint" "*wrappers.Int64Value" "boolean" "*wrappers.BoolValue" "character varying" "*wrappers.StringValue" "date" "*timestamp.Timestamp" "integer" "*wrappers.Int64Value" "jsonb" "*wrappers.StringValue" "text" "*wrappers.StringValue" "timestamp with time zone" " *timestamp.Timestamp" "timestamptz" "*timestamp.Timestamp" "uuid" "*wrappers.StringValue"}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment