Skip to content

Commit

Permalink
update doc/SortColumnByGormModelFile
Browse files Browse the repository at this point in the history
  • Loading branch information
nakatsu-kouki committed Jun 12, 2024
1 parent e60fd9f commit 46c3fd3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/DOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ MergeMetadataIntoTablesでは、FetchColumnMetadataとFetchTableMetadataから

#### SortColumnByGormModelFile (optional)

SortColumnByGormModelFileでは指定されたディレクトリ(複数可)内のファイル(複数可)に宣言されたgormのmodelを読み込み、そのモデルのカラム順になるようにカラムをソートする。宣言されてないカラムはソートされたカラムの後に追加される。また、ファイルがないテーブルのカラムはソートされない。

ファイル名はテーブル名と同じでないと読み取ることができない。また、ファイルには一つのモデルしか書けないので、注意すること。
SortColumnByGormModelFileでは指定されたディレクトリ(複数可)内のファイル(複数可)に宣言されたgormのmodel(複数可)を読み込み、そのモデルのカラム順になるようにカラムをソートする。宣言されてないカラムはソートされたカラムの後に追加される。また、ファイルがないテーブルのカラムはソートされない。

### consumer(データの表示器)

Expand Down

0 comments on commit 46c3fd3

Please # to comment.