-
Task
-
-
Major
-
Resolution:
Unresolved
-
None
-
None
-
None
-
see https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/185
Typescript definition must include resultset object.
That would permit type Casting, like :
const res: RowArrayResult = await connection.query<RowArrayResult>({ rowsAsArray: true, sql: 'select * from animals' });
|
const res: RowObjectResult = await connection.query<RowObjectResult>({ sql: 'select * from animals' });
|
{"report":{"fcp":797,"ttfb":172.39999985694885,"pageVisibility":"visible","entityId":106058,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"149bc41c-9789-4e2e-b11f-1a8c356d236e","navigationType":0,"readyForUser":854.0999999046326,"redirectCount":0,"resourceLoadedEnd":818.0999999046326,"resourceLoadedStart":177.69999980926514,"resourceTiming":[{"duration":48.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":177.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":226.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":48.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":178.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":178.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":226.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":82.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":178.29999995231628,"connectEnd":178.29999995231628,"connectStart":178.29999995231628,"domainLookupEnd":178.29999995231628,"domainLookupStart":178.29999995231628,"fetchStart":178.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":178.29999995231628,"responseEnd":261.19999980926514,"responseStart":261.19999980926514,"secureConnectionStart":178.29999995231628},{"duration":171.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":178.39999985694885,"connectEnd":178.39999985694885,"connectStart":178.39999985694885,"domainLookupEnd":178.39999985694885,"domainLookupStart":178.39999985694885,"fetchStart":178.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":178.39999985694885,"responseEnd":349.69999980926514,"responseStart":349.69999980926514,"secureConnectionStart":178.39999985694885},{"duration":174.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":178.69999980926514,"connectEnd":178.69999980926514,"connectStart":178.69999980926514,"domainLookupEnd":178.69999980926514,"domainLookupStart":178.69999980926514,"fetchStart":178.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":178.69999980926514,"responseEnd":353.59999990463257,"responseStart":353.59999990463257,"secureConnectionStart":178.69999980926514},{"duration":175.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":178.89999985694885,"connectEnd":178.89999985694885,"connectStart":178.89999985694885,"domainLookupEnd":178.89999985694885,"domainLookupStart":178.89999985694885,"fetchStart":178.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":178.89999985694885,"responseEnd":354,"responseStart":354,"secureConnectionStart":178.89999985694885},{"duration":175.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":179.09999990463257,"connectEnd":179.09999990463257,"connectStart":179.09999990463257,"domainLookupEnd":179.09999990463257,"domainLookupStart":179.09999990463257,"fetchStart":179.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":179.09999990463257,"responseEnd":354.59999990463257,"responseStart":354.59999990463257,"secureConnectionStart":179.09999990463257},{"duration":225.89999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":179.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":179.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":405.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":175.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":179.39999985694885,"connectEnd":179.39999985694885,"connectStart":179.39999985694885,"domainLookupEnd":179.39999985694885,"domainLookupStart":179.39999985694885,"fetchStart":179.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":179.39999985694885,"responseEnd":355.09999990463257,"responseStart":355.09999990463257,"secureConnectionStart":179.39999985694885},{"duration":225.79999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":179.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":179.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":405.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":175.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":179.79999995231628,"connectEnd":179.79999995231628,"connectStart":179.79999995231628,"domainLookupEnd":179.79999995231628,"domainLookupStart":179.79999995231628,"fetchStart":179.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":179.79999995231628,"responseEnd":355.69999980926514,"responseStart":355.69999980926514,"secureConnectionStart":179.79999995231628},{"duration":313.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":180.5,"connectEnd":180.5,"connectStart":180.5,"domainLookupEnd":180.5,"domainLookupStart":180.5,"fetchStart":180.5,"redirectEnd":0,"redirectStart":0,"requestStart":180.5,"responseEnd":494.09999990463257,"responseStart":494.09999990463257,"secureConnectionStart":180.5},{"duration":637.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":180.59999990463257,"connectEnd":180.59999990463257,"connectStart":180.59999990463257,"domainLookupEnd":180.59999990463257,"domainLookupStart":180.59999990463257,"fetchStart":180.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":180.59999990463257,"responseEnd":818.0999999046326,"responseStart":818.0999999046326,"secureConnectionStart":180.59999990463257},{"duration":78.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":417.09999990463257,"connectEnd":417.09999990463257,"connectStart":417.09999990463257,"domainLookupEnd":417.09999990463257,"domainLookupStart":417.09999990463257,"fetchStart":417.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":417.09999990463257,"responseEnd":495.5,"responseStart":495.5,"secureConnectionStart":417.09999990463257},{"duration":232.60000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":712.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":712.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":944.7999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":34,"responseStart":173,"responseEnd":174,"domLoading":176,"domInteractive":907,"domContentLoadedEventStart":907,"domContentLoadedEventEnd":945,"domComplete":1700,"loadEventStart":1700,"loadEventEnd":1702,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":894.5999999046326},{"name":"bigPipe.sidebar-id.end","time":895.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":895.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":898},{"name":"activityTabFullyLoaded","time":955.1999998092651}],"measures":[],"correlationId":"4ccdf6be392e3e","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":81,"dbReadsTimeInMs":7,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}