Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd14174a

Browse files
authored
chore(*): re-version to0.2.0-draft (#8)
* chore(*): re-version to `0.2.0-draft`Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>* chore(ci): enable ciSigned-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>---------Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
1 parentfd9aa22 commitd14174a

File tree

3 files changed

+45
-45
lines changed

3 files changed

+45
-45
lines changed

‎.github/workflows/main.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
runs-on:ubuntu-latest
1212
steps:
1313
-uses:actions/checkout@v2
14-
#- uses: WebAssembly/wit-abi-up-to-date@v6
15-
# with:
16-
#wit-abi-tag: wit-abi-0.6.0
14+
-uses:WebAssembly/wit-abi-up-to-date@v17
15+
with:
16+
wit-bindgen:'0.18.0'

‎imports.md‎

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,114 +2,114 @@
22
<ul>
33
<li>Imports:
44
<ul>
5-
<li>interface <ahref="#wasi:sql_types_0.1.0"><code>wasi:sql/types@0.1.0</code></a></li>
6-
<li>interface <ahref="#wasi:sql_readwrite_0.1.0"><code>wasi:sql/readwrite@0.1.0</code></a></li>
5+
<li>interface <ahref="#wasi:sql_types_0.2.0_draft"><code>wasi:sql/types@0.2.0-draft</code></a></li>
6+
<li>interface <ahref="#wasi:sql_readwrite_0.2.0_draft"><code>wasi:sql/readwrite@0.2.0-draft</code></a></li>
77
</ul>
88
</li>
99
</ul>
10-
<h2><aname="wasi:sql_types_0.1.0">Import interface wasi:sql/types@0.1.0</a></h2>
10+
<h2><aname="wasi:sql_types_0.2.0_draft"></a>Import interface wasi:sql/types@0.2.0-draft</h2>
1111
<hr />
1212
<h3>Types</h3>
13-
<h4><aname="data_type"><code>variant data-type</code></a></h4>
13+
<h4><aname="data_type"></a><code>variant data-type</code></h4>
1414
<p>common data types</p>
1515
<h5>Variant Cases</h5>
1616
<ul>
17-
<li><aname="data_type.int32"><code>int32</code></a>: <code>s32</code></li>
18-
<li><aname="data_type.int64"><code>int64</code></a>: <code>s64</code></li>
19-
<li><aname="data_type.uint32"><code>uint32</code></a>: <code>u32</code></li>
20-
<li><aname="data_type.uint64"><code>uint64</code></a>: <code>u64</code></li>
21-
<li><aname="data_type.float"><code>float</code></a>: <code>float64</code></li>
22-
<li><aname="data_type.double"><code>double</code></a>: <code>float64</code></li>
23-
<li><aname="data_type.str"><code>str</code></a>: <code>string</code></li>
24-
<li><aname="data_type.boolean"><code>boolean</code></a>: <code>bool</code></li>
25-
<li><aname="data_type.date"><code>date</code></a>: <code>string</code></li>
26-
<li><aname="data_type.time"><code>time</code></a>: <code>string</code></li>
27-
<li><aname="data_type.timestamp"><code>timestamp</code></a>: <code>string</code></li>
28-
<li><aname="data_type.binary"><code>binary</code></a>: list&lt;<code>u8</code>&gt;</li>
29-
<li><aname="data_type.null"><code>null</code></a></li>
17+
<li><aname="data_type.int32"></a><code>int32</code>: <code>s32</code></li>
18+
<li><aname="data_type.int64"></a><code>int64</code>: <code>s64</code></li>
19+
<li><aname="data_type.uint32"></a><code>uint32</code>: <code>u32</code></li>
20+
<li><aname="data_type.uint64"></a><code>uint64</code>: <code>u64</code></li>
21+
<li><aname="data_type.float"></a><code>float</code>: <code>float64</code></li>
22+
<li><aname="data_type.double"></a><code>double</code>: <code>float64</code></li>
23+
<li><aname="data_type.str"></a><code>str</code>: <code>string</code></li>
24+
<li><aname="data_type.boolean"></a><code>boolean</code>: <code>bool</code></li>
25+
<li><aname="data_type.date"></a><code>date</code>: <code>string</code></li>
26+
<li><aname="data_type.time"></a><code>time</code>: <code>string</code></li>
27+
<li><aname="data_type.timestamp"></a><code>timestamp</code>: <code>string</code></li>
28+
<li><aname="data_type.binary"></a><code>binary</code>: list&lt;<code>u8</code>&gt;</li>
29+
<li><aname="data_type.null"></a><code>null</code></li>
3030
</ul>
31-
<h4><aname="row"><code>record row</code></a></h4>
31+
<h4><aname="row"></a><code>record row</code></h4>
3232
<p>one single row item</p>
3333
<h5>Record Fields</h5>
3434
<ul>
35-
<li><aname="row.field_name"><code>field-name</code></a>: <code>string</code></li>
36-
<li><aname="row.value"><code>value</code></a>: <ahref="#data_type"><ahref="#data_type"><code>data-type</code></a></a></li>
35+
<li><aname="row.field_name"></a><code>field-name</code>: <code>string</code></li>
36+
<li><aname="row.value"></a><code>value</code>: <ahref="#data_type"><ahref="#data_type"><code>data-type</code></a></a></li>
3737
</ul>
38-
<h4><aname="statement"><code>resource statement</code></a></h4>
38+
<h4><aname="statement"></a><code>resource statement</code></h4>
3939
<p>allows parameterized queries
4040
e.g., prepare(&quot;SELECT * FROM users WHERE name = ? AND age = ?&quot;, vec![&quot;John Doe&quot;,&quot;32&quot;])</p>
41-
<h4><aname="error"><code>resource error</code></a></h4>
41+
<h4><aname="error"></a><code>resource error</code></h4>
4242
<p>An error resource type.
4343
Currently, this provides only one function to return a string representation
4444
of the error. In the future, this will be extended to provide more information.</p>
45-
<h4><aname="connection"><code>resource connection</code></a></h4>
45+
<h4><aname="connection"></a><code>resource connection</code></h4>
4646
<h2>A connection to a sql store.</h2>
4747
<h3>Functions</h3>
48-
<h4><aname="static_statement.prepare"><code>[static]statement.prepare: func</code></a></h4>
48+
<h4><aname="static_statement.prepare"></a><code>[static]statement.prepare: func</code></h4>
4949
<h5>Params</h5>
5050
<ul>
51-
<li><aname="static_statement.prepare.query"><ahref="#query"><code>query</code></a></a>: <code>string</code></li>
52-
<li><aname="static_statement.prepare.params"><code>params</code></a>: list&lt;<code>string</code>&gt;</li>
51+
<li><aname="static_statement.prepare.query"></a><ahref="#query"><code>query</code></a>: <code>string</code></li>
52+
<li><aname="static_statement.prepare.params"></a><code>params</code>: list&lt;<code>string</code>&gt;</li>
5353
</ul>
5454
<h5>Return values</h5>
5555
<ul>
5656
<li><aname="static_statement.prepare.0"></a> result&lt;own&lt;<ahref="#statement"><ahref="#statement"><code>statement</code></a></a>&gt;, own&lt;<ahref="#error"><ahref="#error"><code>error</code></a></a>&gt;&gt;</li>
5757
</ul>
58-
<h4><aname="method_error.trace"><code>[method]error.trace: func</code></a></h4>
58+
<h4><aname="method_error.trace"></a><code>[method]error.trace: func</code></h4>
5959
<h5>Params</h5>
6060
<ul>
61-
<li><aname="method_error.trace.self"><code>self</code></a>: borrow&lt;<ahref="#error"><ahref="#error"><code>error</code></a></a>&gt;</li>
61+
<li><aname="method_error.trace.self"></a><code>self</code>: borrow&lt;<ahref="#error"><ahref="#error"><code>error</code></a></a>&gt;</li>
6262
</ul>
6363
<h5>Return values</h5>
6464
<ul>
6565
<li><aname="method_error.trace.0"></a> <code>string</code></li>
6666
</ul>
67-
<h4><aname="static_connection.open"><code>[static]connection.open: func</code></a></h4>
67+
<h4><aname="static_connection.open"></a><code>[static]connection.open: func</code></h4>
6868
<h5>Params</h5>
6969
<ul>
70-
<li><aname="static_connection.open.name"><code>name</code></a>: <code>string</code></li>
70+
<li><aname="static_connection.open.name"></a><code>name</code>: <code>string</code></li>
7171
</ul>
7272
<h5>Return values</h5>
7373
<ul>
7474
<li><aname="static_connection.open.0"></a> result&lt;own&lt;<ahref="#connection"><ahref="#connection"><code>connection</code></a></a>&gt;, own&lt;<ahref="#error"><ahref="#error"><code>error</code></a></a>&gt;&gt;</li>
7575
</ul>
76-
<h2><aname="wasi:sql_readwrite_0.1.0">Import interface wasi:sql/readwrite@0.1.0</a></h2>
76+
<h2><aname="wasi:sql_readwrite_0.2.0_draft"></a>Import interface wasi:sql/readwrite@0.2.0-draft</h2>
7777
<hr />
7878
<h3>Types</h3>
79-
<h4><aname="statement"><code>type statement</code></a></h4>
79+
<h4><aname="statement"></a><code>type statement</code></h4>
8080
<p><ahref="#statement"><ahref="#statement"><code>statement</code></a></a></p>
8181
<p>
82-
####<aname="row">`type row`</a>
82+
####<aname="row"></a>`type row`
8383
[`row`](#row)
8484
<p>
85-
####<aname="error">`type error`</a>
85+
####<aname="error"></a>`type error`
8686
[`error`](#error)
8787
<p>
88-
####<aname="connection">`type connection`</a>
88+
####<aname="connection"></a>`type connection`
8989
[`connection`](#connection)
9090
<p>
9191
----
9292
<h3>Functions</h3>
93-
<h4><aname="query"><code>query: func</code></a></h4>
93+
<h4><aname="query"></a><code>query: func</code></h4>
9494
<p>query is optimized for querying data, and
9595
implementors can make use of that fact to optimize
9696
the performance of query execution (e.g., using
9797
indexes).</p>
9898
<h5>Params</h5>
9999
<ul>
100-
<li><aname="query.c"><code>c</code></a>: borrow&lt;<ahref="#connection"><ahref="#connection"><code>connection</code></a></a>&gt;</li>
101-
<li><aname="query.q"><code>q</code></a>: borrow&lt;<ahref="#statement"><ahref="#statement"><code>statement</code></a></a>&gt;</li>
100+
<li><aname="query.c"></a><code>c</code>: borrow&lt;<ahref="#connection"><ahref="#connection"><code>connection</code></a></a>&gt;</li>
101+
<li><aname="query.q"></a><code>q</code>: borrow&lt;<ahref="#statement"><ahref="#statement"><code>statement</code></a></a>&gt;</li>
102102
</ul>
103103
<h5>Return values</h5>
104104
<ul>
105105
<li><aname="query.0"></a> result&lt;list&lt;<ahref="#row"><ahref="#row"><code>row</code></a></a>&gt;, own&lt;<ahref="#error"><ahref="#error"><code>error</code></a></a>&gt;&gt;</li>
106106
</ul>
107-
<h4><aname="exec"><code>exec: func</code></a></h4>
107+
<h4><aname="exec"></a><code>exec: func</code></h4>
108108
<p>exec is for modifying data in the database.</p>
109109
<h5>Params</h5>
110110
<ul>
111-
<li><aname="exec.c"><code>c</code></a>: borrow&lt;<ahref="#connection"><ahref="#connection"><code>connection</code></a></a>&gt;</li>
112-
<li><aname="exec.q"><code>q</code></a>: borrow&lt;<ahref="#statement"><ahref="#statement"><code>statement</code></a></a>&gt;</li>
111+
<li><aname="exec.c"></a><code>c</code>: borrow&lt;<ahref="#connection"><ahref="#connection"><code>connection</code></a></a>&gt;</li>
112+
<li><aname="exec.q"></a><code>q</code>: borrow&lt;<ahref="#statement"><ahref="#statement"><code>statement</code></a></a>&gt;</li>
113113
</ul>
114114
<h5>Return values</h5>
115115
<ul>

‎wit/sql.wit‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
packagewasi:sql@0.1.0;
1+
packagewasi:sql@0.2.0-draft;
22

33
worldimports {
44
importreadwrite;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp