DatabaseUtils.props.odbc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Database settings for ODBC in conjunction with MS SQL Server 2000
  2. #
  3. # General information on database access can be found here:
  4. # https://waikato.github.io/weka-wiki/databases/
  5. #
  6. # url: https://waikato.github.io/weka-wiki/windows_databases/
  7. # author: Fracpete (fracpete at waikato dot ac dot nz)
  8. # version: $Revision: 15255 $
  9. # JDBC driver (comma-separated list)
  10. jdbcDriver=sun.jdbc.odbc.JdbcOdbcDriver
  11. # database URL
  12. jdbcURL=jdbc:odbc:DSN_name
  13. # specific data types
  14. # string, getString() = 0; --> nominal
  15. # boolean, getBoolean() = 1; --> nominal
  16. # double, getDouble() = 2; --> numeric
  17. # byte, getByte() = 3; --> numeric
  18. # short, getByte()= 4; --> numeric
  19. # int, getInteger() = 5; --> numeric
  20. # long, getLong() = 6; --> numeric
  21. # float, getFloat() = 7; --> numeric
  22. # date, getDate() = 8; --> date
  23. # text, getString() = 9; --> string
  24. # time, getTime() = 10; --> date
  25. # timestamp, getTime() = 11; --> date
  26. varchar=0
  27. float=2
  28. tinyint=3
  29. int=5
  30. # other options
  31. CREATE_DOUBLE=DOUBLE PRECISION
  32. CREATE_STRING=VARCHAR(8000)
  33. CREATE_INT=INT
  34. CREATE_DATE=DATETIME
  35. DateFormat=yyyy-MM-dd HH:mm:ss
  36. checkUpperCaseNames=false
  37. checkLowerCaseNames=false
  38. checkForTable=true
  39. # All the reserved keywords for this database
  40. Keywords=\
  41. AND,\
  42. ASC,\
  43. BY,\
  44. DESC,\
  45. FROM,\
  46. GROUP,\
  47. INSERT,\
  48. ORDER,\
  49. SELECT,\
  50. UPDATE,\
  51. WHERE
  52. # The character to append to attribute names to avoid exceptions due to
  53. # clashes between keywords and attribute names
  54. KeywordsMaskChar=_
  55. #flags for loading and saving instances using DatabaseLoader/Saver
  56. nominalToStringLimit=50
  57. idColumn=auto_generated_id