Additional top-level class in compilation unit: BCPFunc.
| Modifier and Type | Field and Description |
|---|---|
| protected static PyList | __members__
Field __members__ |
| protected static PyList | __methods__
Field __methods__ |
| protected int | batchsize
Field batchsize, queuesize |
| protected Class | destDH
Field sourceDH, destDH |
| protected PyConnection | destination
Field source, destination |
| protected int | queuesize
Field batchsize, queuesize |
| protected PyConnection | source
Field source, destination |
| protected Class | sourceDH
Field sourceDH, destDH |
| Access | Constructor and Description |
|---|---|
| public | BCP(PyConnection source, PyConnection destination)
The source connection will produce the rows while the destination connection will consume the rows and coerce as necessary for the destination database. |
| public | BCP(PyConnection source, PyConnection destination, int
used to batch the inserts on the destination batchsize)The source connection will produce the rows while the destination connection will consume the rows and coerce as necessary for the destination database. |
| Modifier and Type | Method and Description |
|---|---|
| public PyObject | Returns: the attribute for the given nameOverrides org. Gets the value of the attribute name. |
| public void | __setattr__(String name, PyObject value)
Overrides org. Sets the attribute name to value. |
| protected PyObject | Returns: the count of the total number of rows bulk copied, -1 if the query returned no rowsthe table in question on the source database fromTable, String an optional where clause, defaults to '(1=1)' if null where, PyObject optional params to substituted in the where clause params, PyObject the columns to be queried from the source, '*' if None include, PyObject the columns to be excluded from insertion on the destination, all if None exclude, String if non-null, the table in the destination db, otherwise the same table name as the source toTable, PyObject the optional bindings for the destination, this allows morphing of types during the copy bindings)Bulkcopy data from one database to another. |
| public static void | |
| public boolean | refersDirectlyTo(PyObject ob)
Implements org. Optional operation. |
| public String | Returns: a string representation of the object.Overrides org. String representation of the object. |
| public int | traverse(Visitproc visit, Object arg)
Implements org. Traverses all directly contained |
| __members__ | back to summary |
|---|---|
| protected static PyList __members__ Field __members__ | |
| __methods__ | back to summary |
|---|---|
| protected static PyList __methods__ Field __methods__ | |
| batchsize | back to summary |
|---|---|
| protected int batchsize Field batchsize, queuesize | |
| destDH | back to summary |
|---|---|
| protected Class<T> destDH Field sourceDH, destDH | |
| destination | back to summary |
|---|---|
| protected PyConnection destination Field source, destination | |
| queuesize | back to summary |
|---|---|
| protected int queuesize Field batchsize, queuesize | |
| source | back to summary |
|---|---|
| protected PyConnection source Field source, destination | |
| sourceDH | back to summary |
|---|---|
| protected Class<T> sourceDH Field sourceDH, destDH | |
| BCP | back to summary |
|---|---|
| public BCP(PyConnection source, PyConnection destination) The source connection will produce the rows while the destination connection will consume the rows and coerce as necessary for the destination database. | |
| BCP | back to summary |
|---|---|
| public BCP(PyConnection source, PyConnection destination, int batchsize) The source connection will produce the rows while the destination connection will consume the rows and coerce as necessary for the destination database.
| |
| __findattr_ex__ | back to summary |
|---|---|
| public PyObject __findattr_ex__(String name) Overrides org. Gets the value of the attribute name. | |
| __setattr__ | back to summary |
|---|---|
| public void __setattr__(String name, PyObject value) Overrides org. Sets the attribute name to value.
| |
| bcp | back to summary |
|---|---|
| protected PyObject bcp(String fromTable, String where, PyObject params, PyObject include, PyObject exclude, String toTable, PyObject bindings) Bulkcopy data from one database to another.
the count of the total number of rows bulk copied, -1 if the query returned no rows | |
| classDictInit | back to summary |
|---|---|
| public static void classDictInit(PyObject dict) Initializes the object's namespace. | |
| refersDirectlyTo | back to summary |
|---|---|
| public boolean refersDirectlyTo(PyObject ob) Implements org. Doc from org. Optional operation.
Should only be implemented if it is more efficient
than calling
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. String representation of the object. | |
| traverse | back to summary |
|---|---|
| public int traverse(Visitproc visit, Object arg) Implements org. Doc from org. Traverses all directly contained
| |