Skip to content
This repository
Browse code

Merge pull request #955 from epishkin/patch-3

fix the example usage in JDBCSource
commit 27755c421ae0ed9115ca0f7e7798640880c597d2 2 parents fd65aa0 + a8be3a9
P. Oscar Boykin johnynek authored
10 scalding-jdbc/src/main/scala/com/twitter/scalding/jdbc/JDBCSource.scala
@@ -28,14 +28,18 @@ import cascading.tuple.Fields
28 28 * If you write to a DB, the fields in the final pipe have to correspond to the column names in the DB table.
29 29 * Example usage:
30 30 * case object YourTableSource extends JDBCSource {
31   - * override val tableName = "tableName"
  31 + * override val tableName = TableName("tableName")
32 32 * override val columns = List(
33 33 * varchar("col1", 64),
34 34 * date("col2"),
35 35 * tinyint("col3"),
36   - * double("col4"),
  36 + * double("col4")
  37 + * )
  38 + * override def currentConfig = ConnectionSpec(
  39 + * ConnectUrl("jdbc:mysql://mysql01.company.com:3306/production"),
  40 + * UserName("username"), Password("password"),
  41 + * MysqlDriver
37 42 * )
38   - * override def currentConfig = ConnectionSpec("www.github.com", "username", "password", "mysql")
39 43 * }
40 44 *
41 45 * @author Argyris Zymnis

0 comments on commit 27755c4

Please sign in to comment.
Something went wrong with that request. Please try again.