mike
How to define multiple configs in a NX monorepo?
I am using it to init core data such as postal codes, countries, currencies, etc. to push necessary data to make the application up-and-running. So I seed these data but later we want to add one new country and remove one existing country. In such a case I should delete one of the existing countries (if it exists with a
delete where
clause ) and then seed with onConflict
clause everything again? Is this really the "right" pattern?17 replies
How to define multiple configs in a NX monorepo?
One more thing - I successfully run the seeders as follows but I it does not save the seeder in any log table as it is happening in migrations. Once the seeder has been successfully executed it should not been executed again or do I miss anything?
17 replies
How to define multiple configs in a NX monorepo?
I finally did it this way (switching different settings by env variable passed before the script) as follows. Is there a way how to change naming convention from
timestamp_name.ts
to timestamp-name.ts
...?
17 replies
Migrator transaction (postgresql dialect)
Oh, so all the migrations are running in a one unique transaction...! From our previous discussion (few months ago) I understood each migration run in it's own migration. If all are in one transaction that's everything I need. 😍
13 replies
How to like left value to right raw statement?
❯ npm explain kysely
[email protected]
node_modules/kysely
kysely@"^0.25.0" from the root project
20 replies