Rust How to Bulk Insert Data with sqlx
· One min read
Create the table in Postgres
CREATE TYPE gender AS ENUM('female', 'male', 'unknown');
CREATE TABLE user_info(
email varchar(128) NOT NULL PRIMARY KEY,
name varchar(64) NOT NULL,
gender gender DEFAULT 'unknown',
);