We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2025bf commit 166d038Copy full SHA for 166d038
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "dbgen"
3
-version = "0.3.0"
+version = "0.3.1"
4
authors = ["kennytm <[email protected]>"]
5
edition = "2018"
6
license = "MIT"
src/schemagen_cli.rs
@@ -288,7 +288,7 @@ impl<'a> IndexAppender<'a> {
288
unique_cutoff: f64,
289
is_primary_key: bool,
290
) {
291
- let index_count = self.index_count_distr.sample(rng) as usize;
+ let index_count = (self.index_count_distr.sample(rng) as usize).min(12);
292
let index_set = self
293
.index_distr
294
.sample_iter(&mut rng)
0 commit comments