-
ツールをセットアップする。
task setup
-
PostgreSQL サーバーを起動する。
task pg:up
-
DB マイグレーションを実行する。
task dm:run
-
サーバーに接続する。
task pg:psql
-
テーブル一覧を表示する。
testdb=# \dt List of tables Schema | Name | Type | Owner --------+-------------------+-------+---------- public | schema_migrations | table | postgres public | users | table | postgres (2 rows) -
ランダムな UUIDv7 の値を生成する。
testdb=# select uuidv7(); uuidv7 -------------------------------------- 01995687-fd32-779d-a1f3-eb0cee7759d3 (1 row)
satt-dots/pg18-uuidv7-example
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|