Preparing search index...
The search index is not available
DuckDB-WASM
DuckDB-WASM
index
DuckDBRuntime
Interface DuckDBRuntime
The duckdb runtime
interface
DuckDBRuntime
{
_files
?:
Map
<
string
,
any
>
;
_udfFunctions
:
Map
<
number
,
UDFFunction
>
;
callScalarUDF
(
mod
,
response
,
funcId
,
descPtr
,
descSize
,
ptrsPtr
,
ptrsSize
)
:
void
;
checkDirectory
(
mod
,
pathPtr
,
pathLen
)
:
boolean
;
checkFile
(
mod
,
pathPtr
,
pathLen
)
:
boolean
;
closeFile
(
mod
,
fileId
)
:
void
;
createDirectory
(
mod
,
pathPtr
,
pathLen
)
:
void
;
getDefaultDataProtocol
(
mod
)
:
number
;
getLastFileModificationTime
(
mod
,
fileId
)
:
number
;
glob
(
mod
,
pathPtr
,
pathLen
)
:
void
;
listDirectoryEntries
(
mod
,
pathPtr
,
pathLen
)
:
boolean
;
moveFile
(
mod
,
fromPtr
,
fromLen
,
toPtr
,
toLen
)
:
void
;
openFile
(
mod
,
fileId
,
flags
)
:
void
;
readFile
(
mod
,
fileId
,
buffer
,
bytes
,
location
)
:
number
;
removeDirectory
(
mod
,
pathPtr
,
pathLen
)
:
void
;
removeFile
(
mod
,
pathPtr
,
pathLen
)
:
void
;
syncFile
(
mod
,
fileId
)
:
void
;
testPlatformFeature
(
mod
,
feature
)
:
boolean
;
truncateFile
(
mod
,
fileId
,
newSize
)
:
void
;
writeFile
(
mod
,
fileId
,
buffer
,
bytes
,
location
)
:
number
;
}
Index
Properties
_files?
_udf
Functions
Methods
call
ScalarUDF
check
Directory
check
File
close
File
create
Directory
get
Default
Data
Protocol
get
Last
File
Modification
Time
glob
list
Directory
Entries
move
File
open
File
read
File
remove
Directory
remove
File
sync
File
test
Platform
Feature
truncate
File
write
File
Properties
Optional
_files
_files
?:
Map
<
string
,
any
>
_udf
Functions
_udf
Functions
:
Map
<
number
,
UDFFunction
>
Methods
call
ScalarUDF
call
ScalarUDF
(
mod
,
response
,
funcId
,
descPtr
,
descSize
,
ptrsPtr
,
ptrsSize
)
:
void
Parameters
mod
:
DuckDBModule
response
:
number
funcId
:
number
descPtr
:
number
descSize
:
number
ptrsPtr
:
number
ptrsSize
:
number
Returns
void
check
Directory
check
Directory
(
mod
,
pathPtr
,
pathLen
)
:
boolean
Parameters
mod
:
DuckDBModule
pathPtr
:
number
pathLen
:
number
Returns
boolean
check
File
check
File
(
mod
,
pathPtr
,
pathLen
)
:
boolean
Parameters
mod
:
DuckDBModule
pathPtr
:
number
pathLen
:
number
Returns
boolean
close
File
close
File
(
mod
,
fileId
)
:
void
Parameters
mod
:
DuckDBModule
fileId
:
number
Returns
void
create
Directory
create
Directory
(
mod
,
pathPtr
,
pathLen
)
:
void
Parameters
mod
:
DuckDBModule
pathPtr
:
number
pathLen
:
number
Returns
void
get
Default
Data
Protocol
get
Default
Data
Protocol
(
mod
)
:
number
Parameters
mod
:
DuckDBModule
Returns
number
get
Last
File
Modification
Time
get
Last
File
Modification
Time
(
mod
,
fileId
)
:
number
Parameters
mod
:
DuckDBModule
fileId
:
number
Returns
number
glob
glob
(
mod
,
pathPtr
,
pathLen
)
:
void
Parameters
mod
:
DuckDBModule
pathPtr
:
number
pathLen
:
number
Returns
void
list
Directory
Entries
list
Directory
Entries
(
mod
,
pathPtr
,
pathLen
)
:
boolean
Parameters
mod
:
DuckDBModule
pathPtr
:
number
pathLen
:
number
Returns
boolean
move
File
move
File
(
mod
,
fromPtr
,
fromLen
,
toPtr
,
toLen
)
:
void
Parameters
mod
:
DuckDBModule
fromPtr
:
number
fromLen
:
number
toPtr
:
number
toLen
:
number
Returns
void
open
File
open
File
(
mod
,
fileId
,
flags
)
:
void
Parameters
mod
:
DuckDBModule
fileId
:
number
flags
:
FileFlags
Returns
void
read
File
read
File
(
mod
,
fileId
,
buffer
,
bytes
,
location
)
:
number
Parameters
mod
:
DuckDBModule
fileId
:
number
buffer
:
number
bytes
:
number
location
:
number
Returns
number
remove
Directory
remove
Directory
(
mod
,
pathPtr
,
pathLen
)
:
void
Parameters
mod
:
DuckDBModule
pathPtr
:
number
pathLen
:
number
Returns
void
remove
File
remove
File
(
mod
,
pathPtr
,
pathLen
)
:
void
Parameters
mod
:
DuckDBModule
pathPtr
:
number
pathLen
:
number
Returns
void
sync
File
sync
File
(
mod
,
fileId
)
:
void
Parameters
mod
:
DuckDBModule
fileId
:
number
Returns
void
test
Platform
Feature
test
Platform
Feature
(
mod
,
feature
)
:
boolean
Parameters
mod
:
DuckDBModule
feature
:
number
Returns
boolean
truncate
File
truncate
File
(
mod
,
fileId
,
newSize
)
:
void
Parameters
mod
:
DuckDBModule
fileId
:
number
newSize
:
number
Returns
void
write
File
write
File
(
mod
,
fileId
,
buffer
,
bytes
,
location
)
:
number
Parameters
mod
:
DuckDBModule
fileId
:
number
buffer
:
number
bytes
:
number
location
:
number
Returns
number
Settings
Member Visibility
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
_files
_udf
Functions
call
ScalarUDF
check
Directory
check
File
close
File
create
Directory
get
Default
Data
Protocol
get
Last
File
Modification
Time
glob
list
Directory
Entries
move
File
open
File
read
File
remove
Directory
remove
File
sync
File
test
Platform
Feature
truncate
File
write
File
DuckDB-WASM
Loading...
The duckdb runtime