Skip to content

Commit

Permalink
Consolidated customization docs into dbtypes.html
Browse files Browse the repository at this point in the history
  • Loading branch information
johncurrier committed Aug 7, 2008
1 parent d71e74d commit 9b539fc
Show file tree
Hide file tree
Showing 18 changed files with 99 additions and 289 deletions.
21 changes: 4 additions & 17 deletions src/net/sourceforge/schemaspy/dbTypes/db2.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# see dbtypes.html for configuration / customization details
#

description=IBM DB2 with the 'App' Driver

connectionSpec=jdbc:db2:<db>
Expand All @@ -8,14 +12,6 @@ driver=COM.ibm.db2.jdbc.app.DB2Driver
# you can use the -cp command line option if you prefer
driverPath=c:/Program Files/IBM/SQLLIB/java/db2java.zip

# if your driver returns failures like "stream already closed" then its metadata
# services probably aren't thread safe and you'll have to uncomment this line
# or specify "-dbThreads 1" on the command line.
#dbThreads=1

# all of these selects are optional:
# these named parameters are supported: :schema, :owner, :table and :view

# return text that represents a specific :view / :schema
selectViewSql=select text from syscat.views where viewname=:view and viewschema=:schema

Expand All @@ -25,15 +21,6 @@ selectCheckConstraintsSql=select constname constraint_name, tabname table_name,
selectTableIdsSql=select tableid table_id, tabname table_name from syscat.tables where tabschema=:schema
selectIndexIdsSql=select iid index_id, indname index_name, tabname table_name from syscat.indexes where tabschema=:schema

# return table_name, comments for a specific :schema
# useful if db driver doesn't return this info
#selectTableCommentsSql=

# return table_name, column_name, comments for a specific :schema
# useful if db driver doesn't return this info
#selectColumnCommentsSql=


# regular expression used in conjunction with -all (and can be command line param '-schemaSpec')
# this says which schemas to include in our evaluation of "all schemas"
# basically .* (at the end) matches anything and the rest of it says "except schemas starting with SYS"
Expand Down
10 changes: 4 additions & 6 deletions src/net/sourceforge/schemaspy/dbTypes/db2net.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# see dbtypes.html for configuration / customization details
#

description=IBM DB2 with the Type 4 'Net' Driver

# gory details in db2.properties:
Expand All @@ -6,12 +10,6 @@ extends=db2
# use the 'net' driver (Type 4) instead of the default 'app' driver
driver=COM.ibm.db2.jdbc.net.DB2Driver

# connection spec
# text between <>'s will be prompted for on the command line
# e.g. if <host> is in connectionSpec then you must have -host on the command line
# if you're missing a required parameter then you're be prompted with the text
# that's associated with that paramter
# e.g. missing -port then you'll be prompted for 'port on database host'
connectionSpec=jdbc:db2://<host>:<port>/<db>
host=database host
port=port on database host
Expand Down
19 changes: 0 additions & 19 deletions src/net/sourceforge/schemaspy/dbTypes/derbyclient.properties

This file was deleted.

39 changes: 6 additions & 33 deletions src/net/sourceforge/schemaspy/dbTypes/firebird.properties
Original file line number Diff line number Diff line change
@@ -1,43 +1,16 @@
#
# see dbtypes.html for configuration / customization details
#

description=Firebird

# connection spec
# text between <>'s will be prompted for on the command line
# e.g. if <host> is in connectionSpec then you must have -host on the command line
# if you're missing a required parameter then you're be prompted with the text
# that's associated with that paramter
# e.g. missing -db then you'll be prompted for 'database name'
# expected format: jdbc:firebirdsql://[hostname][:port]/dbname
connectionSpec=jdbc:firebirdsql://<host>/<db>
host=hostname[:port] (possibly just localhost)
db=database name

driver=org.firebirdsql.jdbc.FBDriver

