├── .clippy.toml ├── .github └── workflows │ └── rust.yml ├── .gitignore ├── CLI.md ├── Cargo.toml ├── Dbdbgen.md ├── DbdbgenTutorial.md ├── Download.md ├── LICENSE ├── README.md ├── SchemaGen.md ├── Template.md ├── TemplateAdvanced.md ├── benches └── benchmark.rs ├── dbdbgen ├── Cargo.toml ├── dbdbgen.libsonnet └── src │ ├── bin │ └── dbdbgen.rs │ ├── cli.rs │ ├── error.rs │ ├── jsvm.rs │ └── lib.rs ├── dbgen-playground ├── Cargo.toml ├── index.html └── src │ └── lib.rs ├── deny.toml ├── fuzz.sh ├── fuzz ├── .gitignore ├── Cargo.toml ├── corpus │ └── fuzz_target_1 │ │ ├── a.seed │ │ ├── b.seed │ │ ├── c.seed │ │ ├── d.seed │ │ ├── e.seed │ │ ├── f.seed │ │ ├── g.seed │ │ └── h.seed └── fuzz_targets │ └── fuzz_target_1.rs ├── release ├── Dockerfile ├── README.md ├── package.sh ├── playground.sh ├── publish-playground.sh └── release.sh ├── res ├── sysbench │ ├── bulk_insert.sql │ ├── oltp_uniform_mysql.sql │ ├── oltp_uniform_postgresql.sql │ └── oltp_uniform_sqlite3.sql └── tpcc │ ├── README.md │ └── tpcc.jsonnet ├── rustfmt.toml ├── src ├── array.rs ├── bin │ ├── dbgen.rs │ └── dbschemagen.rs ├── bytes.rs ├── cli.rs ├── error.rs ├── eval.rs ├── format.rs ├── functions │ ├── array.rs │ ├── codec.rs │ ├── debug.rs │ ├── mod.rs │ ├── ops.rs │ ├── rand.rs │ ├── string.rs │ └── time.rs ├── lexctr.rs ├── lib.rs ├── number.rs ├── parser.pest ├── parser.rs ├── schemagen_cli.rs ├── span.rs ├── value.rs └── writer.rs └── tests ├── check.rs └── data ├── array ├── flags.json ├── result.1.sql └── template.sql ├── check_eval_result ├── flags.json ├── result.1.sql └── template.sql ├── comment-expr ├── flags.json ├── result.1.sql └── template.sql ├── compress ├── flags.json ├── result-schema.sql ├── result.1.sql.xz └── template.sql ├── csv ├── flags.json ├── result-schema.sql ├── result.1.csv └── template.sql ├── derived-tables ├── flags.json ├── template.sql ├── test-schema-create.sql ├── test.animal-schema.sql ├── test.animal.1.sql ├── test.animal.2.sql ├── test.head-schema.sql ├── test.head.1.sql ├── test.head.2.sql ├── test.limb-schema.sql ├── test.limb.1.sql ├── test.limb.2.sql ├── test.toe-schema.sql ├── test.toe.1.sql └── test.toe.2.sql ├── div-mod ├── flags.json ├── result.1.sql └── template.sql ├── escape-backslash ├── flags.json ├── result-schema.sql ├── result.1.sql └── template.sql ├── expr-in-middle ├── flags.json ├── result-schema.sql ├── result.1.sql └── template.sql ├── file-size ├── a.1000.csv ├── a.1001.csv ├── a.2000.csv ├── a.2001.csv ├── b.1000.csv ├── b.1001.csv ├── b.1002.csv ├── b.2000.csv ├── b.2001.csv ├── b.2002.csv ├── b.2003.csv ├── b.2004.csv ├── b.2005.csv ├── flags.json └── template.sql ├── global-exprs ├── flags.json ├── result-schema.sql ├── result.1.sql └── template.sql ├── headers-csv ├── a-schema.sql ├── a.1.csv ├── a.2.csv ├── b-schema.sql ├── b.1.csv ├── b.2.csv ├── flags.json └── template.sql ├── headers-sql ├── a-schema.sql ├── a.1.sql ├── a.2.sql ├── b-schema.sql ├── b.1.sql ├── b.2.sql ├── flags.json └── template.sql ├── jagged-output ├── flags.json ├── result-schema.sql ├── result.1.sql ├── result.2.sql ├── result.3.sql └── template.sql ├── lazy-array ├── flags.json ├── result.1.csv └── template.sql ├── rand-finite-float ├── flags.json ├── result-schema.sql ├── result.1.sql └── template.sql ├── rand-weighted ├── flags.json ├── result-schema.sql ├── result.1.sql └── template.sql ├── seeded-hc128 ├── flags.json ├── result-schema.sql ├── result.1.sql └── template.sql ├── shuffle-with-restarts ├── flags.json ├── result-schema.sql ├── result.1.sql ├── result.2.sql └── template.sql ├── substring ├── flags.json ├── result.1.sql └── template.sql ├── uuid ├── flags.json ├── result-schema.sql ├── result.1.sql └── template.sql └── zero-children ├── flags.json ├── template.sql ├── test.a-schema.sql ├── test.a.1.sql ├── test.b-schema.sql ├── test.b.1.sql ├── test.c-schema.sql └── test.c.1.sql /.clippy.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/.clippy.toml -------------------------------------------------------------------------------- /.github/workflows/rust.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/.github/workflows/rust.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/.gitignore -------------------------------------------------------------------------------- /CLI.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/CLI.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Dbdbgen.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/Dbdbgen.md -------------------------------------------------------------------------------- /DbdbgenTutorial.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/DbdbgenTutorial.md -------------------------------------------------------------------------------- /Download.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/Download.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/README.md -------------------------------------------------------------------------------- /SchemaGen.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/SchemaGen.md -------------------------------------------------------------------------------- /Template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/Template.md -------------------------------------------------------------------------------- /TemplateAdvanced.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/TemplateAdvanced.md -------------------------------------------------------------------------------- /benches/benchmark.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/benches/benchmark.rs -------------------------------------------------------------------------------- /dbdbgen/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/dbdbgen/Cargo.toml -------------------------------------------------------------------------------- /dbdbgen/dbdbgen.libsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/dbdbgen/dbdbgen.libsonnet -------------------------------------------------------------------------------- /dbdbgen/src/bin/dbdbgen.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/dbdbgen/src/bin/dbdbgen.rs -------------------------------------------------------------------------------- /dbdbgen/src/cli.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/dbdbgen/src/cli.rs -------------------------------------------------------------------------------- /dbdbgen/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/dbdbgen/src/error.rs -------------------------------------------------------------------------------- /dbdbgen/src/jsvm.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/dbdbgen/src/jsvm.rs -------------------------------------------------------------------------------- /dbdbgen/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/dbdbgen/src/lib.rs -------------------------------------------------------------------------------- /dbgen-playground/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/dbgen-playground/Cargo.toml -------------------------------------------------------------------------------- /dbgen-playground/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/dbgen-playground/index.html -------------------------------------------------------------------------------- /dbgen-playground/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/dbgen-playground/src/lib.rs -------------------------------------------------------------------------------- /deny.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/deny.toml -------------------------------------------------------------------------------- /fuzz.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/fuzz.sh -------------------------------------------------------------------------------- /fuzz/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/fuzz/.gitignore -------------------------------------------------------------------------------- /fuzz/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/fuzz/Cargo.toml -------------------------------------------------------------------------------- /fuzz/corpus/fuzz_target_1/a.seed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/fuzz/corpus/fuzz_target_1/a.seed -------------------------------------------------------------------------------- /fuzz/corpus/fuzz_target_1/b.seed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/fuzz/corpus/fuzz_target_1/b.seed -------------------------------------------------------------------------------- /fuzz/corpus/fuzz_target_1/c.seed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/fuzz/corpus/fuzz_target_1/c.seed -------------------------------------------------------------------------------- /fuzz/corpus/fuzz_target_1/d.seed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/fuzz/corpus/fuzz_target_1/d.seed -------------------------------------------------------------------------------- /fuzz/corpus/fuzz_target_1/e.seed: -------------------------------------------------------------------------------- 1 | a^zqe)u_eC2rSpO$D@u_m)+JfVKseOo\create database xyz; -------------------------------------------------------------------------------- /fuzz/corpus/fuzz_target_1/f.seed: -------------------------------------------------------------------------------- 1 | (R7ByrB=s$n2M,MU[xfN^{P`g`pjo398create table x({{5-}}); -------------------------------------------------------------------------------- /fuzz/corpus/fuzz_target_1/g.seed: -------------------------------------------------------------------------------- 1 | wG?d?zosInBxQ+\_y5BJFks80G?449@Xcreate table m({{@}}); -------------------------------------------------------------------------------- /fuzz/corpus/fuzz_target_1/h.seed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/fuzz/corpus/fuzz_target_1/h.seed -------------------------------------------------------------------------------- /fuzz/fuzz_targets/fuzz_target_1.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/fuzz/fuzz_targets/fuzz_target_1.rs -------------------------------------------------------------------------------- /release/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/release/Dockerfile -------------------------------------------------------------------------------- /release/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/release/README.md -------------------------------------------------------------------------------- /release/package.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/release/package.sh -------------------------------------------------------------------------------- /release/playground.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/release/playground.sh -------------------------------------------------------------------------------- /release/publish-playground.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/release/publish-playground.sh -------------------------------------------------------------------------------- /release/release.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/release/release.sh -------------------------------------------------------------------------------- /res/sysbench/bulk_insert.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/res/sysbench/bulk_insert.sql -------------------------------------------------------------------------------- /res/sysbench/oltp_uniform_mysql.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/res/sysbench/oltp_uniform_mysql.sql -------------------------------------------------------------------------------- /res/sysbench/oltp_uniform_postgresql.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/res/sysbench/oltp_uniform_postgresql.sql -------------------------------------------------------------------------------- /res/sysbench/oltp_uniform_sqlite3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/res/sysbench/oltp_uniform_sqlite3.sql -------------------------------------------------------------------------------- /res/tpcc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/res/tpcc/README.md -------------------------------------------------------------------------------- /res/tpcc/tpcc.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/res/tpcc/tpcc.jsonnet -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | edition = "2024" 2 | max_width = 120 -------------------------------------------------------------------------------- /src/array.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/array.rs -------------------------------------------------------------------------------- /src/bin/dbgen.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/bin/dbgen.rs -------------------------------------------------------------------------------- /src/bin/dbschemagen.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/bin/dbschemagen.rs -------------------------------------------------------------------------------- /src/bytes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/bytes.rs -------------------------------------------------------------------------------- /src/cli.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/cli.rs -------------------------------------------------------------------------------- /src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/error.rs -------------------------------------------------------------------------------- /src/eval.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/eval.rs -------------------------------------------------------------------------------- /src/format.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/format.rs -------------------------------------------------------------------------------- /src/functions/array.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/functions/array.rs -------------------------------------------------------------------------------- /src/functions/codec.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/functions/codec.rs -------------------------------------------------------------------------------- /src/functions/debug.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/functions/debug.rs -------------------------------------------------------------------------------- /src/functions/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/functions/mod.rs -------------------------------------------------------------------------------- /src/functions/ops.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/functions/ops.rs -------------------------------------------------------------------------------- /src/functions/rand.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/functions/rand.rs -------------------------------------------------------------------------------- /src/functions/string.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/functions/string.rs -------------------------------------------------------------------------------- /src/functions/time.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/functions/time.rs -------------------------------------------------------------------------------- /src/lexctr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/lexctr.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/number.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/number.rs -------------------------------------------------------------------------------- /src/parser.pest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/parser.pest -------------------------------------------------------------------------------- /src/parser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/parser.rs -------------------------------------------------------------------------------- /src/schemagen_cli.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/schemagen_cli.rs -------------------------------------------------------------------------------- /src/span.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/span.rs -------------------------------------------------------------------------------- /src/value.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/value.rs -------------------------------------------------------------------------------- /src/writer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/src/writer.rs -------------------------------------------------------------------------------- /tests/check.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/check.rs -------------------------------------------------------------------------------- /tests/data/array/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/array/flags.json -------------------------------------------------------------------------------- /tests/data/array/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/array/result.1.sql -------------------------------------------------------------------------------- /tests/data/array/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/array/template.sql -------------------------------------------------------------------------------- /tests/data/check_eval_result/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/check_eval_result/flags.json -------------------------------------------------------------------------------- /tests/data/check_eval_result/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/check_eval_result/result.1.sql -------------------------------------------------------------------------------- /tests/data/check_eval_result/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/check_eval_result/template.sql -------------------------------------------------------------------------------- /tests/data/comment-expr/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/comment-expr/flags.json -------------------------------------------------------------------------------- /tests/data/comment-expr/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/comment-expr/result.1.sql -------------------------------------------------------------------------------- /tests/data/comment-expr/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/comment-expr/template.sql -------------------------------------------------------------------------------- /tests/data/compress/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/compress/flags.json -------------------------------------------------------------------------------- /tests/data/compress/result-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE result (); -------------------------------------------------------------------------------- /tests/data/compress/result.1.sql.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/compress/result.1.sql.xz -------------------------------------------------------------------------------- /tests/data/compress/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/compress/template.sql -------------------------------------------------------------------------------- /tests/data/csv/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/csv/flags.json -------------------------------------------------------------------------------- /tests/data/csv/result-schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/csv/result-schema.sql -------------------------------------------------------------------------------- /tests/data/csv/result.1.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/csv/result.1.csv -------------------------------------------------------------------------------- /tests/data/csv/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/csv/template.sql -------------------------------------------------------------------------------- /tests/data/derived-tables/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/derived-tables/flags.json -------------------------------------------------------------------------------- /tests/data/derived-tables/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/derived-tables/template.sql -------------------------------------------------------------------------------- /tests/data/derived-tables/test-schema-create.sql: -------------------------------------------------------------------------------- 1 | CREATE SCHEMA test; 2 | -------------------------------------------------------------------------------- /tests/data/derived-tables/test.animal-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE animal (); 2 | 3 | -------------------------------------------------------------------------------- /tests/data/derived-tables/test.animal.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/derived-tables/test.animal.1.sql -------------------------------------------------------------------------------- /tests/data/derived-tables/test.animal.2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/derived-tables/test.animal.2.sql -------------------------------------------------------------------------------- /tests/data/derived-tables/test.head-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE head (); 2 | -------------------------------------------------------------------------------- /tests/data/derived-tables/test.head.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/derived-tables/test.head.1.sql -------------------------------------------------------------------------------- /tests/data/derived-tables/test.head.2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/derived-tables/test.head.2.sql -------------------------------------------------------------------------------- /tests/data/derived-tables/test.limb-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE limb (); 2 | 3 | -------------------------------------------------------------------------------- /tests/data/derived-tables/test.limb.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/derived-tables/test.limb.1.sql -------------------------------------------------------------------------------- /tests/data/derived-tables/test.limb.2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/derived-tables/test.limb.2.sql -------------------------------------------------------------------------------- /tests/data/derived-tables/test.toe-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE toe (); 2 | 3 | -------------------------------------------------------------------------------- /tests/data/derived-tables/test.toe.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/derived-tables/test.toe.1.sql -------------------------------------------------------------------------------- /tests/data/derived-tables/test.toe.2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/derived-tables/test.toe.2.sql -------------------------------------------------------------------------------- /tests/data/div-mod/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/div-mod/flags.json -------------------------------------------------------------------------------- /tests/data/div-mod/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/div-mod/result.1.sql -------------------------------------------------------------------------------- /tests/data/div-mod/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/div-mod/template.sql -------------------------------------------------------------------------------- /tests/data/escape-backslash/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/escape-backslash/flags.json -------------------------------------------------------------------------------- /tests/data/escape-backslash/result-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE result (); 2 | -------------------------------------------------------------------------------- /tests/data/escape-backslash/result.1.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO result VALUES 2 | ('\\'); 3 | -------------------------------------------------------------------------------- /tests/data/escape-backslash/template.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE result ( 2 | {{ '\' }} 3 | ); 4 | -------------------------------------------------------------------------------- /tests/data/expr-in-middle/flags.json: -------------------------------------------------------------------------------- 1 | { 2 | "inserts_count": 1 3 | } 4 | -------------------------------------------------------------------------------- /tests/data/expr-in-middle/result-schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/expr-in-middle/result-schema.sql -------------------------------------------------------------------------------- /tests/data/expr-in-middle/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/expr-in-middle/result.1.sql -------------------------------------------------------------------------------- /tests/data/expr-in-middle/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/expr-in-middle/template.sql -------------------------------------------------------------------------------- /tests/data/file-size/a.1000.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/a.1000.csv -------------------------------------------------------------------------------- /tests/data/file-size/a.1001.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/a.1001.csv -------------------------------------------------------------------------------- /tests/data/file-size/a.2000.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/a.2000.csv -------------------------------------------------------------------------------- /tests/data/file-size/a.2001.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/a.2001.csv -------------------------------------------------------------------------------- /tests/data/file-size/b.1000.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/b.1000.csv -------------------------------------------------------------------------------- /tests/data/file-size/b.1001.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/b.1001.csv -------------------------------------------------------------------------------- /tests/data/file-size/b.1002.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/b.1002.csv -------------------------------------------------------------------------------- /tests/data/file-size/b.2000.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/b.2000.csv -------------------------------------------------------------------------------- /tests/data/file-size/b.2001.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/b.2001.csv -------------------------------------------------------------------------------- /tests/data/file-size/b.2002.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/b.2002.csv -------------------------------------------------------------------------------- /tests/data/file-size/b.2003.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/b.2003.csv -------------------------------------------------------------------------------- /tests/data/file-size/b.2004.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/b.2004.csv -------------------------------------------------------------------------------- /tests/data/file-size/b.2005.csv: -------------------------------------------------------------------------------- 1 | "c1","c2" 2 | -------------------------------------------------------------------------------- /tests/data/file-size/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/flags.json -------------------------------------------------------------------------------- /tests/data/file-size/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/file-size/template.sql -------------------------------------------------------------------------------- /tests/data/global-exprs/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/global-exprs/flags.json -------------------------------------------------------------------------------- /tests/data/global-exprs/result-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE result (); 2 | -------------------------------------------------------------------------------- /tests/data/global-exprs/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/global-exprs/result.1.sql -------------------------------------------------------------------------------- /tests/data/global-exprs/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/global-exprs/template.sql -------------------------------------------------------------------------------- /tests/data/headers-csv/a-schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-csv/a-schema.sql -------------------------------------------------------------------------------- /tests/data/headers-csv/a.1.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-csv/a.1.csv -------------------------------------------------------------------------------- /tests/data/headers-csv/a.2.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-csv/a.2.csv -------------------------------------------------------------------------------- /tests/data/headers-csv/b-schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-csv/b-schema.sql -------------------------------------------------------------------------------- /tests/data/headers-csv/b.1.csv: -------------------------------------------------------------------------------- 1 | "foo" 2 | 1 3 | 2 4 | 3 5 | 4 6 | -------------------------------------------------------------------------------- /tests/data/headers-csv/b.2.csv: -------------------------------------------------------------------------------- 1 | "foo" 2 | 5 3 | 6 4 | 7 5 | 8 6 | -------------------------------------------------------------------------------- /tests/data/headers-csv/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-csv/flags.json -------------------------------------------------------------------------------- /tests/data/headers-csv/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-csv/template.sql -------------------------------------------------------------------------------- /tests/data/headers-sql/a-schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-sql/a-schema.sql -------------------------------------------------------------------------------- /tests/data/headers-sql/a.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-sql/a.1.sql -------------------------------------------------------------------------------- /tests/data/headers-sql/a.2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-sql/a.2.sql -------------------------------------------------------------------------------- /tests/data/headers-sql/b-schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-sql/b-schema.sql -------------------------------------------------------------------------------- /tests/data/headers-sql/b.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-sql/b.1.sql -------------------------------------------------------------------------------- /tests/data/headers-sql/b.2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-sql/b.2.sql -------------------------------------------------------------------------------- /tests/data/headers-sql/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-sql/flags.json -------------------------------------------------------------------------------- /tests/data/headers-sql/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/headers-sql/template.sql -------------------------------------------------------------------------------- /tests/data/jagged-output/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/jagged-output/flags.json -------------------------------------------------------------------------------- /tests/data/jagged-output/result-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE result (); 2 | -------------------------------------------------------------------------------- /tests/data/jagged-output/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/jagged-output/result.1.sql -------------------------------------------------------------------------------- /tests/data/jagged-output/result.2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/jagged-output/result.2.sql -------------------------------------------------------------------------------- /tests/data/jagged-output/result.3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/jagged-output/result.3.sql -------------------------------------------------------------------------------- /tests/data/jagged-output/template.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE result ({{ rownum }}); 2 | -------------------------------------------------------------------------------- /tests/data/lazy-array/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/lazy-array/flags.json -------------------------------------------------------------------------------- /tests/data/lazy-array/result.1.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/lazy-array/result.1.csv -------------------------------------------------------------------------------- /tests/data/lazy-array/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/lazy-array/template.sql -------------------------------------------------------------------------------- /tests/data/rand-finite-float/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/rand-finite-float/flags.json -------------------------------------------------------------------------------- /tests/data/rand-finite-float/result-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE result (); 2 | -------------------------------------------------------------------------------- /tests/data/rand-finite-float/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/rand-finite-float/result.1.sql -------------------------------------------------------------------------------- /tests/data/rand-finite-float/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/rand-finite-float/template.sql -------------------------------------------------------------------------------- /tests/data/rand-weighted/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/rand-weighted/flags.json -------------------------------------------------------------------------------- /tests/data/rand-weighted/result-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE result (); 2 | -------------------------------------------------------------------------------- /tests/data/rand-weighted/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/rand-weighted/result.1.sql -------------------------------------------------------------------------------- /tests/data/rand-weighted/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/rand-weighted/template.sql -------------------------------------------------------------------------------- /tests/data/seeded-hc128/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/seeded-hc128/flags.json -------------------------------------------------------------------------------- /tests/data/seeded-hc128/result-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE result (); 2 | -------------------------------------------------------------------------------- /tests/data/seeded-hc128/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/seeded-hc128/result.1.sql -------------------------------------------------------------------------------- /tests/data/seeded-hc128/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/seeded-hc128/template.sql -------------------------------------------------------------------------------- /tests/data/shuffle-with-restarts/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/shuffle-with-restarts/flags.json -------------------------------------------------------------------------------- /tests/data/shuffle-with-restarts/result-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE result (); 2 | -------------------------------------------------------------------------------- /tests/data/shuffle-with-restarts/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/shuffle-with-restarts/result.1.sql -------------------------------------------------------------------------------- /tests/data/shuffle-with-restarts/result.2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/shuffle-with-restarts/result.2.sql -------------------------------------------------------------------------------- /tests/data/shuffle-with-restarts/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/shuffle-with-restarts/template.sql -------------------------------------------------------------------------------- /tests/data/substring/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/substring/flags.json -------------------------------------------------------------------------------- /tests/data/substring/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/substring/result.1.sql -------------------------------------------------------------------------------- /tests/data/substring/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/substring/template.sql -------------------------------------------------------------------------------- /tests/data/uuid/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/uuid/flags.json -------------------------------------------------------------------------------- /tests/data/uuid/result-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE result (); 2 | -------------------------------------------------------------------------------- /tests/data/uuid/result.1.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/uuid/result.1.sql -------------------------------------------------------------------------------- /tests/data/uuid/template.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE result ( 2 | {{ rand.uuid() }} 3 | ); 4 | -------------------------------------------------------------------------------- /tests/data/zero-children/flags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/zero-children/flags.json -------------------------------------------------------------------------------- /tests/data/zero-children/template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kennytm/dbgen/HEAD/tests/data/zero-children/template.sql -------------------------------------------------------------------------------- /tests/data/zero-children/test.a-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE a (); 2 | 3 | -------------------------------------------------------------------------------- /tests/data/zero-children/test.a.1.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO a VALUES 2 | (1); 3 | -------------------------------------------------------------------------------- /tests/data/zero-children/test.b-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE b (); 2 | 3 | -------------------------------------------------------------------------------- /tests/data/zero-children/test.b.1.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/zero-children/test.c-schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE c (); 2 | -------------------------------------------------------------------------------- /tests/data/zero-children/test.c.1.sql: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------