-
Notifications
You must be signed in to change notification settings - Fork 3
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
Extended functionalities #6
Open
ericchaves
wants to merge
50
commits into
codingconcepts:main
Choose a base branch
from
ericchaves:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
updated gofakeit to v7 added support to gofakeit templates added generator for dates relative to now added rand generator with support for dates, int and float64 added expr generator minor adjustments plus added a section named expertimental to readme explaining the new generators
replaced array search by samber/lo functions added column lookup in relative_date naming adjustments for clarity readme corrections and improvements added column lookup in relative_date renamed relative_date generator for clarity fixed type in rel_date test folder added support for brazilian cpf\cnpj in gen generator
Fixed typo on range partioned tables examples
fixed case for rel_date units
replace govaluate with expr-lang improved tests and clean-up coding
…er naming conventions
…by expr now. added once generator added count_values generator preserving column order when writing csv files fixed bugs on fk generator
count_values assumes current table when table is ommited added exactly once semantic to once generator
minor corrections on README renamed counte_values to map generator renamed internal variables LN, ITN, COUNT, VALUE to row_number, index, count and value
minor README improvements
added helper functions
added predicate to lookup generator
added filter to lookups
added combined config files
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi guys, I`ve been working on a couple of features that extended quite a bit dg capabilities. Those features may require some polishment but they are being battle tested in a project of reasoble size (our database has over 50 tables with some and mixed design of traditional ER databases with some DW/OLAP tables).
In short we added the following:
Go Templates Integration: Integrated Go templates with the gen generator for enhanced templating capabilities.
Range Enhancements: Enhanced the range generator to pick up values from a previous table or from external command (like a query script), enabling the creation of "partitioned files" (multiple files for the same table design but generating dat for different test cenarios).
Brazilian Identifiers: Added functions for generating Brazilian CPF and CNPJ numbers.
File Output Improvements: Preserved the column order when writing files
Combining multiple configs: Support for mutiple config flags making easier to share/reuse configuration files. By informing multiple config we can use a base config to declare tables and use aditional configs to adjust counts or merge testing cenarios.
Fakeit integration: upgraded some libs and integrate fakeit into the new expr generator.
New Generators:
Would love to hear your thoughts and comments on this PR.
Regards,
Eric