🐘
Supabase Table Data Type
🐘テーブルのデータ型が何か知りたい
Supabaseを開発で使っているのですが、公式を見てもデータ型の種類が記載されているのが見つからなかった???
なので、自分で確認できるリファレンス(参照)を作ろうと思った。
[Supabase Data Type]
| データ型 | 説明 |
|---|---|
| int2 | Singned two-bype integer |
| int4 | Singned four-bype integer |
| int8 | Singned eight-bype integer |
| float4 | Single precision floating-point number(4 bytes) |
| float8 | Single precision floating-point number(8 bytes) |
| numeric | Exact numeric of selectable presion |
| json | Textual JSON data |
| jsonb | Binary JSON data, decomposed |
| text | Variable-length character string |
| verchar | Variable-length character string |
| uuid | Universally unique idntifier |
| date | Calendar date(year, month, day) |
| time | Time of day(no time zone) |
| themes | Time of day, including time zone |
| timestamp | Date and time(no time zone) |
| timestampz | Date and time, including time zone |
| bool | Logical boolean(true/false) |
たくさんありますね。でも普段使うのは、uuid, text, date, int8, boolぐらいですね😅
[PostgreSQL Data Type]
内部で動いている本体はデータ型の種類が多いようだが...
まとめ
今回はSupabaseのデータ型の種類について調べてみました。公式にも実はアコーディオンで隠れているだけで、データ型の種類を記載されている場所ありました💦
すいません。見過ごしてました🙇

Discussion