Skip to content

Commit 6a906b3

Browse files
authored
Merge pull request #217 from itowlson/spin-4.0.1
Spin 4.0.1 updates
2 parents 1b94e39 + 83c6932 commit 6a906b3

19 files changed

Lines changed: 355 additions & 289 deletions

content/v4/build.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,21 @@ command = "componentize-py -w spin-http componentize app -o app.wasm"
122122

123123
{{ blockEnd }}
124124

125-
{{ startTab "TinyGo" }}
125+
{{ startTab "Go" }}
126126

127-
For Go applications, you must use the TinyGo compiler, as the standard Go compiler does not yet support the WASI standard. See the [TinyGo installation guide](https://tinygo.org/getting-started/install/).
127+
For Go applications, you must use Go 1.25.5 or above, and you must have this line in `go.mod`:
128128

129-
The build command calls TinyGo with the WASI backend and appropriate options:
129+
```
130+
tool github.com/bytecodealliance/componentize-go
131+
```
132+
133+
The build command calls the `componentize-go` tool:
130134

131135
<!-- @nocpy -->
132136

133137
```toml
134138
[component.hello.build]
135-
command = "tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm ."
139+
command = "go tool componentize-go build"
136140
```
137141

138142
{{ blockEnd }}

content/v4/contributing-docs.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,20 +211,21 @@ test.sh
211211
- `Generic Kubernetes`
212212
- `GitHub CLI`
213213
- `GitHub UI`
214+
- `Go`
214215
- `K3d`
215216
- `Linux`
216217
- `macOS`
217218
- `Python`
218219
- `Rust`
219-
- `TinyGo`
220+
- `TinyGo` (no longer used in new documentation)
220221
- `TypeScript`
221-
- `v0.9.0`
222-
- `v0.10.0`
223-
- `v1.0.0`
224-
- `v1.1.0`
225-
- `v1.2.0`
226-
- `v0.1.0`
227-
- `v0.1.1`
222+
- `v0.9.0` (no longer used in new documentation)
223+
- `v0.10.0` (no longer used in new documentation)
224+
- `v1.0.0` (no longer used in new documentation)
225+
- `v1.1.0` (no longer used in new documentation)
226+
- `v1.2.0` (no longer used in new documentation)
227+
- `v0.1.0` (no longer used in new documentation)
228+
- `v0.1.1` (no longer used in new documentation)
228229
- `Windows`
229230

230231
The next section covers the highly recommended use of ToCs.

content/v4/dynamic-configuration.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ url = "https://github.com/spinframework/spin-docs/blob/main/content/v4/dynamic-c
1515
- [Azure Key Vault Application Variable Provider Example](#azure-key-vault-application-variable-provider-example)
1616
- [Key Value Store Runtime Configuration](#key-value-store-runtime-configuration)
1717
- [File Key Value Store Provider](#file-key-value-store-provider)
18+
- [Limits and Requirements](#limits-and-requirements)
1819
- [Redis Key Value Store Provider](#redis-key-value-store-provider)
20+
- [Limits and Requirements](#limits-and-requirements-1)
1921
- [Azure CosmosDB Key Value Store Provider](#azure-cosmosdb-key-value-store-provider)
22+
- [Limits and Requirements](#limits-and-requirements-2)
2023
- [AWS DynamoDB Key Value Store Provider](#aws-dynamodb-key-value-store-provider)
24+
- [Limits and Requirements](#limits-and-requirements-3)
2125
- [Multiple and Non-Default Key-Value Stores](#multiple-and-non-default-key-value-stores)
2226
- [SQLite Storage Runtime Configuration](#sqlite-storage-runtime-configuration)
2327
- [LibSQL Storage Provider](#libsql-storage-provider)
@@ -392,6 +396,17 @@ path = "/super/secret/monies.db"
392396

393397
Spin creates any database files that don't exist. However, it is up to you to delete them when you no longer need them.
394398

399+
By default, filesystem databases may not use the `ATTACH` statement with persistent files. You can enable this using the `allow_attach_file` setting:
400+
401+
```toml
402+
[sqlite_database.i-haz-the-datas]
403+
type = "spin"
404+
path = "snaffles.db"
405+
allow_attach_file = true
406+
```
407+
408+
`ATTACH`-ing a memory or tempfile database is always allowed.
409+
395410
### LibSQL Storage Provider
396411

397412
Spin can also use [libSQL](https://libsql.org/) databases accessed over HTTPS. libSQL is fully compatible with SQLite but provides additional features including remote, distributed databases.

0 commit comments

Comments
 (0)