pub async fn create_publication(
client: &Client,
db_name: &str,
publication_name: &str,
filter: &ReplicationFilter,
) -> Result<()>Expand description
Create a publication for tables with optional filtering
When table filters are specified, creates a publication for only the filtered tables. Without filters, creates a publication for all tables.
§Arguments
client- Connected client to the databasedb_name- Name of the database (for filtering context)publication_name- Name of the publication to createfilter- Replication filter for table inclusion/exclusion
§Returns
Returns Ok(()) if publication is created or already exists