Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nodejs-yitong-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Metrics
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
yitong-public
nodejs-yitong-sdk
Commits
90a1e27a
Commit
90a1e27a
authored
Mar 18, 2022
by
孙傲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加自定义options解决int64默认转换为字符串问题
parent
19365be1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
dbms.js
dbms.js
+6
-4
No files found.
dbms.js
View file @
90a1e27a
...
...
@@ -35,23 +35,25 @@ class DatabaseManagementSystem {
});
}
async
query
(
database
,
query
,
queryParameters
)
{
async
query
(
database
,
query
,
queryParameters
,
options
)
{
let
{
data
:
{
data
}
}
=
await
this
.
http
({
url
:
""
,
params
:
{
database
:
database
,
params
:
queryParameters
?
JSON
.
stringify
(
queryParameters
)
:
null
params
:
queryParameters
?
JSON
.
stringify
(
queryParameters
)
:
null
,
...
options
},
data
:
query
});
return
data
;
}
async
predefinedQuery
(
database
,
query
,
queryParameters
)
{
async
predefinedQuery
(
database
,
query
,
queryParameters
,
options
)
{
let
{
data
:
{
data
}
}
=
await
this
.
http
({
url
:
query
,
params
:
{
database
:
database
database
:
database
,
...
options
},
data
:
queryParameters
?
`--
${
JSON
.
stringify
(
queryParameters
)}
`
:
null
,
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment