Post

omo
omo@k_omotani·
./migrationsとかでマイグレーションファイル置いといて、sqlc.ymlで「schema: "./migrations/"」って書けば別で書く必要ないのね。
日本語
1
0
2
328
omo
omo@k_omotani·
#handling-sql-migrations" target="_blank" rel="nofollow noopener">docs.sqlc.dev/en/stable/howt…
ZXX
1
0
0
167
omo
omo@k_omotani·
sqlcのschemaってどういう仕組みになってるんだろ?generateするたびに内部的にmigration実行してDB構築してるのかな?
日本語
1
0
1
149
sqlc
sqlc@sqlcdev·
@k_omotani Yes, sqlc builds up a catalog from your DDL statements each time it runs.
English
1
0
1
86
omo
omo@k_omotani·
@sqlcdev thx! So as I add more files, the generate command slows down?
English
1
0
0
34
sqlc
sqlc@sqlcdev·
@k_omotani If you add more schema update statements, sqlc will have to do more work. But it shouldn't be perceptible because the extra work is so small relative to everything else that sqlc does.
English
1
0
1
101
omo
omo@k_omotani·
@sqlcdev Right! Thank you for the advice.
English
0
0
0
20
Paylaş