Skip to content

Commit 27c03b8

Browse files
committed
2 parents d8fb015 + d5f8014 commit 27c03b8

File tree

134 files changed

+11717
-1466
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+11717
-1466
lines changed

bun.lockb

6.55 KB
Binary file not shown.
134 KB
Loading
139 KB
Loading
21.5 KB
Loading

src/components/layout/Navbar/Navbar.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ import LightUniversity from '@img/icon/light/university-light.png';
105105
<NavItem href="/docs/surrealist">
106106
Surrealist
107107
</NavItem>
108+
<NavItem href="/docs/surrealdb/querying/surrealism">
109+
Surrealism
110+
</NavItem>
108111
<NavItem href="/docs/cloud">
109112
Cloud
110113
</NavItem>

src/content/doc-sdk-golang/methods/live.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import (
6767

6868
// formatRecordResult formats a record result (map[string]any) for testing.
6969
// This is used for regular live query results (without diff) and DELETE operations.
70-
// It handles the id field specially, formatting RecordID as table:UUID.
70+
// It handles the id field specially, formatting RecordID as table:`UUID`.
7171
func formatRecordResult(record map[string]any) string {
7272
keys := make([]string, 0, len(record))
7373
for k := range record {
@@ -81,7 +81,7 @@ func formatRecordResult(record map[string]any) string {
8181
if k == "id" {
8282
// The id field must be a models.RecordID
8383
recordID := val.(models.RecordID)
84-
parts = append(parts, fmt.Sprintf("id=%s:UUID", recordID.Table))
84+
parts = append(parts, fmt.Sprintf("id=%s:`UUID`", recordID.Table))
8585
} else {
8686
parts = append(parts, fmt.Sprintf("%s=%v", k, val))
8787
}
@@ -118,7 +118,7 @@ func formatPatchDataMap(data map[string]any) string {
118118
if k == "id" {
119119
// The id field in patch data is also a models.RecordID
120120
recordID := val.(models.RecordID)
121-
parts = append(parts, fmt.Sprintf("id=%s:UUID", recordID.Table))
121+
parts = append(parts, fmt.Sprintf("id=%s:`UUID`", recordID.Table))
122122
} else {
123123
parts = append(parts, fmt.Sprintf("%s=%v", k, val))
124124
}
@@ -255,11 +255,11 @@ func ExampleLive() {
255255

256256
// Output:
257257
// Started live query
258-
// Received notification - Action: CREATE, Result: {[email protected] id=users:UUID username=alice}
258+
// Received notification - Action: CREATE, Result: {[email protected] id=users:`UUID` username=alice}
259259
// New user created
260-
// Received notification - Action: UPDATE, Result: {[email protected] id=users:UUID}
260+
// Received notification - Action: UPDATE, Result: {[email protected] id=users:`UUID`}
261261
// User updated
262-
// Received notification - Action: DELETE, Result: {[email protected] id=users:UUID}
262+
// Received notification - Action: DELETE, Result: {[email protected] id=users:`UUID`}
263263
// User deleted
264264
// Live query terminated
265265
// Notification channel closed
@@ -381,9 +381,9 @@ func ExampleQuery_live() {
381381

382382
// Output:
383383
// Started live query
384-
// Notification 1 - Action: CREATE, Result: {id=products:UUID name=Widget price=9.99 stock=5}
385-
// Notification 2 - Action: CREATE, Result: {id=products:UUID name=Gadget price=19.99 stock=3}
386-
// Notification 3 - Action: CREATE, Result: {id=products:UUID name=Rare Item price=99.99 stock=1}
384+
// Notification 1 - Action: CREATE, Result: {id=products:`UUID` name=Widget price=9.99 stock=5}
385+
// Notification 2 - Action: CREATE, Result: {id=products:`UUID` name=Gadget price=19.99 stock=3}
386+
// Notification 3 - Action: CREATE, Result: {id=products:`UUID` name=Rare Item price=99.99 stock=1}
387387
// Live query terminated
388388
// Notification channel closed
389389
// Goroutine exited after channel closed
@@ -496,9 +496,9 @@ func ExampleLive_withDiff() {
496496

497497
// Output:
498498
// Started live query with diff enabled
499-
// Action: CREATE, Result: [{op=replace path=/ value={id=inventory:UUID name=Screwdriver quantity=50}}]
499+
// Action: CREATE, Result: [{op=replace path=/ value={id=inventory:`UUID` name=Screwdriver quantity=50}}]
500500
// Action: UPDATE, Result: [{op=remove path=/name} {op=replace path=/quantity value=45}]
501-
// Action: DELETE, Result: {id=inventory:UUID quantity=45}
501+
// Action: DELETE, Result: {id=inventory:`UUID` quantity=45}
502502
// Live query with diff terminated
503503
// Notification channel closed
504504
// Goroutine exited after channel closed

src/content/doc-sdk-javascript/data-types.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,13 +468,13 @@ new RecordId('table', 'abc').toString();
468468

469469
```ts title="Complex characters"
470470
new RecordId('table', '123').toString();
471-
// 'table:123'
471+
// 'table:`123`'
472472
new RecordId('table', '123withletters').toString();
473473
// 'table:123withletters'
474474
new RecordId('table', 'complex-string').toString();
475-
// 'table:complex-string'
475+
// 'table:`complex-string`'
476476
new RecordId('table-name', 123).toString();
477-
// 'table-name:123'
477+
// '`table-name`:123'
478478
```
479479

480480
```ts title="Objects and Arrays"

src/content/doc-sdk-php/data-types.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ $rid = (new RecordId("table", "abc"))->toString();
194194

195195
```php title="Complex characters"
196196
$rid = (new RecordId("table", "123"))->toString();
197-
// 'table:123'
197+
// 'table:`123`'
198198
$rid = (new RecordId("table", "123withletters"))->toString();
199199
// 'table:123withletters'
200200
$rid = (new RecordId("table", "complex-string"))->toString();
201-
// 'table:complex-string'
201+
// 'table:`complex-string`'
202202
$rid = (new RecordId("table-name", 123))->toString();
203-
// 'table-name:123'
203+
// '`table-name`:123'
204204
```
205205

206206
```php title="Objects and Arrays"

src/content/doc-sdk-php/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import DarkPhp from "@img/icon/dark/php.png";
1818
import DarkLaravel from "@img/icon/dark/laravel.png";
1919
import DarkSymfony from "@img/icon/dark/symfony.png";
2020

21-
import LightLogo from "@img/icon/light/java.png";
22-
import DarkLogo from "@img/icon/dark/java.png";
21+
import LightLogo from "@img/icon/light/php.png";
22+
import DarkLogo from "@img/icon/dark/php.png";
2323

2424
<div class="flag-title">
2525
<Image

src/content/doc-sdk-python/data-types.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,13 +450,13 @@ str(RecordID('table', 'abc'))
450450
from surrealdb import RecordID
451451

452452
str(RecordID('table', '123'))
453-
# 'table:123'
453+
# 'table:`123`'
454454
str(RecordID('table', '123withletters'))
455455
# 'table:123withletters'
456456
str(RecordID('table', 'complex-string'))
457-
# 'table:complex-string'
457+
# 'table:`complex-string`'
458458
str(RecordID('table-name', 123))
459-
# 'table-name:123'
459+
# '`table-name`:123'
460460
```
461461

462462
```python title="Objects and Arrays"
@@ -485,7 +485,7 @@ print(record_id.id) # "john"
485485
from surrealdb import RecordID
486486

487487
# Parse RecordID with special characters in the ID
488-
record_id = RecordID.parse("item:complex-id")
488+
record_id = RecordID.parse("item:`complex-id`")
489489
print(record_id.table_name) # "item"
490490
print(record_id.id) # "complex-id"
491491
```

0 commit comments

Comments
 (0)