Browse Source

* fcl-db: dbtestframework: database.ini template:
+ add mysql5.6 connector
+ resort db list; move descriptions below sections so GUI ini editor will not mess them up

git-svn-id: trunk@27254 -

reiniero 11 years ago
parent
commit
2cd94bcd8e
1 changed files with 89 additions and 70 deletions
  1. 89 70
      packages/fcl-db/tests/database.ini.txt

+ 89 - 70
packages/fcl-db/tests/database.ini.txt

@@ -1,39 +1,65 @@
 ; This file contains several sections, one for each database type. 
 ; This file contains several sections, one for each database type. 
 
 
-; Select here which section has to be used currently, 
+; Select here which section is to be used currently, 
 ; i.e. which database you want to use
 ; i.e. which database you want to use
 [Database]
 [Database]
 type=bufdataset
 type=bufdataset
 
 
+; These sections are for the various types of databases:
 
 
-; These sections are for the several SQLDB-types of databases:
+[interbase]
+; Interbase or Firebird database:
 
 
-; PostgreSQL database:
-[postgresql]
-; The connector specifies the DB-component that has to be used. The 'sql'
+; The connector specifies the DB component that has to be used. The 'sql'
 ; connector tests the SQLDB components
 ; connector tests the SQLDB components
 connector=sql
 connector=sql
-
 ; Here you can give some parameters, which are specific for each connector. The
 ; Here you can give some parameters, which are specific for each connector. The
 ; SQL connector uses this parameter to specify the connection that should be
 ; SQL connector uses this parameter to specify the connection that should be
-; used;
-connectorparams=postgresql
+; used - i.e. the database server;
+connectorparams=interbase
 
 
 ; The name of the database. The database could be empty. You only need read and
 ; The name of the database. The database could be empty. You only need read and
 ; write rights.
 ; write rights.
-name=testdb
+name=/opt/firebird/data/testdb.fdb
 
 
 ; user to log in with
 ; user to log in with
-user=
+; Default username/password for Interbase/Firebird
+; is sysdba/masterkey. Change to your situation.
+user=sysdba
 
 
 ; password to log in with
 ; password to log in with
-password=
+; masterke or masterkey is default for Interbase/Firebird
+password=masterkey
 
 
-; hostname of the database-server
-hostname=127.0.0.1
+; hostname or IP address 
+; of the database server
+hostname=localhost
+
+; SQL command log file (for sqldb databases)
+; will be overwritten each run
+; uncomment to use
+;logfile=sql.log
+
+
+[firebirdembedded]
+; Firebird embedded
+; Same as Firebird, except we leave the host name blank
+; and specify a db without path.
+; Make sure your Firebird embedded library files (.dll/.so/.dylib)
+; are installed; e.g. on Windows, you can put them in this
+; directory.
+; Test code will create db if it doesn't exist; you can
+; delete an existing db file before the test to start
+; fresh.
+connector=sql
+connectorparams=interbase
+name=fbembedtest.fdb
+user=sysdba
+password=masterkey
+hostname=
 
 
-; MySQL 4.0 database:
 [mysql40]
 [mysql40]
+; MySQL 4.0 database:
 connector=sql
 connector=sql
 connectorparams=mysql40
 connectorparams=mysql40
 name=testdb
 name=testdb
@@ -41,8 +67,8 @@ user=root
 password=
 password=
 hostname=127.0.0.1
 hostname=127.0.0.1
 
 
-; MySQL 4.1 database:
 [mysql41]
 [mysql41]
+; MySQL 4.1 database:
 connector=sql
 connector=sql
 connectorparams=mysql41
 connectorparams=mysql41
 name=testdb
 name=testdb
@@ -50,8 +76,8 @@ user=root
 password=
 password=
 hostname=127.0.0.1
 hostname=127.0.0.1
 
 
-; MySQL 5.0 database:
 [mysql50]
 [mysql50]
+; MySQL 5.0 database:
 connector=sql
 connector=sql
 connectorparams=mysql50
 connectorparams=mysql50
 name=testdb
 name=testdb
@@ -59,8 +85,8 @@ user=root
 password=
 password=
 hostname=127.0.0.1
 hostname=127.0.0.1
 
 
-; MySQL 5.1 database:
 [mysql51]
 [mysql51]
+; MySQL 5.1 database:
 connector=sql
 connector=sql
 connectorparams=mysql51
 connectorparams=mysql51
 name=testdb
 name=testdb
@@ -68,8 +94,8 @@ user=root
 password=
 password=
 hostname=127.0.0.1
 hostname=127.0.0.1
 
 
-; MySQL 5.5 database:
 [mysql55]
 [mysql55]
