refactor(postgres): make better use of traits to improve protocol handling

This commit is contained in:
Austin Bonander
2024-08-17 04:54:40 -07:00
parent 9b3808b2d5
commit 53766e4659
40 changed files with 1252 additions and 693 deletions

View File

@@ -17,12 +17,6 @@ pub struct Oid(
pub u32,
);
impl Oid {
pub(crate) fn incr_one(&mut self) {
self.0 = self.0.wrapping_add(1);
}
}
impl Type<Postgres> for Oid {
fn type_info() -> PgTypeInfo {
PgTypeInfo::OID