forked from siyuan-note/siyuan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path20240208113259-nykkvaq.sy
More file actions
684 lines (684 loc) · 14.5 KB
/
20240208113259-nykkvaq.sy
File metadata and controls
684 lines (684 loc) · 14.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
{
"ID": "20240208113259-nykkvaq",
"Spec": "1",
"Type": "NodeDocument",
"Properties": {
"icon": "1f5c3-fe0f",
"id": "20240208113259-nykkvaq",
"title": "数据库",
"type": "doc",
"updated": "20250311200010"
},
"Children": [
{
"ID": "20240208113259-sp3g7zb",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20240208113259-sp3g7zb",
"updated": "20240208114023"
},
"Children": [
{
"Type": "NodeText",
"Data": "概述"
}
]
},
{
"ID": "20240208114024-40auf5m",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208114024-40auf5m",
"updated": "20240208115135"
},
"Children": [
{
"Type": "NodeText",
"Data": "数据库由内容块或者非内容块数据组成,并以不同视图呈现,比如表格视图和看板视图(看板视图还在开发中)。"
}
]
},
{
"ID": "20240208115136-9g2b46l",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20240208115136-9g2b46l",
"updated": "20250115152026"
},
"Children": [
{
"Type": "NodeText",
"Data": "表格视图"
}
]
},
{
"ID": "20240208115415-bvq6noy",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20240208115415-bvq6noy",
"updated": "20250115152026"
},
"Children": [
{
"ID": "20240208115511-6a9a2xn",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20240208115511-6a9a2xn",
"updated": "20240208164823"
},
"Children": [
{
"ID": "20240208115511-eia5i60",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208115511-eia5i60",
"updated": "20240208164823"
},
"Children": [
{
"Type": "NodeText",
"Data": "通过 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "/数据库"
},
{
"Type": "NodeText",
"Data": " 创建,默认视图即表格视图"
}
]
}
]
},
{
"ID": "20240208115512-ecutymg",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20240208115512-ecutymg",
"updated": "20240208164333"
},
"Children": [
{
"ID": "20240208115512-pcoezgv",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208115512-pcoezgv",
"updated": "20240208164333"
},
"Children": [
{
"Type": "NodeText",
"Data": "添加不同类型的字段"
}
]
}
]
},
{
"ID": "20240208115523-6cy1bjq",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20240208115523-6cy1bjq",
"updated": "20250115152026"
},
"Children": [
{
"ID": "20240208115523-8vancj5",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208115523-8vancj5",
"updated": "20240208115528"
},
"Children": [
{
"Type": "NodeText",
"Data": "添加条目"
}
]
},
{
"ID": "20240208115529-u91catr",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20240208115529-u91catr",
"updated": "20250115152026"
},
"Children": [
{
"ID": "20240208115529-6o006s5",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20240208115529-6o006s5"
},
"Children": [
{
"ID": "20240208115529-h73qpv6",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208115529-h73qpv6",
"updated": "20240208115626"
},
"Children": [
{
"Type": "NodeText",
"Data": "非内容块:直接在表格中添加的条目,不绑定到任何内容块"
}
]
}
]
},
{
"ID": "20240208115626-nvhu91r",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20240208115626-nvhu91r",
"updated": "20250115152026"
},
"Children": [
{
"ID": "20240208115626-5tboobu",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208115626-5tboobu",
"updated": "20250115152026"
},
"Children": [
{
"Type": "NodeText",
"Data": "内容块:通过拖拽到表格添加的条目,或者通过块标菜单 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "添加到数据库"
},
{
"Type": "NodeText",
"Data": " 添加的条目"
}
]
}
]
}
]
}
]
},
{
"ID": "20240208120016-3d7euem",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20240208120016-3d7euem",
"updated": "20240208120104"
},
"Children": [
{
"ID": "20240208120016-7vdgyf1",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208120016-7vdgyf1",
"updated": "20240208120104"
},
"Children": [
{
"Type": "NodeText",
"Data": "按需设置过滤和排序"
}
]
}
]
},
{
"ID": "20240208115934-tayls7s",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20240208115934-tayls7s",
"updated": "20240208120115"
},
"Children": [
{
"ID": "20240208115934-aowaqra",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208115934-aowaqra",
"updated": "20240208120115"
},
"Children": [
{
"Type": "NodeText",
"Data": "同一个数据库可以添加多个视图,所有视图共享相同的数据,但过滤和排序设置相互独立"
}
]
}
]
}
]
},
{
"ID": "20240208115420-4440x2c",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20240208115420-4440x2c",
"updated": "20240208120133"
},
"Children": [
{
"Type": "NodeText",
"Data": "镜像数据库"
}
]
},
{
"ID": "20240208120134-fu4vdbm",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208120134-fu4vdbm",
"updated": "20240208120322"
},
"Children": [
{
"Type": "NodeText",
"Data": "复制数据库块后粘贴将形成镜像数据库,即这些数据库块共享相同的数据库数据,修改任何一个数据库块的数据会同步到其他所有镜像中。"
}
]
},
{
"ID": "20240208120825-ktzju1z",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20240208120825-ktzju1z",
"updated": "20240208162539"
},
"Children": [
{
"Type": "NodeText",
"Data": "关联和汇总"
}
]
},
{
"ID": "20240208120943-f2nyglj",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208120943-f2nyglj",
"updated": "20240208162557"
},
"Children": [
{
"Type": "NodeText",
"Data": "两个数据库之间可以通过 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "关联"
},
{
"Type": "NodeText",
"Data": " 建立联系,以便联动管理。比如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "作者"
},
{
"Type": "NodeText",
"Data": " 和 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "书籍"
},
{
"Type": "NodeText",
"Data": " 两个数据库之间的关联:"
}
]
},
{
"ID": "20240208155807-kf97pho",
"Type": "NodeAttributeView",
"Properties": {
"id": "20240208155807-kf97pho",
"updated": "20240208162539"
},
"AttributeViewID": "20240208155809-en6nazm",
"AttributeViewType": "table"
},
{
"ID": "20240208155914-zazoj5v",
"Type": "NodeAttributeView",
"Properties": {
"id": "20240208155914-zazoj5v",
"updated": "20240208162539"
},
"AttributeViewID": "20240208155918-uylgwbj",
"AttributeViewType": "table"
},
{
"ID": "20240208161029-tbovh3b",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208161029-tbovh3b",
"updated": "20240208162625"
},
"Children": [
{
"Type": "NodeText",
"Data": "在 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "作者"
},
{
"Type": "NodeText",
"Data": " 数据库中 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "作品数"
},
{
"Type": "NodeText",
"Data": " 汇总对其 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "作品"
},
{
"Type": "NodeText",
"Data": " 进行了汇总统计,统计方式是 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "条目数"
},
{
"Type": "NodeText",
"Data": "。"
}
]
},
{
"ID": "20240208120846-72y7j0d",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20240208120846-72y7j0d",
"updated": "20250101093504"
},
"Children": [
{
"Type": "NodeText",
"Data": "模板"
}
]
},
{
"ID": "20240208120239-p91v2cn",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208120239-p91v2cn",
"updated": "20240208164309"
},
"Children": [
{
"Type": "NodeText",
"Data": "模板可通过"
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20201204181006-7bkppue",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "模板片段"
},
{
"Type": "NodeText",
"Data": "中介绍的语法访问、计算并渲染同一条数据中其他字段的值:"
}
]
},
{
"ID": "20240208162800-hi8z1sj",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20240208162800-hi8z1sj",
"updated": "20240208162801"
},
"Children": [
{
"ID": "20240208162801-4txax3h",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20240208162801-4txax3h",
"updated": "20240208162801"
},
"Children": [
{
"ID": "20240208162801-3tr9m71",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208162801-3tr9m71",
"updated": "20240208164326"
},
"Children": [
{
"Type": "NodeText",
"Data": "使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": ".action{ .字段名 }"
},
{
"Type": "NodeText",
"Data": " 访问视图字段"
}
]
}
]
},
{
"ID": "20240208163449-al30pyy",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20240208163449-al30pyy"
},
"Children": [
{
"ID": "20240208163449-byqawlo",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208163449-byqawlo",
"updated": "20240208163640"
},
"Children": [
{
"Type": "NodeText",
"Data": "使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": ".action{ index . \u0026quot;custom-xxx\u0026quot; }"
},
{
"Type": "NodeText",
"Data": " 访问内容块自定义属性"
}
]
}
]
}
]
},
{
"ID": "20240208164554-2lmfwcw",
"Type": "NodeParagraph",
"Properties": {
"id": "20240208164554-2lmfwcw",
"updated": "20240208165258"
},
"Children": [
{
"Type": "NodeText",
"Data": "比如下面的 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "账单"
},
{
"Type": "NodeText",
"Data": " 数据库 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "模板"
},
{
"Type": "NodeText",
"Data": " 字段演示了 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "餐饮"
},
{
"Type": "NodeText",
"Data": " 和 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "服装"
},
{
"Type": "NodeText",
"Data": " 求和:"
}
]
},
{
"ID": "20240208163916-efx3nkg",
"Type": "NodeAttributeView",
"Properties": {
"id": "20240208163916-efx3nkg",
"updated": "20250101093504"
},
"AttributeViewID": "20240208163918-rxu3llx",
"AttributeViewType": "table"
},
{
"ID": "20240818174119-3zag9wr",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20240818174119-3zag9wr",
"updated": "20250311200010"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "tag",
"TextMarkTextContent": "注意"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"ID": "20240818174124-ab1x2an",
"Type": "NodeParagraph",
"Properties": {
"id": "20240818174124-ab1x2an",
"updated": "20250311200010"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果需要在数据库单元格中换行,请使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Shift"
},
{
"Type": "NodeText",
"Data": "+"
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "回车"
},
{
"Type": "NodeText",
"Data": " 。"
}
]
}
]
}