This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
node-wgdb
mirror of
https://github.com/brettlangdon/node-wgdb.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
2
Wiki
Activity
Browse Source
move the batons around
master
Brett Langdon
12 years ago
parent
1010696ee1
commit
088a543ced
2 changed files
with
45 additions
and
44 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-44
src/wgdb.cc
+45
-0
src/wgdb.h
+ 0
- 44
src/wgdb.cc
View File
@ -3,50 +3,6 @@
Persistent
<
Function
>
Record
:
:
constructor
;
Persistent
<
Function
>
Record
:
:
constructor
;
Persistent
<
Function
>
Cursor
:
:
constructor
;
Persistent
<
Function
>
Cursor
:
:
constructor
;
/*
*
*
Structs
*
*/
struct
Baton
{
bool
has_cb
;
Persistent
<
Function
>
callback
;
WgDB
*
wgdb
;
const
char
*
error
;
void
*
data
;
}
;
struct
FieldData
{
int
field
;
wg_int
enc
;
Record
*
record
;
}
;
struct
Fields
{
int
length
;
wg_int
*
encs
;
}
;
struct
RecordData
{
int
length
;
void
*
record
;
}
;
struct
FindData
{
int
field
;
wg_int
enc
;
wg_int
cond
;
void
*
rec
;
void
*
data
;
}
;
struct
CursorData
{
int
arglen
;
wg_query_arg
*
arglist
;
wg_query
*
query
;
}
;
/*
/*
*
*
*
Async
Functions
*
Async
Functions
+ 45
- 0
src/wgdb.h
View File
@ -64,4 +64,49 @@ class Cursor : ObjectWrap{
static
void
do_after_create_cursor
(
uv_work_t
*
req
,
int
status
)
;
static
void
do_after_create_cursor
(
uv_work_t
*
req
,
int
status
)
;
}
;
}
;
struct
Baton
{
bool
has_cb
;
Persistent
<
Function
>
callback
;
WgDB
*
wgdb
;
const
char
*
error
;
void
*
data
;
}
;
struct
FieldData
{
int
field
;
wg_int
enc
;
Record
*
record
;
}
;
struct
Fields
{
int
length
;
wg_int
*
encs
;
}
;
struct
RecordData
{
int
length
;
void
*
record
;
}
;
struct
FindData
{
int
field
;
wg_int
enc
;
wg_int
cond
;
void
*
rec
;
void
*
data
;
}
;
struct
CursorData
{
int
arglen
;
wg_query_arg
*
arglist
;
wg_query
*
query
;
}
;
struct
IndexData
{
int
reclen
;
wg_int
*
matchrec
;
int
field
;
}
;
#
endif
#
endif
Write
Preview
Loading…
Cancel
Save