Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2920971
sqlite3.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
701 B
Referenced Files
None
Subscribers
None
sqlite3.js
View Options
import
{
dlopen
,
suffix
,
FFIType
}
from
'ant:ffi'
;
export
const
sqlite3
=
dlopen
(
`libsqlite3.
${
suffix
}
`
);
sqlite3
.
define
(
'sqlite3_libversion'
,
{
args
:
[],
returns
:
FFIType
.
string
});
sqlite3
.
define
(
'sqlite3_open'
,
{
args
:
[
FFIType
.
string
,
FFIType
.
pointer
],
returns
:
FFIType
.
int
});
sqlite3
.
define
(
'sqlite3_close'
,
{
args
:
[
FFIType
.
pointer
],
returns
:
FFIType
.
int
});
sqlite3
.
define
(
'sqlite3_errmsg'
,
{
args
:
[
FFIType
.
pointer
],
returns
:
FFIType
.
string
});
sqlite3
.
define
(
'sqlite3_exec'
,
{
args
:
[
FFIType
.
pointer
,
FFIType
.
string
,
FFIType
.
pointer
,
FFIType
.
pointer
,
FFIType
.
pointer
],
returns
:
FFIType
.
int
});
console
.
log
(
`SQLite version:
${
sqlite3
.
call
(
'sqlite3_libversion'
)
}
`
);
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Mar 27, 7:46 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
512731
Default Alt Text
sqlite3.js (701 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment