2.3 Bulkcopy Objects

This is an extension of the DB-API 2.0 specification.

This object provides an interface to the Sybase bulkcopy functionality.

rowxfer([data])
If the Bulkcopy object direction is CS_BLK_IN then the sequence passed as the data argument is sent as one row to the server. If the direction is CS_BLK_OUT then one row will be returned from the server.

batch()
Marks a complete bulkcopy batch. The number of rows transferred in the batch is returned.

done()
Marks a complete bulkcopy operation. The number of rows transferred in the batch is returned.