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
cc1cc86e
Commit
cc1cc86e
authored
Feb 11, 2013
by
Tom Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated for libuv changes in node 0.10
parent
1173659e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
package.json
package.json
+1
-1
database.cc
src/database.cc
+4
-4
macros.h
src/macros.h
+1
-1
statement.cc
src/statement.cc
+1
-1
No files found.
package.json
View file @
cc1cc86e
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
"
expresso
"
:
"*"
"
expresso
"
:
"*"
},
},
"engines"
:
{
"engines"
:
{
"node"
:
">= 0.6.13 && < 0.
9
.0"
"node"
:
">= 0.6.13 && < 0.
11
.0"
},
},
"scripts"
:
{
"scripts"
:
{
"test"
:
"make test"
"test"
:
"make test"
...
...
src/database.cc
View file @
cc1cc86e
...
@@ -138,7 +138,7 @@ Handle<Value> Database::New(const Arguments& args) {
...
@@ -138,7 +138,7 @@ Handle<Value> Database::New(const Arguments& args) {
void
Database
::
Work_BeginOpen
(
Baton
*
baton
)
{
void
Database
::
Work_BeginOpen
(
Baton
*
baton
)
{
int
status
=
uv_queue_work
(
uv_default_loop
(),
int
status
=
uv_queue_work
(
uv_default_loop
(),
&
baton
->
request
,
Work_Open
,
Work_AfterOpen
);
&
baton
->
request
,
Work_Open
,
(
uv_after_work_cb
)
Work_AfterOpen
);
assert
(
status
==
0
);
assert
(
status
==
0
);
}
}
...
@@ -221,7 +221,7 @@ void Database::Work_BeginClose(Baton* baton) {
...
@@ -221,7 +221,7 @@ void Database::Work_BeginClose(Baton* baton) {
baton
->
db
->
RemoveCallbacks
();
baton
->
db
->
RemoveCallbacks
();
int
status
=
uv_queue_work
(
uv_default_loop
(),
int
status
=
uv_queue_work
(
uv_default_loop
(),
&
baton
->
request
,
Work_Close
,
Work_AfterClose
);
&
baton
->
request
,
Work_Close
,
(
uv_after_work_cb
)
Work_AfterClose
);
assert
(
status
==
0
);
assert
(
status
==
0
);
}
}
...
@@ -500,7 +500,7 @@ void Database::Work_BeginExec(Baton* baton) {
...
@@ -500,7 +500,7 @@ void Database::Work_BeginExec(Baton* baton) {
assert
(
baton
->
db
->
handle
);
assert
(
baton
->
db
->
handle
);
assert
(
baton
->
db
->
pending
==
0
);
assert
(
baton
->
db
->
pending
==
0
);
int
status
=
uv_queue_work
(
uv_default_loop
(),
int
status
=
uv_queue_work
(
uv_default_loop
(),
&
baton
->
request
,
Work_Exec
,
Work_AfterExec
);
&
baton
->
request
,
Work_Exec
,
(
uv_after_work_cb
)
Work_AfterExec
);
assert
(
status
==
0
);
assert
(
status
==
0
);
}
}
...
@@ -569,7 +569,7 @@ void Database::Work_BeginLoadExtension(Baton* baton) {
...
@@ -569,7 +569,7 @@ void Database::Work_BeginLoadExtension(Baton* baton) {
assert
(
baton
->
db
->
handle
);
assert
(
baton
->
db
->
handle
);
assert
(
baton
->
db
->
pending
==
0
);
assert
(
baton
->
db
->
pending
==
0
);
int
status
=
uv_queue_work
(
uv_default_loop
(),
int
status
=
uv_queue_work
(
uv_default_loop
(),
&
baton
->
request
,
Work_LoadExtension
,
Work_AfterLoadExtension
);
&
baton
->
request
,
Work_LoadExtension
,
(
uv_after_work_cb
)
Work_AfterLoadExtension
);
assert
(
status
==
0
);
assert
(
status
==
0
);
}
}
...
...
src/macros.h
View file @
cc1cc86e
...
@@ -136,7 +136,7 @@ const char* sqlite_authorizer_string(int type);
...
@@ -136,7 +136,7 @@ const char* sqlite_authorizer_string(int type);
baton->stmt->locked = true; \
baton->stmt->locked = true; \
baton->stmt->db->pending++; \
baton->stmt->db->pending++; \
int status = uv_queue_work(uv_default_loop(), \
int status = uv_queue_work(uv_default_loop(), \
&baton->request, Work_##type, Work_After##type); \
&baton->request, Work_##type,
(uv_after_work_cb)
Work_After##type); \
assert(status == 0);
assert(status == 0);
#define STATEMENT_INIT(type) \
#define STATEMENT_INIT(type) \
...
...
src/statement.cc
View file @
cc1cc86e
...
@@ -118,7 +118,7 @@ void Statement::Work_BeginPrepare(Database::Baton* baton) {
...
@@ -118,7 +118,7 @@ void Statement::Work_BeginPrepare(Database::Baton* baton) {
assert
(
baton
->
db
->
open
);
assert
(
baton
->
db
->
open
);
baton
->
db
->
pending
++
;
baton
->
db
->
pending
++
;
int
status
=
uv_queue_work
(
uv_default_loop
(),
int
status
=
uv_queue_work
(
uv_default_loop
(),
&
baton
->
request
,
Work_Prepare
,
Work_AfterPrepare
);
&
baton
->
request
,
Work_Prepare
,
(
uv_after_work_cb
)
Work_AfterPrepare
);
assert
(
status
==
0
);
assert
(
status
==
0
);
}
}
...
...
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