Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
aadcb6f3
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,发现更多精彩内容 >>
提交
aadcb6f3
编写于
11月 30, 2017
作者:
S
serge-rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
PostgreSQL partitions/inheritance model
上级
1de113cc
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
46 addition
and
33 deletion
+46
-33
nls/bundles/org.jkiss.dbeaver.ext.postgresql.nls/OSGI-INF/l10n/bundle_ru.properties
...ver.ext.postgresql.nls/OSGI-INF/l10n/bundle_ru.properties
+15
-16
plugins/org.jkiss.dbeaver.ext.postgresql/OSGI-INF/l10n/bundle.properties
...ss.dbeaver.ext.postgresql/OSGI-INF/l10n/bundle.properties
+2
-0
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreDatabase.java
...g/jkiss/dbeaver/ext/postgresql/model/PostgreDatabase.java
+0
-4
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreSchema.java
...org/jkiss/dbeaver/ext/postgresql/model/PostgreSchema.java
+13
-13
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/impl/jdbc/exec/JDBCPreparedStatementCachedImpl.java
...model/impl/jdbc/exec/JDBCPreparedStatementCachedImpl.java
+16
-0
未找到文件。
nls/bundles/org.jkiss.dbeaver.ext.postgresql.nls/OSGI-INF/l10n/bundle_ru.properties
浏览文件 @
aadcb6f3
Bundle-Vendor
=
JKISS
Bundle-Name
=
DBeaver PostgreSQL Support
Bundle-Vendor
=
JKISS
Bundle-Name
=
DBeaver PostgreSQL Support
dialog.connection.header
=
PostgreSQL Connection Settings
editor.session_manager.name
=
Session Manager
...
...
@@ -334,10 +334,9 @@ 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.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
...
...
@@ -478,15 +477,15 @@ tree.procedures.node.name=Procedures
tree.reference.node.name
=
Reference
tree.reference_columns.node.name
=
Reference columns
tree.references.node.name
=
References
tree.partition.node.name
=
Partition
tree.partition_columns.node.name
=
Partition columns
tree.partitions.node.name
=
Partitions
tree.tablechildren.node.name
=
Child tables
tree.tablechildren_columns.node.name
=
Child Tables columns
tree.tablechildren.node.name
=
Child tables
tree.rules.node.name
=
Rules
tree.rules_columns.node.name
=
Rules columns
tree.rules.node.name
=
Rules
tree.partition.node.name
=
Partition
tree.partition_columns.node.name
=
Partition columns
tree.partitions.node.name
=
Partitions
tree.tablechildren.node.name
=
Child tables
tree.tablechildren_columns.node.name
=
Child Tables columns
tree.tablechildren.node.name
=
Child tables
tree.rules.node.name
=
Rules
tree.rules_columns.node.name
=
Rules columns
tree.rules.node.name
=
Rules
tree.schema.node.name
=
Schema
tree.schemas.node.name
=
Schemas
tree.sequence.node.name
=
Sequence
...
...
plugins/org.jkiss.dbeaver.ext.postgresql/OSGI-INF/l10n/bundle.properties
浏览文件 @
aadcb6f3
...
...
@@ -345,6 +345,8 @@ 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/PostgreDatabase.java
浏览文件 @
aadcb6f3
...
...
@@ -38,7 +38,6 @@ import org.jkiss.dbeaver.model.impl.jdbc.JDBCUtils;
import
org.jkiss.dbeaver.model.impl.jdbc.cache.JDBCObjectCache
;
import
org.jkiss.dbeaver.model.impl.jdbc.cache.JDBCObjectLookupCache
;
import
org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCPreparedStatementCachedImpl
;
import
org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl
;
import
org.jkiss.dbeaver.model.meta.Association
;
import
org.jkiss.dbeaver.model.meta.Property
;
import
org.jkiss.dbeaver.model.runtime.DBRProgressMonitor
;
...
...
@@ -46,7 +45,6 @@ import org.jkiss.dbeaver.model.struct.*;
import
org.jkiss.dbeaver.model.struct.rdb.DBSCatalog
;
import
org.jkiss.utils.LongKeyMap
;
import
java.sql.PreparedStatement
;
import
java.sql.SQLException
;
import
java.util.Collection
;
import
java.util.Collections
;
...
...
@@ -55,8 +53,6 @@ import java.util.Map;
import
java.util.Map.Entry
;
import
java.util.concurrent.ConcurrentHashMap
;
import
javax.xml.crypto.dsig.keyinfo.PGPData
;
/**
* PostgreDatabase
*/
...
...
plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreSchema.java
浏览文件 @
aadcb6f3
...
...
@@ -32,8 +32,6 @@ import org.jkiss.dbeaver.model.impl.jdbc.cache.JDBCCompositeCache;
import
org.jkiss.dbeaver.model.impl.jdbc.cache.JDBCObjectCache
;
import
org.jkiss.dbeaver.model.impl.jdbc.cache.JDBCObjectLookupCache
;
import
org.jkiss.dbeaver.model.impl.jdbc.cache.JDBCStructLookupCache
;
import
org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCPreparedStatementCachedImpl
;
import
org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCPreparedStatementImpl
;
import
org.jkiss.dbeaver.model.meta.Association
;
import
org.jkiss.dbeaver.model.meta.Property
;
import
org.jkiss.dbeaver.model.runtime.DBRProgressMonitor
;
...
...
@@ -62,15 +60,16 @@ public class PostgreSchema implements DBSSchema, DBPNamedObject2, DBPSaveableObj
private
static
final
String
TABLE_CHILD_ID
=
"PostgreSchema.TABLE_CHILD"
;
private
static
final
String
sqlTableChild
=
"SELECT c.relname,a.*,pg_catalog.pg_get_expr(ad.adbin, ad.adrelid, true) as def_value,dsc.description"
+
"\nFROM pg_catalog.pg_attribute a"
+
"\nINNER JOIN pg_catalog.pg_class c ON (a.attrelid=c.oid)"
+
"\nLEFT OUTER JOIN pg_catalog.pg_attrdef ad ON (a.attrelid=ad.adrelid AND a.attnum = ad.adnum)"
+
"\nLEFT OUTER JOIN pg_catalog.pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid)"
+
"\nWHERE NOT a.attisdropped AND c.oid=? ORDER BY a.attnum"
;
private
static
final
String
SQL_CHILDTABLE_QUERY
=
"SELECT c.relname,a.*,pg_catalog.pg_get_expr(ad.adbin, ad.adrelid, true) as def_value,dsc.description"
+
"\nFROM pg_catalog.pg_attribute a"
+
"\nINNER JOIN pg_catalog.pg_class c ON (a.attrelid=c.oid)"
+
"\nLEFT OUTER JOIN pg_catalog.pg_attrdef ad ON (a.attrelid=ad.adrelid AND a.attnum = ad.adnum)"
+
"\nLEFT OUTER JOIN pg_catalog.pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid)"
+
"\nWHERE NOT a.attisdropped AND c.oid=? ORDER BY a.attnum"
;
private
PostgreDatabase
database
;
private
final
PostgreDatabase
database
;
private
long
oid
;
private
String
name
;
private
String
description
;
...
...
@@ -484,19 +483,20 @@ public class PostgreSchema implements DBSSchema, DBPNamedObject2, DBPSaveableObj
protected
JDBCStatement
prepareChildrenStatement
(
@NotNull
JDBCSession
session
,
@NotNull
PostgreSchema
owner
,
@Nullable
PostgreTableBase
forTable
)
throws
SQLException
{
if
(
forTable
==
null
)
{
if
(
forTable
==
null
)
{
return
prepareChildrenStatement
(
session
,
owner
);
}
/*
JDBCPreparedStatementCachedImpl dbStat;
dbStat = database.statmentCache.get(TABLE_CHILD_ID);
if (dbStat == null) {
dbStat
=
new
JDBCPreparedStatementCachedImpl
((
JDBCPreparedStatementImpl
)
session
.
prepareStatement
(
sqlTableChild
));
dbStat = new JDBCPreparedStatementCachedImpl((JDBCPreparedStatementImpl) session.prepareStatement(
SQL_CHILDTABLE_QUERY
));
database.statmentCache.put(TABLE_CHILD_ID, dbStat);
}
*/
JDBCPreparedStatement
dbStat
=
session
.
prepareStatement
(
SQL_CHILDTABLE_QUERY
);
dbStat
.
setLong
(
1
,
forTable
.
getObjectId
());
return
dbStat
;
}
...
...
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/impl/jdbc/exec/JDBCPreparedStatementCachedImpl.java
浏览文件 @
aadcb6f3
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.jkiss.dbeaver.model.impl.jdbc.exec
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录