Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sqlite3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
node-sqlite3
Commits
d4c56d42
Commit
d4c56d42
authored
Aug 30, 2021
by
Richard Hansen
Committed by
Kewde
Oct 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run `npx eslint --fix .` to auto-fix lint issues
parent
8c23ffbb
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
insert.js
benchmark/insert.js
+1
-1
ci.template.js
cloudformation/ci.template.js
+1
-1
prepare.test.js
test/prepare.test.js
+0
-0
createdb.js
test/support/createdb.js
+2
-2
helper.js
test/support/helper.js
+2
-2
unicode.test.js
test/unicode.test.js
+0
-0
upsert.test.js
test/upsert.test.js
+1
-1
No files found.
benchmark/insert.js
View file @
d4c56d42
...
@@ -8,7 +8,7 @@ exports.compare = {
...
@@ -8,7 +8,7 @@ exports.compare = {
var
db
=
new
sqlite3
.
Database
(
''
);
var
db
=
new
sqlite3
.
Database
(
''
);
var
file
=
fs
.
readFileSync
(
'benchmark/insert-transaction.sql'
,
'utf8'
);
var
file
=
fs
.
readFileSync
(
'benchmark/insert-transaction.sql'
,
'utf8'
);
db
.
exec
(
file
);
db
.
exec
(
file
);
db
.
close
(
finished
)
db
.
close
(
finished
)
;
},
},
'insert with transaction and two statements'
:
function
(
finished
)
{
'insert with transaction and two statements'
:
function
(
finished
)
{
...
...
cloudformation/ci.template.js
View file @
d4c56d42
var
cf
=
require
(
'@mapbox/cloudfriend'
);
var
cf
=
require
(
'@mapbox/cloudfriend'
);
var
package_json
=
require
(
'../package.json'
)
var
package_json
=
require
(
'../package.json'
)
;
module
.
exports
=
{
module
.
exports
=
{
AWSTemplateFormatVersion
:
'2010-09-09'
,
AWSTemplateFormatVersion
:
'2010-09-09'
,
...
...
test/prepare.test.js
View file @
d4c56d42
test/support/createdb.js
View file @
d4c56d42
...
@@ -16,7 +16,7 @@ function createdb(callback) {
...
@@ -16,7 +16,7 @@ function createdb(callback) {
str
+=
chars
[
Math
.
floor
(
Math
.
random
()
*
chars
.
length
)];
str
+=
chars
[
Math
.
floor
(
Math
.
random
()
*
chars
.
length
)];
}
}
return
str
;
return
str
;
}
;
}
if
(
existsSync
(
db_path
))
{
if
(
existsSync
(
db_path
))
{
...
@@ -38,7 +38,7 @@ function createdb(callback) {
...
@@ -38,7 +38,7 @@ function createdb(callback) {
});
});
});
});
}
}
}
;
}
if
(
require
.
main
===
module
)
{
if
(
require
.
main
===
module
)
{
createdb
();
createdb
();
...
...
test/support/helper.js
View file @
d4c56d42
...
@@ -15,8 +15,8 @@ exports.deleteFile = function(name) {
...
@@ -15,8 +15,8 @@ exports.deleteFile = function(name) {
exports
.
ensureExists
=
function
(
name
,
cb
)
{
exports
.
ensureExists
=
function
(
name
,
cb
)
{
if
(
!
pathExists
(
name
))
{
if
(
!
pathExists
(
name
))
{
fs
.
mkdirSync
(
name
);
fs
.
mkdirSync
(
name
);
}
;
}
}
}
;
assert
.
fileDoesNotExist
=
function
(
name
)
{
assert
.
fileDoesNotExist
=
function
(
name
)
{
try
{
try
{
...
...
test/unicode.test.js
View file @
d4c56d42
test/upsert.test.js
View file @
d4c56d42
...
@@ -20,7 +20,7 @@ describe('query properties', function() {
...
@@ -20,7 +20,7 @@ describe('query properties', function() {
if
(
err
)
throw
err
;
if
(
err
)
throw
err
;
assert
.
equal
(
row
.
count
,
3
);
// equals 3
assert
.
equal
(
row
.
count
,
3
);
// equals 3
});
});
})
})
;
});
});
db
.
wait
(
done
);
db
.
wait
(
done
);
});
});
...
...
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