Skip to content

Add auto create prefix - #192

Merged
harshil-goel merged 1 commit into
mainfrom
harshil/auto_create_prefix
Oct 6, 2026
Merged

harshil-goel merged 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 Outdated
/// (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 Outdated
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())?

@harshil-goel
harshil-goel force-pushed the harshil/auto_create_prefix branch 8 times, most recently from a1793ae to 4851961 Compare October 5, 2026 19:32
@harshil-goel
harshil-goel force-pushed the harshil/auto_create_prefix branch from 4851961 to 918ff33 Compare October 5, 2026 19:47
@harshil-goel
harshil-goel merged commit 15d6969 into main Oct 6, 2026
10 of 18 checks passed
@harshil-goel
harshil-goel deleted the harshil/auto_create_prefix branch October 6, 2026 02:21
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