PostgreSQL Type | PostgreSQL Size | Description | Range | Diesel Type | Rust Type |
---|---|---|---|---|---|
Nullable Types | nullable | Nullable `` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo cp /etc/fstab /etc/fstab.bak | |
# Eschewing Access Times | |
sudo nano /etc/fstab | |
# add this options, make sure they’re all separated by commas and no spaces. | |
noatime,nodiratime | |
# example: UUID=uuid_number / ext4 defaults,noatime,discard,errors=remount-ro 0 1A | |
# TRIM Fit | |
discard |
PostgreSQL Type | Diesel Type | Rust Type | Description | Range | ||
---|---|---|---|---|---|---|
Nullable Types | Nullable<T> | Option<T> | nullable | |||
Numeric Types | ||||||
smallint , int2 |
SmallInt | i16 | signed integer | -32768 to +32767 | ||
integer , int , int4 |
Integer | i32 | signed integer | -2147483648 to +2147483647 | ||
bigint , int8 |
BigInt | [i64](https://doc.rust-la |