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

code-gen: support setting primary key in generated insert queries #491

Merged
merged 1 commit into from
Nov 14, 2020

Conversation

dirkdev98
Copy link
Member

No description provided.

@dirkdev98 dirkdev98 requested a review from tjonger as a code owner November 14, 2020 13:21
@github-actions
Copy link
Contributor

==== Benchmark result ====

Node.js version: 14

Total benchmarks: 13
          Passed: 13
          Failed: 0
-----------
lbu validator simple                    5000000  iterations      401  ns/op
yup validator simple                      20000  iterations    59229  ns/op
fastest-validator validator simple     10000000  iterations      111  ns/op
lbu validator nested                      50000  iterations    43556  ns/op
yup validator nested                       5000  iterations   432656  ns/op
fastest-validator validator nested      2000000  iterations      725  ns/op
logger - strings                         500000  iterations     2137  ns/op
logger - objects                         500000  iterations     2525  ns/op
logger - deep objects                    500000  iterations     4693  ns/op
uuid                                    2000000  iterations      518  ns/op
uuid.isValid                           10000000  iterations      124  ns/op
isNil                                 500000000  iterations        0  ns/op
isPlainObject                         100000000  iterations       16  ns/op

@github-actions
Copy link
Contributor

==== Benchmark result ====

Node.js version: 15

Total benchmarks: 13
          Passed: 13
          Failed: 0
-----------
lbu validator simple                    5000000  iterations      389  ns/op
yup validator simple                      20000  iterations    51542  ns/op
fastest-validator validator simple     20000000  iterations       93  ns/op
lbu validator nested                      50000  iterations    38642  ns/op
yup validator nested                       5000  iterations   367827  ns/op
fastest-validator validator nested      2000000  iterations      652  ns/op
logger - strings                        1000000  iterations     1948  ns/op
logger - objects                        1000000  iterations     2402  ns/op
logger - deep objects                    500000  iterations     3672  ns/op
uuid                                    2000000  iterations      500  ns/op
uuid.isValid                           10000000  iterations      110  ns/op
isNil                                 500000000  iterations        0  ns/op
isPlainObject                         100000000  iterations       14  ns/op

@github-actions
Copy link
Contributor

==== C8 test coverage ====
Statements: 70.22% ( 18400/26205 )
Branches : 71.94% ( 2177 /3026 )
Functions : 70.33% ( 678 /964 )
Lines : 70.22% ( 18400 /26205 )

@dirkdev98 dirkdev98 merged commit f336ead into main Nov 14, 2020
@dirkdev98 dirkdev98 deleted the feat/insert-pk branch November 14, 2020 13:29
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.

1 participant