feat: add mysql driver #76
Annotations
5 errors and 5 warnings
parse column constraint:
src/drivers/sqlite/sql-parse-table.test.ts#L20
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
@@ -4,8 +4,9 @@
"user_id",
],
"foreignColumns": Array [
"id",
],
+ "foreignSchemaName": "main",
"foreignTableName": "users",
},
}
at Object.toEqual (/home/runner/work/libsql-studio/libsql-studio/src/drivers/sqlite/sql-parse-table.test.ts:80:5)
at Promise.then.completed (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/run.js:126:9)
at run (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-runner/build/testWorker.js:106:12)
|
parse create table with table constraints:
src/drivers/sqlite/sql-parse-table.test.ts#L164
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 8
@@ -1,20 +1,24 @@
Object {
"autoIncrement": false,
"columns": Array [
Object {
+ "constraint": undefined,
"name": "first_name",
"pk": true,
"type": "varchar",
},
Object {
+ "constraint": undefined,
"name": "last_name",
"pk": true,
"type": "varchar",
},
Object {
+ "constraint": undefined,
"name": "category_id",
+ "pk": undefined,
"type": "integer",
},
],
"constraints": Array [
Object {
@@ -22,23 +26,27 @@
"primaryColumns": Array [
"first_name",
"last_name",
],
"primaryKey": true,
+ "primaryKeyConflict": undefined,
+ "primaryKeyOrder": undefined,
},
Object {
"foreignKey": Object {
"columns": Array [
"category_id",
],
"foreignColumns": Array [
"id",
],
+ "foreignSchemaName": "main",
"foreignTableName": "category",
},
},
],
+ "fts5": undefined,
"pk": Array [
"first_name",
"last_name",
],
"schemaName": "main",
at Object.toEqual (/home/runner/work/libsql-studio/libsql-studio/src/drivers/sqlite/sql-parse-table.test.ts:173:18)
at Promise.then.completed (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/run.js:126:9)
at run (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/libsql-studio/libsql-studio/node_modules/jest-runner/build/testWorker.js:106:12)
|
coverage
Error: The process '/opt/hostedtoolcache/node/20.17.0/x64/bin/npx' failed with exit code 1
Error: The process '/opt/hostedtoolcache/node/20.17.0/x64/bin/npx' failed with exit code 1
at wd._setResult (/home/runner/work/_actions/ArtiomTr/jest-coverage-report-action/v2/dist/index.js:21:19186)
at wd.CheckComplete (/home/runner/work/_actions/ArtiomTr/jest-coverage-report-action/v2/dist/index.js:21:18773)
at ChildProcess.<anonymous> (/home/runner/work/_actions/ArtiomTr/jest-coverage-report-action/v2/dist/index.js:21:17765)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)
|
coverage
Jest coverage report action failed
|
coverage
Process completed with exit code 1.
|
🧾 Statement is not covered:
src/drivers/sqlite/sql-parse-table.ts#L311
Warning! Not covered statement
|
🧾 Statement is not covered:
src/drivers/sqlite/sql-parse-table.ts#L321
Warning! Not covered statement
|
🌿 Branch is not covered:
src/drivers/sqlite/sql-parse-table.ts#L305
Warning! Not covered branch
|
🌿 Branch is not covered:
src/drivers/sqlite/sql-parse-table.ts#L315
Warning! Not covered branch
|
coverage
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|