エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Generate Golang struct (model) from Postgres tables
A handy Postgres SQL statement to generate Golang models (structs) for you. WITH models AS ( WITH... A handy Postgres SQL statement to generate Golang models (structs) for you. WITH models AS ( WITH data AS ( SELECT replace(initcap(table_name::text), '_', '') table_name, replace(initcap(column_name::text), '_', '') column_name, CASE data_type WHEN 'timestamp without time zone' THEN 'time.Time' WHEN 'timestamp with time zone' THEN 'time.Time' WHEN 'boolean' THEN 'bool' -- add your own type convert



2015/08/06 リンク