Skip to content
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.
/ rust-pgcopy Public archive

Rust encoder for PostgreSQL COPY WITH BINARY format

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

svartalf/rust-pgcopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgcopy

Latest Version Latest Version

Write data into a PostgreSQL COPY WITH BINARY format, somewhat faster way to insert a lot of entries into database that plain text or CSV.

Supported data types

PostgreSQL type Rust equivalent
smallint i16
integer i32
bigint i64
decimal
numeric
real f32
double f64
char varying &str
text &str
bytea &[u8]
timestamp chrono::naive::NaiveDateTime
timestamp with time zone chrono::DateTime
date chrono::Date or chrono::naive::NaiveDate
time chrono::naive::NaiveTime
interval
boolean bool
cidr
inet
macaddr [u8; 6] or eui48::MacAddress
macaddr8 [u8; 6], [u8; 8] or eui48::MacAddress
uuid [u8; 16] or uuid::Uuid
xml
json
jsonb
array

About

Rust encoder for PostgreSQL COPY WITH BINARY format

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published