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

Ability to customize column sizes for subscription storage #6

Open
mookid8000 opened this issue Nov 14, 2016 · 0 comments
Open

Ability to customize column sizes for subscription storage #6

mookid8000 opened this issue Nov 14, 2016 · 0 comments

Comments

@mookid8000
Copy link
Member

Because column sizes are tricky when they are NVARCHARs and they are used in an index, it should be possible to configure the sizes.

It could look like this:

Configure.With(...)
	.Transport(t => (...))
	.Subscriptions(s => {
		s.StoreInSqlServer(..., "Subscriptions")
			.SetColumnSizes(topicColumnSize: 350, addressColumnSize: 50);
	})
	.Start();

which would then create the schema accordingly.

Moreover, a warning could be logged or an error could be thrown if the schema reflection in Initialize detects that the schema does not match the sizes specified in the Customize... thing.

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

No branches or pull requests

1 participant