Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
c938baa5
D
dbeaver
项目概览
suliangchun
/
dbeaver
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dbeaver
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c938baa5
编写于
11月 29, 2017
作者:
A
Andrew Khitrin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Queries for grouping
Former-commit-id:
57750c4e
上级
950b24b0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
34 addition
and
12 deletion
+34
-12
plugins/org.jkiss.dbeaver.ext.postgresql/plugin.properties
plugins/org.jkiss.dbeaver.ext.postgresql/plugin.properties
+4
-0
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreTable.java
.../org/jkiss/dbeaver/ext/postgresql/model/PostgreTable.java
+2
-2
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreTablePartition.java
...s/dbeaver/ext/postgresql/model/PostgreTablePartition.java
+28
-10
未找到文件。
plugins/org.jkiss.dbeaver.ext.postgresql/plugin.properties
浏览文件 @
c938baa5
...
...
@@ -331,6 +331,10 @@ meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTableReal.rowCountEstimate.na
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTableReal.rowCountEstimate.description
=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTableReal.diskSpace.name=Disk Space
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTableReal.diskSpace.description
=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTablePartition.partKeys.name=Partition Keys
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTablePartition.partKeys.description
=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTablespace.name.name=Name
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTablespace.name.description
=
meta.org.jkiss.dbeaver.ext.postgresql.model.PostgreTablespace.options.name=Options
...
...
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreTable.java
浏览文件 @
c938baa5
...
...
@@ -51,7 +51,7 @@ public abstract class PostgreTable extends PostgreTableReal implements DBDPseudo
private
static
final
Log
log
=
Log
.
getLog
(
PostgreTable
.
class
);
private
SimpleObjectCache
<
PostgreTable
,
PostgreTableForeignKey
>
foreignKeys
=
new
SimpleObjectCache
<>();
private
List
<
PostgreTable
Base
>
partitions
=
null
;
private
List
<
PostgreTable
Partition
>
partitions
=
null
;
private
List
<
PostgreTableBase
>
children
=
null
;
private
boolean
hasOids
;
...
...
@@ -288,7 +288,7 @@ public abstract class PostgreTable extends PostgreTableReal implements DBDPseudo
for
(
PostgreTableBase
t
:
getSchema
().
tableCache
.
getCachedObjects
())
{
if
(
t
.
isParentOf
(
this
.
getObjectId
())
&&
t
.
isPartition
())
{
partitions
.
add
(
t
);
partitions
.
add
(
new
PostgreTablePartition
(
t
.
getContainer
(),
t
,
t
.
isPersisted
())
);
}
}
}
...
...
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreTablePartition.java
浏览文件 @
c938baa5
...
...
@@ -17,20 +17,37 @@
*/
package
org.jkiss.dbeaver.ext.postgresql.model
;
import
java.
util.Lis
t
;
import
java.
sql.ResultSe
t
;
import
org.jkiss.code.NotNull
;
import
org.jkiss.code.Nullable
;
import
org.jkiss.dbeaver.DBException
;
import
org.jkiss.dbeaver.model.DBPEvaluationContext
;
import
org.jkiss.dbeaver.model.meta.Property
;
import
org.jkiss.dbeaver.model.runtime.DBRProgressMonitor
;
import
org.jkiss.dbeaver.model.struct.DBSEntityAssociation
;
import
org.jkiss.dbeaver.model.struct.DBSEntityConstraint
;
import
org.jkiss.dbeaver.model.struct.DBSEntityConstraintType
;
import
org.jkiss.dbeaver.model.struct.DBSEntity
;
public
class
PostgreTablePartition
extends
PostgreTable
ConstraintBase
implements
DBSEntityAssociation
public
class
PostgreTablePartition
extends
PostgreTable
{
public
static
final
String
CAT_PARTITIONING
=
"Partitioning"
;
public
PostgreTablePartition
(
PostgreSchema
catalog
)
{
super
(
catalog
);
}
public
PostgreTablePartition
(
PostgreSchema
catalog
,
ResultSet
dbResult
)
{
super
(
catalog
,
dbResult
);
}
public
PostgreTablePartition
(
PostgreSchema
container
,
DBSEntity
source
,
boolean
persisted
)
{
super
(
container
,
source
,
persisted
);
}
@Property
(
category
=
CAT_PARTITIONING
,
editable
=
false
,
viewable
=
true
,
order
=
50
)
public
String
getPartKeys
()
{
return
"this.oid"
;
}
/*
private final PostgreTableBase partitionTable;
private int sequenceNum;
//select * from pg_partitioned_table where partrelid = ?
...
...
@@ -75,4 +92,5 @@ public class PostgreTablePartition extends PostgreTableConstraintBase implements
void cacheAttributes(DBRProgressMonitor monitor, List<? extends PostgreTableConstraintColumn> children, boolean secondPass) {
}
*/
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录