# point this to whatever is appropriate on your machine...let me know if there's a standard path/jar
# you can use the -cp command line option if you prefer
# Sample path to the firebird drivers.
# Use -dp to override.
# The driver should be available at http://www.firebirdsql.org
driverPath=/usr/java/tools/firebird/jaybird-full-2.0.1.jar:;c:\jdbc\firebird\jaybird-full-2.0.1.jar

# if your driver returns failures like "stream already closed" then its metadata
# services probably aren't thread safe and you'll have to uncomment this line
# or specify "-dbThreads 1" on the command line.
#dbThreads=1

# the following SQL is optional
# fill it in if you want to see the SQL used to create your views or your check constraints
# send it back to schemaspy.sourceforge.net if it works
# these named parameters are supported: :schema, :owner, :table and :view

# return text that represents a specific :view / :schema
#selectViewSql=

# return table_name, constraint_name and text for a specific :schema
#selectCheckConstraintsSql=

# return table_name, comments for a specific :schema
# useful if db driver doesn't return this info
#selectTableCommentsSql=

# return table_name, column_name, comments for a specific :schema
# useful if db driver doesn't return this info
#selectColumnCommentsSql=
35 changes: 6 additions & 29 deletions src/net/sourceforge/schemaspy/dbTypes/hsqldb.properties
Original file line number Diff line number Diff line change
@@ -1,37 +1,14 @@
#
# see dbtypes.html for configuration / customization details
#

description=HSQLDB Server

# connection spec
# text between <>'s will be prompted for on the command line
# e.g. if <host> is in connectionSpec then you must have -host on the command line
# if you're missing a required parameter then you're be prompted with the text
# that's associated with that paramter
# e.g. missing -host then you'll be prompted for 'hostname[:port] (possibly just localhost)'
# expected format: jdbc:hsqldb:hsql://<host>/<db>
connectionSpec=jdbc:hsqldb:hsql://<host>/<db>
host=hostname[:port] (possibly just localhost)

driver=org.hsqldb.jdbcDriver

# point this to whatever is appropriate on your machine...let me know if there's a standard path/jar
# you can use the -cp command line option if you prefer
# Sample path to the HSQLDB drivers.
# Use -dp to override.
driverPath=/HSQLDB/1.8.0/hsqldb.jar

# if your driver returns failures like "stream already closed" then its metadata
# services probably aren't thread safe and you'll have to uncomment this line
# or specify "-dbThreads 1" on the command line.
#dbThreads=1

# the following SQL is optional
# fill it in if you want to see the SQL used to create your views or your check constraints
# send it back to schemaspy.sourceforge.net if it works

#selectViewSql=select text from all_views where view_name=? and owner=?
#selectCheckConstraintsSql=select table_name, constraint_name constname, search_condition text from all_constraints where constraint_type = 'C' and constraint_name not like 'SYS%' and owner = ?

# return table_name, comments for a specific :schema
# useful if db driver doesn't return this info
#selectTableCommentsSql=

# return table_name, column_name, comments for a specific :schema
# useful if db driver doesn't return this info
#selectColumnCommentsSql=
15 changes: 7 additions & 8 deletions src/net/sourceforge/schemaspy/dbTypes/informix.properties
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
#
# see dbtypes.html for configuration / customization details
#

# InformixSQL driver details provided by Tom Conlin
description=InformixSQL

# connection spec
# text between <>'s will be prompted for on the command line
# e.g. if <host> is in connectionSpec then you must have -host on the command line
# if you're missing a required parameter then you're be prompted with the text
# that's associated with that paramter
# e.g. missing -db then you'll be prompted for 'database name'
connectionSpec=jdbc:informix-sqli://<host>/<db>:INFORMIXSERVER=<server>
host=hostname and port
db=database name
server=database server

driver=com.informix.jdbc.IfxDriver

# point this to whatever is appropriate on your machine
# note: you need to include both ifxjdbc.jar and ifxjdbcx.jar
# Sample path to the informix drivers.
# Use -dp to override.
# Note: you need to include both ifxjdbc.jar and ifxjdbcx.jar
driverPath=/path/to/jdbc3.00.JC1/lib/ifxjdbc.jar:/path/to/jdbc3.00.JC1/lib/ifxjdbcx.jar
7 changes: 7 additions & 0 deletions src/net/sourceforge/schemaspy/dbTypes/jtds.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# see dbtypes.html for configuration / customization details
#

description=Microsoft SQL Server JTDS

# use majority of settings in mssql.properties:
Expand All @@ -6,4 +10,7 @@ extends=mssql
# JTDS-specific differences from settings in mssql.properties:
connectionSpec=jdbc:jtds:sqlserver://<host>:<port>;databaseName=<db>;progName=schemaSpy
driver=net.sourceforge.jtds.jdbc.Driver

# Sample path to the jtds drivers.
# Use -dp to override.
driverPath=./jtds-1.2.jar
13 changes: 5 additions & 8 deletions src/net/sourceforge/schemaspy/dbTypes/maxdb.properties
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# SchemaSpy configuration file for the MaxDB database
#
# see dbtypes.html for configuration / customization details
#

description=MaxDB

# connection spec
# text between <>'s will be prompted for on the command line
# e.g. if <host> is in connectionSpec then you must have -host on the command line
# if you're missing a required parameter then you're be prompted with the text
# that's associated with that paramter
# e.g. missing -db then you'll be prompted for 'Name of database instance'
connectionSpec=jdbc:sapdb://<host>/<db>?sqlmode=ORACLE
host=Name of the computer on which the database instance is running
db=Name of database instance

driver=com.sap.dbtech.jdbc.DriverSapDB

# use the -cp command line option to override this:
# Sample path to the maxdb drivers.
# Use -dp to override.
driverPath=C:\Program Files\sdb\programs\runtime\jar\sapdbc.jar
27 changes: 8 additions & 19 deletions src/net/sourceforge/schemaspy/dbTypes/mssql-jtds.properties
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#
# see dbtypes.html for configuration / customization details
#

# Provided by Ernest Zapata
description=jTDS JDBC Driver for Microsoft SQL 2000/2005 Server

# some details in mssql.properties:
extends=mssql

# connection spec
# text between <>'s will be prompted for on the command line
# e.g. if <host> is in connectionSpec then you must have -host on the command line
# if you're missing a required parameter then you're be prompted with the text
# that's associated with that paramter
# e.g. missing -db then you'll be prompted for 'database name'
connectionSpec=jdbc:jtds:sqlserver://<host>:<port>/<db>;domain=<domain>;

host=database server host
Expand All @@ -19,18 +17,9 @@ domain=windows domain

driver=net.sourceforge.jtds.jdbc.Driver

# you can use the -cp command line option if you prefer
# Sample path to the sql server drivers.
# Use -dp to override.
driverPath=C:/Program Files/Java/shared/jtds/jtds-1.2.jar

# if your driver returns failures like "stream already closed" then its metadata
# services probably aren't thread safe and you'll have to uncomment this line
# or specify "-dbThreads 1" on the command line.
dbThreads=1

# return table_name, comments for a specific :schema
# useful if db driver doesn't return this info
#selectTableCommentsSql=

# return table_name, column_name, comments for a specific :schema
# useful if db driver doesn't return this info
#selectColumnCommentsSql=
# querying database metadata isn't thread safe with this driver.
dbThreads=1
29 changes: 6 additions & 23 deletions src/net/sourceforge/schemaspy/dbTypes/mssql.properties
Original file line number Diff line number Diff line change
@@ -1,39 +1,22 @@
#
# see dbtypes.html for configuration / customization details
#

description=Microsoft SQL Server

