Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b343ce8
Fix OperationResult.fetchAll() not shown
RustyNova016 May 6, 2022
bd5c106
Create codeql-analysis.yml
RustyNova016 May 6, 2022
f9847d2
Create dependabot.yml
RustyNova016 May 6, 2022
23ae6c2
Bump @types/lodash.isboolean from 3.0.6 to 3.0.7
dependabot[bot] May 6, 2022
0c231fc
Bump @types/lodash.isnumber from 3.0.6 to 3.0.7
dependabot[bot] May 6, 2022
a8cd9f8
Bump prettier from 2.0.5 to 2.6.2
dependabot[bot] May 6, 2022
8eccf59
Bump dotenv from 8.2.0 to 16.0.0
dependabot[bot] May 6, 2022
67b745b
Merge pull request #5 from RustyNova016/dependabot/npm_and_yarn/doten…
RustyNova016 May 6, 2022
3fb4339
Merge pull request #4 from RustyNova016/dependabot/npm_and_yarn/prett…
RustyNova016 May 6, 2022
b3733ec
Merge pull request #1 from RustyNova016/dependabot/npm_and_yarn/types…
RustyNova016 May 6, 2022
67fc024
Merge pull request #2 from RustyNova016/dependabot/npm_and_yarn/types…
RustyNova016 May 6, 2022
42e5928
Bump @types/node from 14.0.13 to 17.0.31
dependabot[bot] May 6, 2022
56e05a7
Merge pull request #3 from RustyNova016/dependabot/npm_and_yarn/types…
RustyNova016 May 6, 2022
ea093b7
Bump @types/lodash.isstring from 4.0.6 to 4.0.7
dependabot[bot] May 6, 2022
7baa650
Bump @mysql/xdevapi from 8.0.20 to 8.0.29
dependabot[bot] May 6, 2022
376e8b7
ignore .github
RustyNova016 May 6, 2022
12ba835
Merge remote-tracking branch 'origin/master'
RustyNova016 May 6, 2022
2adfc4b
Merge pull request #7 from RustyNova016/dependabot/npm_and_yarn/mysql…
RustyNova016 May 6, 2022
706994f
Merge pull request #6 from RustyNova016/dependabot/npm_and_yarn/types…
RustyNova016 May 6, 2022
d73e99d
Fixed package-lock.json
RustyNova016 May 6, 2022
17849a4
Updated package version
RustyNova016 May 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
72 changes: 72 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '28 0 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
src
.gitignore
.github
tsconfig.json
.idea
183 changes: 152 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mysqlx",
"version": "1.1.7",
"version": "1.1.8",
"description": "Staticly typed MySQL Connector for NodeJS using the X Protocol.",
"main": "lib/mysqlx.js",
"repository": "https://github.com/danang-id/mysqlx.git",
Expand All @@ -17,8 +17,8 @@
"@types/lodash.isboolean": "^3.0.6",
"@types/lodash.isnumber": "^3.0.6",
"@types/lodash.isstring": "^4.0.6",
"@types/node": "^14.0.13",
"dotenv": "^8.2.0",
"@types/node": "^17.0.31",
"dotenv": "^16.0.0",
"prettier": "^2.0.5"
},
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/SelectOperationResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export class SelectOperationResult extends OperationResult implements ISelectOpe
}
}

fetchAll(): Row[][] {
return this.rows
}

public getRows(): Row[][] {
return this.rows
}
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/ISelectOperationResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export interface ISelectOperationResult {
getRows(): Row[][]
getMetadata(): Metadata
getObjects(): Object[]
fetchAll(): Row[][]
}

export default ISelectOperationResult