DatabaseUtils.props 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # General information on database access can be found here:
  2. # https://waikato.github.io/weka-wiki/databases/
  3. #
  4. # Version: $Revision: 15255 $
  5. # The comma-separated list of jdbc drivers to use
  6. #jdbcDriver=RmiJdbc.RJDriver,jdbc.idbDriver
  7. #jdbcDriver=jdbc.idbDriver
  8. #jdbcDriver=RmiJdbc.RJDriver,jdbc.idbDriver,org.gjt.mm.mysql.Driver,com.mckoi.JDBCDriver,org.hsqldb.jdbcDriver
  9. #jdbcDriver=org.gjt.mm.mysql.Driver
  10. # The url to the experiment database
  11. #jdbcURL=jdbc:rmi://expserver/jdbc:idb=experiments.prp
  12. jdbcURL=jdbc:idb=experiments.prp
  13. #jdbcURL=jdbc:mysql://mysqlserver/username
  14. # the method that is used to retrieve values from the db
  15. # (java datatype + RecordSet.<method>)
  16. # string, getString() = 0; --> nominal
  17. # boolean, getBoolean() = 1; --> nominal
  18. # double, getDouble() = 2; --> numeric
  19. # byte, getByte() = 3; --> numeric
  20. # short, getByte()= 4; --> numeric
  21. # int, getInteger() = 5; --> numeric
  22. # long, getLong() = 6; --> numeric
  23. # float, getFloat() = 7; --> numeric
  24. # date, getDate() = 8; --> date
  25. # text, getString() = 9; --> string
  26. # time, getTime() = 10; --> date
  27. # timestamp, getTime() = 11; --> date
  28. # the original conversion: <column type>=<conversion>
  29. #char=0
  30. #varchar=0
  31. #longvarchar=0
  32. #binary=0
  33. #varbinary=0
  34. #longvarbinary=0
  35. #bit=1
  36. #numeric=2
  37. #decimal=2
  38. #tinyint=3
  39. #smallint=4
  40. #integer=5
  41. #bigint=6
  42. #real=7
  43. #float=2
  44. #double=2
  45. #date=8
  46. #time=10
  47. #timestamp=11
  48. #mysql-conversion
  49. CHAR=0
  50. TEXT=0
  51. VARCHAR=0
  52. LONGVARCHAR=9
  53. BINARY=0
  54. VARBINARY=0
  55. LONGVARBINARY=9
  56. BIT=1
  57. NUMERIC=2
  58. DECIMAL=2
  59. FLOAT=2
  60. DOUBLE=2
  61. TINYINT=3
  62. SMALLINT=4
  63. #SHORT=4
  64. SHORT=5
  65. INTEGER=5
  66. BIGINT=6
  67. LONG=6
  68. REAL=7
  69. DATE=8
  70. TIME=10
  71. TIMESTAMP=11
  72. #mappings for table creation
  73. CREATE_STRING=TEXT
  74. CREATE_INT=INT
  75. CREATE_DOUBLE=DOUBLE
  76. CREATE_DATE=DATETIME
  77. DateFormat=yyyy-MM-dd HH:mm:ss
  78. #database flags
  79. checkUpperCaseNames=false
  80. checkLowerCaseNames=false
  81. checkForTable=true
  82. setAutoCommit=true
  83. createIndex=false
  84. # All the reserved keywords for this database
  85. Keywords=\
  86. AND,\
  87. ASC,\
  88. BY,\
  89. DESC,\
  90. FROM,\
  91. GROUP,\
  92. INSERT,\
  93. ORDER,\
  94. SELECT,\
  95. UPDATE,\
  96. WHERE
  97. # The character to append to attribute names to avoid exceptions due to
  98. # clashes between keywords and attribute names
  99. KeywordsMaskChar=_
  100. #flags for loading and saving instances using DatabaseLoader/Saver
  101. nominalToStringLimit=50
  102. idColumn=auto_generated_id