思源笔记社区正在搭建中,现邀您共建
SiYuan Community is under construction. Join us to co-build.
原贴地址 https://ld246.com/article/1708493218325
阅读本帖时打开思源笔记并打开帮助文档效果更佳,部分链接会跳转到思源帮助文档


/键,然后输入sjk,回车。

[ 键就能对块进行引用。

工作空间\data\storage\av文件夹下以json格式保存。av, attribute view, 属性视图。 数据库功能最早是叫属性视图,后来随着功能的变化,改叫数据库了。

{
"spec": 0,
"id": "20240208163918-rxu3llx",
"name": "账单",
"keyValues": [{
"key": {
"id": "20240208163918-odyw3i7",
"name": "成员",
"type": "block",
"icon": "",
"numberFormat": "",
"template": ""
},
"values": [{
"id": "20240208163921-wnf3fqx",
"keyID": "20240208163918-odyw3i7",
"blockID": "20240208163920-51nyfyp",
"type": "block",
"isDetached": true,
"block": {
"id": "20240208163920-51nyfyp",
"content": "Daniel",
"created": 1707381561387,
"updated": 1707381900674
}
}, {
"id": "20240208164408-fwrlt7q",
"keyID": "20240208163918-odyw3i7",
"blockID": "20240208164407-q5jgzt1",
"type": "block",
"isDetached": true,
"block": {
"id": "20240208164407-q5jgzt1",
"content": "Vanessa",
"created": 1707381848145,
"updated": 1707381890239
}
}]
}, {
"key": {
"id": "20240208164200-aoez2h2",
"name": "餐饮",
"type": "number",
"icon": "",
"numberFormat": "",
"template": ""
},
"values": [{
"id": "20240208164415-frgrrdi",
"keyID": "20240208164200-aoez2h2",
"blockID": "20240208164407-q5jgzt1",
"type": "number",
"number": {
"content": 200,
"isNotEmpty": true,
"format": "",
"formattedContent": ""
}
}, {
"id": "20240208164450-ssb7h5h",
"keyID": "20240208164200-aoez2h2",
"blockID": "20240208163920-51nyfyp",
"type": "number",
"number": {
"content": 100,
"isNotEmpty": true,
"format": "",
"formattedContent": ""
}
}]
}, {
"key": {
"id": "20240208164420-mwu0h5t",
"name": "服装",
"type": "number",
"icon": "",
"numberFormat": "",
"template": ""
},
"values": [{
"id": "20240208164441-woggrha",
"keyID": "20240208164420-mwu0h5t",
"blockID": "20240208164407-q5jgzt1",
"type": "number",
"number": {
"content": 200,
"isNotEmpty": true,
"format": "",
"formattedContent": ""
}
}, {
"id": "20240208164457-fzglttu",
"keyID": "20240208164420-mwu0h5t",
"blockID": "20240208163920-51nyfyp",
"type": "number",
"number": {
"content": 100,
"isNotEmpty": true,
"format": "",
"formattedContent": ""
}
}]
}, {
"key": {
"id": "20240208164505-39qizr5",
"name": "模板",
"type": "template",
"icon": "",
"numberFormat": "",
"template": ".action{ addf .餐饮 .服装 }"
}
}],
"viewID": "20240208163918-47rg4d7",
"views": [{
"id": "20240208163918-47rg4d7",
"icon": "",
"name": "表格",
"type": "table",
"table": {
"spec": 0,
"id": "20240208163918-o93ff8j",
"columns": [{
"id": "20240208163918-odyw3i7",
"wrap": false,
"hidden": false,
"pin": false,
"width": "152px"
}, {
"id": "20240208164200-aoez2h2",
"wrap": false,
"hidden": false,
"pin": false,
"width": "97px"
}, {
"id": "20240208164420-mwu0h5t",
"wrap": false,
"hidden": false,
"pin": false,
"width": "126px"
}, {
"id": "20240208164505-39qizr5",
"wrap": false,
"hidden": false,
"pin": false,
"width": "129px"
}],
"rowIds": ["20240208164407-q5jgzt1", "20240208163920-51nyfyp"],
"filters": [],
"sorts": [],
"pageSize": 50
}
}]
}工作空间\data\storage\av文件夹下某个json文件。
经测试,删除所有数据库块,数据库的json文件也不会被删除,数据库并不会因为删除数据库块而丢失。后续有需要的话可以手动引用数据库。

[ 键就能对块进行引用。数据库的属性会在块的属性面板—数据库页签中显示,可以在这个页签中对数据库进行修改。

