Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CSDN 技术社区
skill_tree_pg
提交
481910f1
S
skill_tree_pg
项目概览
CSDN 技术社区
/
skill_tree_pg
通知
9
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
2
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skill_tree_pg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
2
Issue
2
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
481910f1
编写于
12月 03, 2021
作者:
M
Mars Liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add export missed
上级
a2f1bb33
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
54 addition
and
11 deletion
+54
-11
data/2.PostgreSQL中阶/1.PostgreSQL数据库的基本结构/6.数据库扩展/config.json
data/2.PostgreSQL中阶/1.PostgreSQL数据库的基本结构/6.数据库扩展/config.json
+10
-2
data/2.PostgreSQL中阶/2.服务端编程/1.聚合和分组/config.json
data/2.PostgreSQL中阶/2.服务端编程/1.聚合和分组/config.json
+8
-2
data/2.PostgreSQL中阶/2.服务端编程/2.连接查询/config.json
data/2.PostgreSQL中阶/2.服务端编程/2.连接查询/config.json
+8
-2
data/2.PostgreSQL中阶/2.服务端编程/5.CTE/config.json
data/2.PostgreSQL中阶/2.服务端编程/5.CTE/config.json
+9
-2
data/3.PostgreSQL高阶/1.集群和复制/3.fdw/config.json
data/3.PostgreSQL高阶/1.集群和复制/3.fdw/config.json
+8
-2
src/tree.py
src/tree.py
+11
-1
未找到文件。
data/2.PostgreSQL中阶/1.PostgreSQL数据库的基本结构/6.数据库扩展/config.json
浏览文件 @
481910f1
{
{
"node_id"
:
"pg-d2b6e840cfad44a2aa357cfee56d437d"
,
"node_id"
:
"pg-d2b6e840cfad44a2aa357cfee56d437d"
,
"keywords"
:
[
"数据库扩展"
,
"数据库插件"
,
"extension"
],
"keywords"
:
[
"数据库扩展"
,
"数据库插件"
,
"extension"
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[
"language.json"
,
"extension.json"
]
}
}
\ No newline at end of file
data/2.PostgreSQL中阶/2.服务端编程/1.聚合和分组/config.json
浏览文件 @
481910f1
{
{
"node_id"
:
"pg-3a87b0dbead643e58f1ff1d93acd80cc"
,
"node_id"
:
"pg-3a87b0dbead643e58f1ff1d93acd80cc"
,
"keywords"
:
[
"group by"
,
"分组"
],
"keywords"
:
[
"group by"
,
"分组"
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[
"salary.json"
]
}
}
\ No newline at end of file
data/2.PostgreSQL中阶/2.服务端编程/2.连接查询/config.json
浏览文件 @
481910f1
{
{
"node_id"
:
"pg-458d5d590ea64188847b45d8e6343f83"
,
"node_id"
:
"pg-458d5d590ea64188847b45d8e6343f83"
,
"keywords"
:
[
"join"
,
"连接查询"
],
"keywords"
:
[
"join"
,
"连接查询"
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[
"customer_order.json"
]
}
}
\ No newline at end of file
data/2.PostgreSQL中阶/2.服务端编程/5.CTE/config.json
浏览文件 @
481910f1
{
{
"node_id"
:
"pg-6beb084543204f4f9d87930c0a6c5707"
,
"node_id"
:
"pg-6beb084543204f4f9d87930c0a6c5707"
,
"keywords"
:
[
"common table expression"
,
"cte"
,
"recursive"
],
"keywords"
:
[
"common table expression"
,
"cte"
,
"recursive"
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[
"to_root.json"
]
}
}
\ No newline at end of file
data/3.PostgreSQL高阶/1.集群和复制/3.fdw/config.json
浏览文件 @
481910f1
{
{
"node_id"
:
"pg-20a433f6ae65429f9b1a7f17c751ac01"
,
"node_id"
:
"pg-20a433f6ae65429f9b1a7f17c751ac01"
,
"keywords"
:
[
"外部数据连接"
,
"fdw"
],
"keywords"
:
[
"外部数据连接"
,
"fdw"
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[
"fdw.json"
]
}
}
\ No newline at end of file
src/tree.py
浏览文件 @
481910f1
...
@@ -306,13 +306,23 @@ class TreeWalker:
...
@@ -306,13 +306,23 @@ class TreeWalker:
def
ensure_exercises
(
self
,
section_path
):
def
ensure_exercises
(
self
,
section_path
):
config
=
self
.
ensure_section_config
(
section_path
)
config
=
self
.
ensure_section_config
(
section_path
)
flag
=
False
for
e
in
os
.
listdir
(
section_path
):
for
e
in
os
.
listdir
(
section_path
):
base
,
ext
=
os
.
path
.
splitext
(
e
)
base
,
ext
=
os
.
path
.
splitext
(
e
)
_
,
source
=
os
.
path
.
split
(
e
)
_
,
source
=
os
.
path
.
split
(
e
)
if
ext
!=
".md"
:
if
ext
!=
".md"
:
continue
continue
meta_path
=
os
.
path
.
join
(
section_path
,
base
+
".json"
)
mfile
=
base
+
".json"
meta_path
=
os
.
path
.
join
(
section_path
,
mfile
)
self
.
ensure_exercises_meta
(
meta_path
,
source
)
self
.
ensure_exercises_meta
(
meta_path
,
source
)
export
=
config
.
get
(
"export"
,
[])
if
mfile
not
in
export
:
export
.
append
(
mfile
)
flag
=
True
config
[
"export"
]
=
export
if
flag
:
dump_json
(
os
.
path
.
join
(
section_path
,
"config.json"
),
config
,
True
,
True
)
for
e
in
config
.
get
(
"export"
,
[]):
for
e
in
config
.
get
(
"export"
,
[]):
full_name
=
os
.
path
.
join
(
section_path
,
e
)
full_name
=
os
.
path
.
join
(
section_path
,
e
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录