pub enum PublicationChange {
Create(Publication),
Drop {
name: Identifier,
},
Replace {
from: Publication,
to: Publication,
},
AddTable {
publication: Identifier,
table: PublishedTable,
},
DropTable {
publication: Identifier,
qname: QualifiedName,
},
SetTable {
publication: Identifier,
table: PublishedTable,
},
AddSchema {
publication: Identifier,
schema: Identifier,
},
DropSchema {
publication: Identifier,
schema: Identifier,
},
SetPublish {
publication: Identifier,
kinds: PublishKinds,
},
SetViaRoot {
publication: Identifier,
value: bool,
},
CommentOn {
name: Identifier,
comment: Option<String>,
},
}Expand description
A structural change to a single publication.
Variants§
Create(Publication)
CREATE PUBLICATION ...
Drop
DROP PUBLICATION ... — destructive.
Fields
name: IdentifierPublication name.
Replace
DROP PUBLICATION old; CREATE PUBLICATION new; — destructive; used
when the publication’s scope mode switches (AllTables ↔ Selective).
Fields
from: PublicationThe publication as it exists in the target.
to: PublicationThe publication as it should exist in the source.
AddTable
ALTER PUBLICATION p ADD TABLE x [(cols)] [WHERE (filter)]
DropTable
ALTER PUBLICATION p DROP TABLE x
Fields
publication: IdentifierPublication name.
qname: QualifiedNameQualified name of the table to drop.
SetTable
ALTER PUBLICATION p SET TABLE x (cols) WHERE (filter)
Fields
publication: IdentifierPublication name.
table: PublishedTableThe desired table entry state.
AddSchema
ALTER PUBLICATION p ADD TABLES IN SCHEMA s (PG15+)
DropSchema
ALTER PUBLICATION p DROP TABLES IN SCHEMA s (PG15+)
SetPublish
ALTER PUBLICATION p SET (publish = '...')
SetViaRoot
ALTER PUBLICATION p SET (publish_via_partition_root = ...)
CommentOn
COMMENT ON PUBLICATION p IS '...'
Fields
name: IdentifierPublication name.
Trait Implementations§
Source§impl Clone for PublicationChange
impl Clone for PublicationChange
Source§fn clone(&self) -> PublicationChange
fn clone(&self) -> PublicationChange
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PublicationChange
impl Debug for PublicationChange
Source§impl<'de> Deserialize<'de> for PublicationChange
impl<'de> Deserialize<'de> for PublicationChange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PublicationChange
Source§impl PartialEq for PublicationChange
impl PartialEq for PublicationChange
Source§fn eq(&self, other: &PublicationChange) -> bool
fn eq(&self, other: &PublicationChange) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PublicationChange
impl Serialize for PublicationChange
impl StructuralPartialEq for PublicationChange
Auto Trait Implementations§
impl Freeze for PublicationChange
impl RefUnwindSafe for PublicationChange
impl Send for PublicationChange
impl Sync for PublicationChange
impl Unpin for PublicationChange
impl UnsafeUnpin for PublicationChange
impl UnwindSafe for PublicationChange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more