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

Add binary for generating dummy tsql files #22

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
6be8b54
fix that always 'TABLES - 1' where generated in test files
LetsMelon Aug 9, 2023
afa8908
generate test files and then bench with them, needs python3 in the path
LetsMelon Aug 9, 2023
c6cbb70
use custom config
LetsMelon Aug 9, 2023
fbe13cd
implement helper function to write a sql comment
LetsMelon Aug 9, 2023
b20e641
replace python script 'generate_big.py' with rust binary 'generate_ts…
LetsMelon Aug 11, 2023
d83d93e
refactor logic to parse cli arguments
LetsMelon Aug 11, 2023
55536d4
add argument '--stdout' to write output to stdout instead saving to a…
LetsMelon Aug 11, 2023
8d7fe80
use stdout option from generate_tsql binary
LetsMelon Aug 11, 2023
14b0a02
use builder pattern to parse all the args
LetsMelon Aug 11, 2023
4b62fd7
replace cryptic with 'write!' macro
LetsMelon Aug 11, 2023
b733123
rename 'TransformTSQL::transform_tsql' with 'TransformTSQL::transform…
LetsMelon Aug 11, 2023
a471c3c
rename 'TransformSQL::transform' with 'TransformSQL::transform_into_sql'
LetsMelon Aug 11, 2023
dbbdffa
move 'tsql::parser::types::TableExtra' to 'tsql::types::TableExtra'
LetsMelon Aug 11, 2023
979e0d9
remove outdated TODO
LetsMelon Aug 14, 2023
18163af
use 'wrapping_{add, mul}' just in case
LetsMelon Aug 14, 2023
e1aac5c
move dummy generation of tables into tsql lib
LetsMelon Aug 14, 2023
4264235
remove cli dependency to binary 'generate_tsql' from library 'tsql' b…
LetsMelon Aug 14, 2023
593da45
add 'cargo-nextest' to step 'taiki-e/install-action'
LetsMelon Aug 19, 2023
3a43ee2
use 'generate_tsql' to generate test files in ci
LetsMelon Aug 19, 2023
f9c569f
added some tests in 'lib/src/parser/types.rs'
LetsMelon Aug 19, 2023
e94d134
build 'generate_tsql' in release mode because this step takes over 2m…
LetsMelon Aug 19, 2023
25ea39f
added some tests in 'lib/src/parser/mod.rs'
LetsMelon Aug 19, 2023
5d9780c
add some tests and documentation for 'get_first_element'
LetsMelon Aug 19, 2023
32a0e8c
added some tests in 'lib/src/generate.rs'
LetsMelon Aug 20, 2023
f2ef7bf
remove generated files from e2e tests. 'cargo bench' already tests wi…
LetsMelon Aug 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- uses: taiki-e/install-action@v2
with:
tool: cargo-binstall,cargo-llvm-cov
tool: cargo-llvm-cov,cargo-nextest

- uses: actions/cache@v3
with:
Expand All @@ -50,13 +50,6 @@ jobs:
- name: Build
run: cargo build --verbose --all-targets --all --all-features

- name: Create test files
working-directory: ./lib/tests/files
continue-on-error: true
run: |
python generate_big.py --name "big_smaller.tsql" --tables 1000 --fields 500
python generate_big.py --name "big_170mb.tsql" --tables 4000 --fields 1000

- name: Test
run: cargo nextest run --all-features --all

Expand Down
Loading