+; MySQL 5.5 database:
 connector=sql
 connector=sql
 connectorparams=mysql55
 connectorparams=mysql55
 name=testdb
 name=testdb
@@ -77,60 +103,17 @@ user=root
 password=
 password=
 hostname=127.0.0.1
 hostname=127.0.0.1
 
 
-; Oracle database:
-[oracle]
-connector=sql
-connectorparams=oracle
-name=xe
-user=system
-password=
-hostname=127.0.0.1
-
-; Interbase or Firebird database:
-[interbase]
+[mysql56]
+; MySQL 5.6 database:
 connector=sql
 connector=sql
-connectorparams=interbase
-name=/opt/firebird/data/testdb.fdb
-; Default username/password for Interbase/Firebird
-; is sysdba/masterkey. Change to your situation.
-user=sysdba
-password=masterkey
-hostname=localhost
-
-; Firebird embedded
-; Same as Firebird, except we leave the host name blank
-; and specify a db without path.
-; Make sure your Firebird embedded library files (.dll/.so/.dylib)
-; are installed; e.g. on Windows, you can put them in this
-; directory.
-; Test code will create db if it doesn't exist; you can
-; delete an existing db file before the test to start
-; fresh.
-[firebirdembedded]
-connector=sql
-connectorparams=interbase
-name=fbembedtest.fdb
-user=sysdba
-password=masterkey
-hostname=
-
-; ODBC database:
-[odbc]
-connector=sql
-connectorparams=odbc
+connectorparams=mysql56
 name=testdb
 name=testdb
 user=root
 user=root
 password=
 password=
 hostname=127.0.0.1
 hostname=127.0.0.1
 
 
-; SQLite database:
-[sqlite]
-connector=sql
-connectorparams=sqlite3
-name=test.db
-
-; MS SQL Server database:
 [mssql]
 [mssql]
+; MS SQL Server database:
 connector=sql
 connector=sql
 connectorparams=mssql
 connectorparams=mssql
 name=pubs
 name=pubs
@@ -145,8 +128,42 @@ password=
 ; See mssqlconn documentation
 ; See mssqlconn documentation
 hostname=127.0.0.1
 hostname=127.0.0.1
 
 
-; Sybase ASE database
+[odbc]
+; ODBC database:
+connector=sql
+connectorparams=odbc
+name=testdb
+user=root
+password=
+hostname=127.0.0.1
+
+[oracle]
+; Oracle database:
+connector=sql
+connectorparams=oracle
+; SID or instance name:
+name=xe
+user=system
+password=
+hostname=127.0.0.1
+
+[postgresql]
+; PostgreSQL database:
+connector=sql
+connectorparams=postgresql
+name=testdb
+user=
+password=
+hostname=127.0.0.1
+
+[sqlite]
+; SQLite database:
+connector=sql
+connectorparams=sqlite3
+name=test.db
+
 [sybase]
 [sybase]
+; Sybase ASE database
 connector=sql
 connector=sql
 connectorparams=sybase
 connectorparams=sybase
 name=testdb
 name=testdb
@@ -157,6 +174,9 @@ password=
 ; See mssqlconn documentation
 ; See mssqlconn documentation
 hostname=127.0.0.1
 hostname=127.0.0.1
 
 
+; end of sqldb relational databases
+; next are file/memory-based databases:
+
 [dbf]
 [dbf]
 ; TDBf: DBase/FoxPro database:
 ; TDBf: DBase/FoxPro database:
 connector=dbf
 connector=dbf
@@ -168,7 +188,6 @@ connector=dbf
 ; 30=Visual FoxPro
 ; 30=Visual FoxPro
 connectorparams=4
 connectorparams=4
 
 
-
 [dbase3]
 [dbase3]
 ; TDBf: DBase/FoxPro database:
 ; TDBf: DBase/FoxPro database:
 connector=dbf
 connector=dbf
@@ -197,16 +216,16 @@ connector=dbf
 ; 30=Visual FoxPro
 ; 30=Visual FoxPro
 connectorparams=25
 connectorparams=25
 
 
-; MemDS in memory dataset:
 [memds]
 [memds]
+; MemDS simple in memory dataset:
 connector=memds
 connector=memds
 
 
-; BufDataset in memory dataset:
 [bufdataset]
 [bufdataset]
+; BufDataset in memory dataset:
 connector=bufdataset
 connector=bufdataset
 
 
-; sdfdataset file-based dataset:
 [sdfdataset]
 [sdfdataset]
+; sdfdataset file-based dataset:
 connector=sdfds
 connector=sdfds
 ; subdirectory for the sdf files:
 ; subdirectory for the sdf files:
 name=sdftest
 name=sdftest