Skip to content

0.3.3

Choose a tag to compare

@avanchugov avanchugov released this 14 Jun 16:41
· 4 commits to main since this release

Minor update where we changed the logic of Repository#clone

Added

TableFieldStrings

export type TableFieldStrings<T> = (keyof T)[]

Description of exception while creating the table

ModularORMException: Error when executing table ranks. Table didnt created: Error: Cannot add foreign key constraint

Changes

Improve Repository#clone logic

SQL before:

SELECT * FROM users WHERE users = "Alice"

INSERT INTO users (name, age) VALUES ("Boris"...)
...

SQL After

INSERT INTO users (name, age) SELECT "Boris", age FROM users WHERE name = "Alice"