# connection spec
# text between <>'s will be prompted for on the command line
# e.g. if <host> is in connectionSpec then you must have -host on the command line
# if you're missing a required parameter then you're be prompted with the text
# that's associated with that paramter
# e.g. missing -db then you'll be prompted for 'database name'
connectionSpec=jdbc:microsoft:sqlserver://<host>:<port>;databaseName=<db>
host=database server host
port=database port on host
db=database name

driver=com.microsoft.jdbc.sqlserver.SQLServerDriver

# you can use the -cp command line option if you prefer
# Sample path to the sql server drivers.
# Use -dp to override.
driverPath=C:/Program Files/Microsoft SQL Server 2000 Driver for JDBC/lib/msbase.jar;C:/Program Files/Microsoft SQL Server 2000 Driver for JDBC/lib/mssqlserver.jar;C:/Program Files/Microsoft SQL Server 2000 Driver for JDBC/lib/msutil.jar

# if your driver returns failures like "stream already closed" then its metadata
# services probably aren't thread safe and you'll have to uncomment this line
# or specify "-dbThreads 1" on the command line.
#dbThreads=1

# all of these selects are optional:
# these named parameters are supported: :schema, :owner, :table and :view

# return text that represents a specific :view / :schema
selectViewSql=select text from syscomments sc, sysobjects so where sc.id=so.id and so.name=:table

# return table_name, constraint_name and text for a specific :schema
#selectCheckConstraintsSql=select distinct a.name constraint_name, text from sysobjects a, syscomments b, sysobjects c where a.id = b.id and a.type = 'C'

# return table_name, comments for a specific :schema
# useful if db driver doesn't return this info
#selectTableCommentsSql=

# return table_name, column_name, comments for a specific :schema
# useful if db driver doesn't return this info
selectColumnCommentsSql=SELECT i_s.TABLE_NAME, i_s.COLUMN_NAME, s.value AS comments FROM INFORMATION_SCHEMA.COLUMNS i_s INNER JOIN sysproperties s ON s.id = OBJECT_ID(i_s.TABLE_SCHEMA+'.'+i_s.TABLE_NAME) AND s.smallid = i_s.ORDINAL_POSITION AND s.name = 'MS_Description' WHERE OBJECTPROPERTY(OBJECT_ID(i_s.TABLE_SCHEMA+'.'+i_s.TABLE_NAME), 'IsMsShipped')=0
25 changes: 7 additions & 18 deletions src/net/sourceforge/schemaspy/dbTypes/mssql05.properties
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#
# see dbtypes.html for configuration / customization details
#

# Provided by Craig Boland
description=Microsoft SQL Server 2005

# some details in mssql.properties:
extends=mssql

# connection spec
# text between <>'s will be prompted for on the command line
# e.g. if <host> is in connectionSpec then you must have -host on the command line
# if you're missing a required parameter then you're be prompted with the text
# that's associated with that paramter
# e.g. missing -db then you'll be prompted for 'database name'
connectionSpec=jdbc:sqlserver://<host>:<port>;databaseName=<db>

host=database server host
Expand All @@ -18,18 +16,9 @@ db=database name

driver=com.microsoft.sqlserver.jdbc.SQLServerDriver

# you can use the -cp command line option if you prefer
# Sample path to the sql server drivers.
# Use -dp to override.
driverPath=C:/Program Files/Microsoft SQL Server 2005 JDBC Driver/sqljdbc_1.0/enu/sqljdbc.jar

# if your driver returns failures like "stream already closed" then its metadata
# services probably aren't thread safe and you'll have to uncomment this line
# or specify "-dbThreads 1" on the command line.
# querying database metadata isn't thread safe with this driver.
dbThreads=1

# return table_name, comments for a specific :schema
# useful if db driver doesn't return this info
#selectTableCommentsSql=

# return table_name, column_name, comments for a specific :schema
# useful if db driver doesn't return this info
#selectColumnCommentsSql=
Loading

0 comments on commit 9b539fc

Please sign in to comment.