You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2023. It is now read-only.
Before this release, the initial transform.ts config that snaplet generates for you would make use of copycat.scramble() to transform the string if the relevant column had a character limit (e.g. varchar(50)).
In this release, we now make use of copycat's new limit option when the relevant copycat API method supports the limit option. We are still adding the limit option to the rest of copycat's API, for cases where limit isn't available yet we still make use of scramble()
Subsetting improvements
Our subsetting feature now lets you to specify additional foreign keys that should be used when subsetting. This also gives you a way to tell Snaplet to also include related tables with nullable foreign keys (these are by default not included in the resulting subset).
For example, if you had a table users and a related table staff, then you could ensure that the staff table gets included with a config like this:
The structure.ts file we generate (which includes the typescript types for transform.ts) did not generate valid typescript if for cases where there were tables or columns that did not start with a letter (for example, table names that start with numbers)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Character limit improvements
Before this release, the initial
transform.ts
config that snaplet generates for you would make use ofcopycat.scramble()
to transform the string if the relevant column had a character limit (e.g.varchar(50)
).In this release, we now make use of copycat's new
limit
option when the relevant copycat API method supports thelimit
option. We are still adding thelimit
option to the rest of copycat's API, for cases wherelimit
isn't available yet we still make use ofscramble()
Subsetting improvements
Our subsetting feature now lets you to specify additional foreign keys that should be used when subsetting. This also gives you a way to tell Snaplet to also include related tables with nullable foreign keys (these are by default not included in the resulting subset).
For example, if you had a table
users
and a related tablestaff
, then you could ensure that the staff table gets included with a config like this:Bug fixes
structure.ts
file we generate (which includes the typescript types fortransform.ts
) did not generate valid typescript if for cases where there were tables or columns that did not start with a letter (for example, table names that start with numbers)Beta Was this translation helpful? Give feedback.
All reactions