Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make some fields in replication messages public #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions postgres-protocol/src/message/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ impl LogicalReplicationMessage {

/// A row as it appears in the replication stream
#[derive(Debug)]
pub struct Tuple(Vec<TupleData>);
pub struct Tuple(pub Vec<TupleData>);

impl Tuple {
#[inline]
Expand Down Expand Up @@ -1367,7 +1367,7 @@ pub struct RelationBody {
namespace: Bytes,
name: Bytes,
replica_identity: ReplicaIdentity,
columns: Vec<Column>,
pub columns: Vec<Column>,
}

impl RelationBody {
Expand Down Expand Up @@ -1434,7 +1434,7 @@ impl TypeBody {
#[derive(Debug)]
pub struct InsertBody {
rel_id: u32,
tuple: Tuple,
pub tuple: Tuple,
}

impl InsertBody {
Expand All @@ -1455,9 +1455,9 @@ impl InsertBody {
#[derive(Debug)]
pub struct UpdateBody {
rel_id: u32,
old_tuple: Option<Tuple>,
key_tuple: Option<Tuple>,
new_tuple: Tuple,
pub old_tuple: Option<Tuple>,
pub key_tuple: Option<Tuple>,
pub new_tuple: Tuple,
}

impl UpdateBody {
Expand Down Expand Up @@ -1492,8 +1492,8 @@ impl UpdateBody {
#[derive(Debug)]
pub struct DeleteBody {
rel_id: u32,
old_tuple: Option<Tuple>,
key_tuple: Option<Tuple>,
pub old_tuple: Option<Tuple>,
pub key_tuple: Option<Tuple>,
}

impl DeleteBody {
Expand Down