com.ziclix.python.sql.pipe.db
Class DBSource
- java.lang.Object
-
- com.ziclix.python.sql.pipe.db.BaseDB
-
- com.ziclix.python.sql.pipe.db.DBSource
-
-
Constructor Summary
Constructors Constructor and Description DBSource(PyConnection connection, java.lang.Class dataHandler, java.lang.String tableName, java.lang.String where, PyObject include, PyObject params)Constructor for handling the generation of data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidend()Close the cursor.PyObjectnext()Return the next row in the result set.voidstart()Method start
-
-
-
Constructor Detail
-
DBSource
public DBSource(PyConnection connection, java.lang.Class dataHandler, java.lang.String tableName, java.lang.String where, PyObject include, PyObject params)
Constructor for handling the generation of data.- Parameters:
connection- the database connectiondataHandler- a custom DataHandler for the cursor, can be NonetableName- the table in question on the source databasewhere- an optional where clause, defaults to '(1=1)' if nullinclude- the columns to be queried from the source, '*' if Noneparams- optional params to substituted in the where clause
-
-
Method Detail
-
next
public PyObject next()
Return the next row in the result set. The first row returned will be column information.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG