Skip to content

Add auto create prefix - #192

Open
harshil-goel wants to merge 1 commit into
mainfrom
harshil/auto_create_prefix
Open

harshil-goel wants to merge 1 commit into
mainfrom
harshil/auto_create_prefix

Conversation

@harshil-goel

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/emit/ch_ddl.rs
/// (and the future overlay) retarget namespaces + drop strategy without a
/// restart.
/// Prefix derived destination names carry when a namespace sets none
pub const DEFAULT_AUTO_CREATE_PREFIX: &str = "public_";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be default, table might not even be in public schema

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having something like $schema$_ with $$ to escape $ so people can configure $database$_$schema$_$table$ would be nice, that also supports suffixes with $table$_suffix

Comment thread tests/subxact.rs
NamespaceMapping {
target_database: Some("walshadow_test".into()),
auto_create: true,
auto_create_prefix: Some(String::new()),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

difference between None & Some(String::new())?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants