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

Update setters for update statement together with enum types hadnling #1

Merged
merged 5 commits into from
Sep 23, 2021

Conversation

AndriiSherman
Copy link
Member

Setters now handled as object to update;
Enum types will be setup independently from tables and just be reused

@AndriiSherman AndriiSherman merged commit eba7b70 into develop Sep 23, 2021
AndriiSherman added a commit that referenced this pull request Dec 8, 2021
* Move types pg types to prod dependencies

* Change version to 0.9.0

* Add type for every exception

* Update setters for update statement together with enum types hadnling (#1)

* Add InArray and Like queries
* Setters now handled as object to update;
* Enum types will be setup independently from tables and just be reused

Co-authored-by: AndriiSherman <sherman@lambda.direct>

* 0.9.1

* Update README docs (#2)

* Feature/last updates (#3)

* 0.9.1

* Add 5 joins

* Add distinct for select queries

* Return object on delete

* Add raw query builder

* Add serializer for drizzle-kit support

* 0.9.2

* Add serial to serializer

* 0.9.3

* Add onConstraint for serializer

* 0.9.4

* Move ON DELETE and ON UPDATE to references

* 0.9.5

* Add foreignKeyName to serializer

* 0.9.6

* Improvements (#4)

* 0.9.6

* Add all possible pverloads for decimal column type

* Add possibility to create custom update statements, imstead of just setting values

* Change OnUpdate and OnDelete API

* 0.9.7

* onContrsaint as optional
AndriiSherman added a commit that referenced this pull request Dec 27, 2021
* Move types pg types to prod dependencies

* Change version to 0.9.0

* Add type for every exception

* Update setters for update statement together with enum types hadnling (#1)

* Add InArray and Like queries
* Setters now handled as object to update;
* Enum types will be setup independently from tables and just be reused

Co-authored-by: AndriiSherman <sherman@lambda.direct>

* 0.9.1

* Update README docs (#2)

* Feature/last updates (#3)

* 0.9.1

* Add 5 joins

* Add distinct for select queries

* Return object on delete

* Add raw query builder

* Add serializer for drizzle-kit support

* 0.9.2

* Add serial to serializer

* 0.9.3

* Add onConstraint for serializer

* 0.9.4

* Move ON DELETE and ON UPDATE to references

* 0.9.5

* Add foreignKeyName to serializer

* 0.9.6

* Improvements (#4)

* 0.9.6

* Add all possible pverloads for decimal column type

* Add possibility to create custom update statements, imstead of just setting values

* Change OnUpdate and OnDelete API

* 0.9.7

* onContrsaint as optional

* 0.9.8

* Fix serializer key

* 0.9.9

* 0.9.10

* Fix Nan exception on mapping

* Add smallInt type

* 0.9.11

* Export ExtractModel type

* 0.9.12

* Feature/knex (#6)

* 0.9.12

* Add Session interface for extensions

* 0.9.13

* 0.9.14

* Export ISession

* 0.9.15

* Release/0.9.16 (#7)

* Add migrator logic

* 0.9.15

* Remove autoincrement field and add serial for postgres

* Move notNull to method instead of column type

* Add timestamp with timezone type

* Add default value for timestamp/time/timestamptz

* Add big integers type separating for 2^53 and 2^64 difference between javascript and postgres

* Fix migrations table

* 0.9.16

* Add migrator changelog+readme with migrator function

* Add serializer to introspect database to json snapshot (#8)
AndriiSherman added a commit that referenced this pull request Jan 27, 2022
* Move types pg types to prod dependencies

* Change version to 0.9.0

* Add type for every exception

* Update setters for update statement together with enum types hadnling (#1)

* Add InArray and Like queries
* Setters now handled as object to update;
* Enum types will be setup independently from tables and just be reused

Co-authored-by: AndriiSherman <sherman@lambda.direct>

* 0.9.1

* Update README docs (#2)

* Feature/last updates (#3)

* 0.9.1

* Add 5 joins

* Add distinct for select queries

* Return object on delete

* Add raw query builder

* Add serializer for drizzle-kit support

* 0.9.2

* Add serial to serializer

* 0.9.3

* Add onConstraint for serializer

* 0.9.4

* Move ON DELETE and ON UPDATE to references

* 0.9.5

* Add foreignKeyName to serializer

* 0.9.6

* Improvements (#4)

* 0.9.6

* Add all possible pverloads for decimal column type

* Add possibility to create custom update statements, imstead of just setting values

* Change OnUpdate and OnDelete API

* 0.9.7

* onContrsaint as optional

* 0.9.8

* Fix serializer key

* 0.9.9

* 0.9.10

* Fix Nan exception on mapping

* Add smallInt type

* 0.9.11

* Export ExtractModel type

* 0.9.12

* Feature/knex (#6)

* 0.9.12

* Add Session interface for extensions

* 0.9.13

* 0.9.14

* Export ISession

* 0.9.15

* Release/0.9.16 (#7)

* Add migrator logic

* 0.9.15

* Remove autoincrement field and add serial for postgres

* Move notNull to method instead of column type

* Add timestamp with timezone type

* Add default value for timestamp/time/timestamptz

* Add big integers type separating for 2^53 and 2^64 difference between javascript and postgres

* Fix migrations table

* 0.9.16

* Add migrator changelog+readme with migrator function

* Add serializer to introspect database to json snapshot (#8)

* Fix `any` type returning from `.notNull()` and `.primaryKey()` functions

* 0.9.18

* Fix querying be Date

* 0.9.19

* Add Changelog for version 0.9.19

* Feature/partial select (#10)

* Partial select proof-of-concept

* Add partial select first overview types

* Add all partial selects types and handling for partials

* Add self join possibility

1. Fix Table definition
2. Fix query generation

* Fix wrong type as undefined to be returned;
Move first to findOne;

* Fix documentation calls

* Fix migrator handling

* Add README documentation and CHANGELOG for 0.10.0 release
AndriiSherman added a commit that referenced this pull request Jan 27, 2022
* Move types pg types to prod dependencies

* Change version to 0.9.0

* Add type for every exception

* Update setters for update statement together with enum types hadnling (#1)

* Add InArray and Like queries
* Setters now handled as object to update;
* Enum types will be setup independently from tables and just be reused

Co-authored-by: AndriiSherman <sherman@lambda.direct>

* 0.9.1

* Update README docs (#2)

* Feature/last updates (#3)

* 0.9.1

* Add 5 joins

* Add distinct for select queries

* Return object on delete

* Add raw query builder

* Add serializer for drizzle-kit support

* 0.9.2

* Add serial to serializer

* 0.9.3

* Add onConstraint for serializer

* 0.9.4

* Move ON DELETE and ON UPDATE to references

* 0.9.5

* Add foreignKeyName to serializer

* 0.9.6

* Improvements (#4)

* 0.9.6

* Add all possible pverloads for decimal column type

* Add possibility to create custom update statements, imstead of just setting values

* Change OnUpdate and OnDelete API

* 0.9.7

* onContrsaint as optional

* 0.9.8

* Fix serializer key

* 0.9.9

* 0.9.10

* Fix Nan exception on mapping

* Add smallInt type

* 0.9.11

* Export ExtractModel type

* 0.9.12

* Feature/knex (#6)

* 0.9.12

* Add Session interface for extensions

* 0.9.13

* 0.9.14

* Export ISession

* 0.9.15

* Release/0.9.16 (#7)

* Add migrator logic

* 0.9.15

* Remove autoincrement field and add serial for postgres

* Move notNull to method instead of column type

* Add timestamp with timezone type

* Add default value for timestamp/time/timestamptz

* Add big integers type separating for 2^53 and 2^64 difference between javascript and postgres

* Fix migrations table

* 0.9.16

* Add migrator changelog+readme with migrator function

* Add serializer to introspect database to json snapshot (#8)

* Fix `any` type returning from `.notNull()` and `.primaryKey()` functions

* 0.9.18

* Fix querying be Date

* 0.9.19

* Add Changelog for version 0.9.19

* Feature/partial select (#10)

* Partial select proof-of-concept

* Add partial select first overview types

* Add all partial selects types and handling for partials

* Add self join possibility

1. Fix Table definition
2. Fix query generation

* Fix wrong type as undefined to be returned;
Move first to findOne;

* Fix documentation calls

* Fix migrator handling

* Add README documentation and CHANGELOG for 0.10.0 release

* 0.10.0
@AndriiSherman AndriiSherman deleted the fix/setters branch June 23, 2022 17:37
dankochetov pushed a commit that referenced this pull request Oct 20, 2022
* Add types for join and partial selecting

* Update test.ts with examples after merging

* Add select types with joins and partial
dankochetov pushed a commit that referenced this pull request Apr 23, 2024
Add date mode for text data type in SQLite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant