@di-framework/pglite-component 0.0.0-stage → 6.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +144 -2
- package/dist/BUILD-INFO.txt +13 -0
- package/dist/SHA256SUMS +3 -0
- package/dist/THIRD-PARTY-NOTICES.txt +345 -0
- package/dist/di-framework-pglite.wasm +0 -0
- package/dist/di-framework-pglite.wit +350 -0
- package/package.json +26 -4
- package/wit/deps/pglite-engine/engine.wit +16 -0
- package/wit/deps/wasi-cli-0.2.0/package.wit +159 -0
- package/wit/deps/wasi-clocks-0.2.0/package.wit +29 -0
- package/wit/deps/wasi-filesystem-0.2.0/package.wit +158 -0
- package/wit/deps/wasi-http-0.2.0/package.wit +571 -0
- package/wit/deps/wasi-io-0.2.0/package.wit +48 -0
- package/wit/deps/wasi-random-0.2.0/package.wit +18 -0
- package/wit/deps/wasi-sockets-0.2.0/package.wit +833 -0
- package/wit/world.wit +165 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
package wasi:filesystem@0.2.0;
|
|
2
|
+
|
|
3
|
+
interface types {
|
|
4
|
+
use wasi:io/streams@0.2.0.{input-stream, output-stream, error};
|
|
5
|
+
use wasi:clocks/wall-clock@0.2.0.{datetime};
|
|
6
|
+
|
|
7
|
+
type filesize = u64;
|
|
8
|
+
|
|
9
|
+
enum descriptor-type {
|
|
10
|
+
unknown,
|
|
11
|
+
block-device,
|
|
12
|
+
character-device,
|
|
13
|
+
directory,
|
|
14
|
+
fifo,
|
|
15
|
+
symbolic-link,
|
|
16
|
+
regular-file,
|
|
17
|
+
socket,
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
flags descriptor-flags {
|
|
21
|
+
read,
|
|
22
|
+
write,
|
|
23
|
+
file-integrity-sync,
|
|
24
|
+
data-integrity-sync,
|
|
25
|
+
requested-write-sync,
|
|
26
|
+
mutate-directory,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
flags path-flags {
|
|
30
|
+
symlink-follow,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
flags open-flags {
|
|
34
|
+
create,
|
|
35
|
+
directory,
|
|
36
|
+
exclusive,
|
|
37
|
+
truncate,
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
type link-count = u64;
|
|
41
|
+
|
|
42
|
+
record descriptor-stat {
|
|
43
|
+
%type: descriptor-type,
|
|
44
|
+
link-count: link-count,
|
|
45
|
+
size: filesize,
|
|
46
|
+
data-access-timestamp: option<datetime>,
|
|
47
|
+
data-modification-timestamp: option<datetime>,
|
|
48
|
+
status-change-timestamp: option<datetime>,
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
variant new-timestamp {
|
|
52
|
+
no-change,
|
|
53
|
+
now,
|
|
54
|
+
timestamp(datetime),
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
record directory-entry {
|
|
58
|
+
%type: descriptor-type,
|
|
59
|
+
name: string,
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
enum error-code {
|
|
63
|
+
access,
|
|
64
|
+
would-block,
|
|
65
|
+
already,
|
|
66
|
+
bad-descriptor,
|
|
67
|
+
busy,
|
|
68
|
+
deadlock,
|
|
69
|
+
quota,
|
|
70
|
+
exist,
|
|
71
|
+
file-too-large,
|
|
72
|
+
illegal-byte-sequence,
|
|
73
|
+
in-progress,
|
|
74
|
+
interrupted,
|
|
75
|
+
invalid,
|
|
76
|
+
io,
|
|
77
|
+
is-directory,
|
|
78
|
+
loop,
|
|
79
|
+
too-many-links,
|
|
80
|
+
message-size,
|
|
81
|
+
name-too-long,
|
|
82
|
+
no-device,
|
|
83
|
+
no-entry,
|
|
84
|
+
no-lock,
|
|
85
|
+
insufficient-memory,
|
|
86
|
+
insufficient-space,
|
|
87
|
+
not-directory,
|
|
88
|
+
not-empty,
|
|
89
|
+
not-recoverable,
|
|
90
|
+
unsupported,
|
|
91
|
+
no-tty,
|
|
92
|
+
no-such-device,
|
|
93
|
+
overflow,
|
|
94
|
+
not-permitted,
|
|
95
|
+
pipe,
|
|
96
|
+
read-only,
|
|
97
|
+
invalid-seek,
|
|
98
|
+
text-file-busy,
|
|
99
|
+
cross-device,
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
enum advice {
|
|
103
|
+
normal,
|
|
104
|
+
sequential,
|
|
105
|
+
random,
|
|
106
|
+
will-need,
|
|
107
|
+
dont-need,
|
|
108
|
+
no-reuse,
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
record metadata-hash-value {
|
|
112
|
+
lower: u64,
|
|
113
|
+
upper: u64,
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
resource descriptor {
|
|
117
|
+
read-via-stream: func(offset: filesize) -> result<input-stream, error-code>;
|
|
118
|
+
write-via-stream: func(offset: filesize) -> result<output-stream, error-code>;
|
|
119
|
+
append-via-stream: func() -> result<output-stream, error-code>;
|
|
120
|
+
advise: func(offset: filesize, length: filesize, advice: advice) -> result<_, error-code>;
|
|
121
|
+
sync-data: func() -> result<_, error-code>;
|
|
122
|
+
get-flags: func() -> result<descriptor-flags, error-code>;
|
|
123
|
+
get-type: func() -> result<descriptor-type, error-code>;
|
|
124
|
+
set-size: func(size: filesize) -> result<_, error-code>;
|
|
125
|
+
set-times: func(data-access-timestamp: new-timestamp, data-modification-timestamp: new-timestamp) -> result<_, error-code>;
|
|
126
|
+
read: func(length: filesize, offset: filesize) -> result<tuple<list<u8>, bool>, error-code>;
|
|
127
|
+
write: func(buffer: list<u8>, offset: filesize) -> result<filesize, error-code>;
|
|
128
|
+
read-directory: func() -> result<directory-entry-stream, error-code>;
|
|
129
|
+
sync: func() -> result<_, error-code>;
|
|
130
|
+
create-directory-at: func(path: string) -> result<_, error-code>;
|
|
131
|
+
stat: func() -> result<descriptor-stat, error-code>;
|
|
132
|
+
stat-at: func(path-flags: path-flags, path: string) -> result<descriptor-stat, error-code>;
|
|
133
|
+
set-times-at: func(path-flags: path-flags, path: string, data-access-timestamp: new-timestamp, data-modification-timestamp: new-timestamp) -> result<_, error-code>;
|
|
134
|
+
link-at: func(old-path-flags: path-flags, old-path: string, new-descriptor: borrow<descriptor>, new-path: string) -> result<_, error-code>;
|
|
135
|
+
open-at: func(path-flags: path-flags, path: string, open-flags: open-flags, %flags: descriptor-flags) -> result<descriptor, error-code>;
|
|
136
|
+
readlink-at: func(path: string) -> result<string, error-code>;
|
|
137
|
+
remove-directory-at: func(path: string) -> result<_, error-code>;
|
|
138
|
+
rename-at: func(old-path: string, new-descriptor: borrow<descriptor>, new-path: string) -> result<_, error-code>;
|
|
139
|
+
symlink-at: func(old-path: string, new-path: string) -> result<_, error-code>;
|
|
140
|
+
unlink-file-at: func(path: string) -> result<_, error-code>;
|
|
141
|
+
is-same-object: func(other: borrow<descriptor>) -> bool;
|
|
142
|
+
metadata-hash: func() -> result<metadata-hash-value, error-code>;
|
|
143
|
+
metadata-hash-at: func(path-flags: path-flags, path: string) -> result<metadata-hash-value, error-code>;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
resource directory-entry-stream {
|
|
147
|
+
read-directory-entry: func() -> result<option<directory-entry>, error-code>;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
filesystem-error-code: func(err: borrow<error>) -> option<error-code>;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
interface preopens {
|
|
154
|
+
use types.{descriptor};
|
|
155
|
+
|
|
156
|
+
get-directories: func() -> list<tuple<descriptor, string>>;
|
|
157
|
+
}
|
|
158
|
+
|