Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
899a1d84
D
dbeaver
项目概览
suliangchun
/
dbeaver
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
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,发现更多精彩内容 >>
提交
899a1d84
编写于
2月 03, 2017
作者:
S
Serge Rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#535 SQLite extension stub
上级
1bc6c34f
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
257 addition
and
1 deletion
+257
-1
features/org.jkiss.dbeaver.ext.generic.feature/feature.xml
features/org.jkiss.dbeaver.ext.generic.feature/feature.xml
+1
-0
plugins/org.jkiss.dbeaver.ext.generic/src/org/jkiss/dbeaver/ext/generic/model/GenericDataSource.java
...rg/jkiss/dbeaver/ext/generic/model/GenericDataSource.java
+1
-1
plugins/org.jkiss.dbeaver.ext.sqlite/.classpath
plugins/org.jkiss.dbeaver.ext.sqlite/.classpath
+7
-0
plugins/org.jkiss.dbeaver.ext.sqlite/.project
plugins/org.jkiss.dbeaver.ext.sqlite/.project
+28
-0
plugins/org.jkiss.dbeaver.ext.sqlite/.settings/org.eclipse.jdt.core.prefs
...s.dbeaver.ext.sqlite/.settings/org.eclipse.jdt.core.prefs
+12
-0
plugins/org.jkiss.dbeaver.ext.sqlite/META-INF/MANIFEST.MF
plugins/org.jkiss.dbeaver.ext.sqlite/META-INF/MANIFEST.MF
+15
-0
plugins/org.jkiss.dbeaver.ext.sqlite/build.properties
plugins/org.jkiss.dbeaver.ext.sqlite/build.properties
+6
-0
plugins/org.jkiss.dbeaver.ext.sqlite/plugin.properties
plugins/org.jkiss.dbeaver.ext.sqlite/plugin.properties
+0
-0
plugins/org.jkiss.dbeaver.ext.sqlite/plugin.xml
plugins/org.jkiss.dbeaver.ext.sqlite/plugin.xml
+11
-0
plugins/org.jkiss.dbeaver.ext.sqlite/pom.xml
plugins/org.jkiss.dbeaver.ext.sqlite/pom.xml
+14
-0
plugins/org.jkiss.dbeaver.ext.sqlite/src/org/jkiss/dbeaver/ext/sqlite/SQLiteUtils.java
....sqlite/src/org/jkiss/dbeaver/ext/sqlite/SQLiteUtils.java
+30
-0
plugins/org.jkiss.dbeaver.ext.sqlite/src/org/jkiss/dbeaver/ext/sqlite/model/SQLiteDataSource.java
.../org/jkiss/dbeaver/ext/sqlite/model/SQLiteDataSource.java
+40
-0
plugins/org.jkiss.dbeaver.ext.sqlite/src/org/jkiss/dbeaver/ext/sqlite/model/SQLiteMetaModel.java
...c/org/jkiss/dbeaver/ext/sqlite/model/SQLiteMetaModel.java
+61
-0
plugins/org.jkiss.dbeaver.ext.sqlite/src/org/jkiss/dbeaver/ext/sqlite/model/SQLiteSQLDialect.java
.../org/jkiss/dbeaver/ext/sqlite/model/SQLiteSQLDialect.java
+31
-0
未找到文件。
features/org.jkiss.dbeaver.ext.generic.feature/feature.xml
浏览文件 @
899a1d84
...
...
@@ -31,6 +31,7 @@
<plugin
id=
"org.jkiss.dbeaver.ext.netezza"
download-size=
"0"
install-size=
"0"
version=
"0.0.0"
unpack=
"false"
/>
<plugin
id=
"org.jkiss.dbeaver.ext.phoenix"
download-size=
"0"
install-size=
"0"
version=
"0.0.0"
unpack=
"false"
/>
<plugin
id=
"org.jkiss.dbeaver.ext.postgresql"
download-size=
"0"
install-size=
"0"
version=
"0.0.0"
unpack=
"false"
/>
<plugin
id=
"org.jkiss.dbeaver.ext.sqlite"
download-size=
"0"
install-size=
"0"
version=
"0.0.0"
unpack=
"false"
/>
<plugin
id=
"org.jkiss.dbeaver.ext.teradata"
download-size=
"0"
install-size=
"0"
version=
"0.0.0"
unpack=
"false"
/>
<plugin
id=
"org.jkiss.dbeaver.ext.vertica"
download-size=
"0"
install-size=
"0"
version=
"0.0.0"
unpack=
"false"
/>
...
...
plugins/org.jkiss.dbeaver.ext.generic/src/org/jkiss/dbeaver/ext/generic/model/GenericDataSource.java
浏览文件 @
899a1d84
...
...
@@ -914,7 +914,7 @@ public class GenericDataSource extends JDBCDataSource
@NotNull
public
DBPDataKind
resolveDataKind
(
@NotNull
String
typeName
,
int
valueType
)
{
DBSDataType
dataType
=
dataTypeCache
.
getCachedObject
(
typeName
);
DBSDataType
dataType
=
getLocalDataType
(
typeName
);
if
(
dataType
!=
null
)
{
return
super
.
resolveDataKind
(
dataType
.
getTypeName
(),
dataType
.
getTypeID
());
}
...
...
plugins/org.jkiss.dbeaver.ext.sqlite/.classpath
0 → 100644
浏览文件 @
899a1d84
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.pde.core.requiredPlugins"
/>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"output"
path=
"bin"
/>
</classpath>
plugins/org.jkiss.dbeaver.ext.sqlite/.project
0 → 100644
浏览文件 @
899a1d84
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
org.jkiss.dbeaver.ext.sqlite
</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>
org.eclipse.jdt.core.javabuilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.pde.ManifestBuilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.pde.SchemaBuilder
</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>
org.eclipse.pde.PluginNature
</nature>
<nature>
org.eclipse.jdt.core.javanature
</nature>
</natures>
</projectDescription>
plugins/org.jkiss.dbeaver.ext.sqlite/.settings/org.eclipse.jdt.core.prefs
0 → 100644
浏览文件 @
899a1d84
#Thu Dec 30 16:00:50 MSK 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
plugins/org.jkiss.dbeaver.ext.sqlite/META-INF/MANIFEST.MF
0 → 100644
浏览文件 @
899a1d84
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: SQLite Plug-in
Bundle-SymbolicName: org.jkiss.dbeaver.ext.sqlite;singleton:=true
Bundle-Version: 1.0.0
Bundle-Release-Date: 20170130
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.jkiss.dbeaver.core,
org.jkiss.dbeaver.ext.generic
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-Vendor: JKISS
Bundle-ClassPath: .
Bundle-Localization: plugin
plugins/org.jkiss.dbeaver.ext.sqlite/build.properties
0 → 100644
浏览文件 @
899a1d84
source..
=
src/
output..
=
bin/
bin.includes
=
plugin.xml,
\
META-INF/,
\
.,
\
plugin.properties
plugins/org.jkiss.dbeaver.ext.sqlite/plugin.properties
0 → 100644
浏览文件 @
899a1d84
plugins/org.jkiss.dbeaver.ext.sqlite/plugin.xml
0 → 100644
浏览文件 @
899a1d84
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
point=
"org.jkiss.dbeaver.generic.meta"
>
<meta
id=
"sqlite"
class=
"org.jkiss.dbeaver.ext.sqlite.model.SQLiteMetaModel"
driverClass=
"org.sqlite.JDBC"
/>
</extension>
</plugin>
plugins/org.jkiss.dbeaver.ext.sqlite/pom.xml
0 → 100644
浏览文件 @
899a1d84
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
org.jkiss.dbeaver
</groupId>
<artifactId>
dbeaver
</artifactId>
<version>
1.0.0
</version>
<relativePath>
../../
</relativePath>
</parent>
<artifactId>
org.jkiss.dbeaver.ext.sqlite
</artifactId>
<version>
1.0.0
</version>
<packaging>
eclipse-plugin
</packaging>
</project>
plugins/org.jkiss.dbeaver.ext.sqlite/src/org/jkiss/dbeaver/ext/sqlite/SQLiteUtils.java
0 → 100644
浏览文件 @
899a1d84
/*
* 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.ext.sqlite
;
import
org.jkiss.dbeaver.Log
;
/**
* SQLiteUtils
*/
public
class
SQLiteUtils
{
private
static
final
Log
log
=
Log
.
getLog
(
SQLiteUtils
.
class
);
}
plugins/org.jkiss.dbeaver.ext.sqlite/src/org/jkiss/dbeaver/ext/sqlite/model/SQLiteDataSource.java
0 → 100644
浏览文件 @
899a1d84
/*
* 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.ext.sqlite.model
;
import
org.jkiss.code.NotNull
;
import
org.jkiss.dbeaver.DBException
;
import
org.jkiss.dbeaver.ext.generic.model.GenericDataSource
;
import
org.jkiss.dbeaver.ext.generic.model.meta.GenericMetaModel
;
import
org.jkiss.dbeaver.model.DBPDataSourceContainer
;
import
org.jkiss.dbeaver.model.exec.jdbc.JDBCDatabaseMetaData
;
import
org.jkiss.dbeaver.model.runtime.DBRProgressMonitor
;
import
org.jkiss.dbeaver.model.sql.SQLDialect
;
public
class
SQLiteDataSource
extends
GenericDataSource
{
public
SQLiteDataSource
(
DBRProgressMonitor
monitor
,
DBPDataSourceContainer
container
,
GenericMetaModel
metaModel
)
throws
DBException
{
super
(
monitor
,
container
,
metaModel
);
}
@Override
protected
SQLDialect
createSQLDialect
(
@NotNull
JDBCDatabaseMetaData
metaData
)
{
return
new
SQLiteSQLDialect
(
this
,
metaData
);
}
}
plugins/org.jkiss.dbeaver.ext.sqlite/src/org/jkiss/dbeaver/ext/sqlite/model/SQLiteMetaModel.java
0 → 100644
浏览文件 @
899a1d84
/*
* 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.ext.sqlite.model
;
import
org.eclipse.core.runtime.IConfigurationElement
;
import
org.jkiss.code.NotNull
;
import
org.jkiss.code.Nullable
;
import
org.jkiss.dbeaver.DBException
;
import
org.jkiss.dbeaver.ext.generic.model.GenericDataSource
;
import
org.jkiss.dbeaver.ext.generic.model.GenericTable
;
import
org.jkiss.dbeaver.ext.generic.model.meta.GenericMetaModel
;
import
org.jkiss.dbeaver.model.DBPDataSourceContainer
;
import
org.jkiss.dbeaver.model.exec.DBCQueryTransformProvider
;
import
org.jkiss.dbeaver.model.exec.DBCQueryTransformType
;
import
org.jkiss.dbeaver.model.exec.DBCQueryTransformer
;
import
org.jkiss.dbeaver.model.impl.sql.QueryTransformerLimit
;
import
org.jkiss.dbeaver.model.runtime.DBRProgressMonitor
;
/**
* SQLiteMetaModel
*/
public
class
SQLiteMetaModel
extends
GenericMetaModel
implements
DBCQueryTransformProvider
{
public
SQLiteMetaModel
(
IConfigurationElement
cfg
)
{
super
(
cfg
);
}
public
String
getViewDDL
(
DBRProgressMonitor
monitor
,
GenericTable
sourceObject
)
throws
DBException
{
return
getTableDDL
(
monitor
,
sourceObject
);
}
@Nullable
@Override
public
DBCQueryTransformer
createQueryTransformer
(
@NotNull
DBCQueryTransformType
type
)
{
if
(
type
==
DBCQueryTransformType
.
RESULT_SET_LIMIT
)
{
return
new
QueryTransformerLimit
(
false
);
}
return
null
;
}
@Override
public
GenericDataSource
createDataSource
(
DBRProgressMonitor
monitor
,
DBPDataSourceContainer
container
)
throws
DBException
{
return
new
SQLiteDataSource
(
monitor
,
container
,
this
);
}
}
plugins/org.jkiss.dbeaver.ext.sqlite/src/org/jkiss/dbeaver/ext/sqlite/model/SQLiteSQLDialect.java
0 → 100644
浏览文件 @
899a1d84
/*
* 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.ext.sqlite.model
;
import
org.jkiss.dbeaver.ext.generic.model.GenericDataSource
;
import
org.jkiss.dbeaver.ext.generic.model.GenericSQLDialect
;
import
org.jkiss.dbeaver.model.exec.jdbc.JDBCDatabaseMetaData
;
public
class
SQLiteSQLDialect
extends
GenericSQLDialect
{
public
SQLiteSQLDialect
(
GenericDataSource
dataSource
,
JDBCDatabaseMetaData
metaData
)
{
super
(
dataSource
,
metaData
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录