def cursor(self):
        """Return a new cursor object.

        :rtype: :class:`~google.cloud.bigquery.dbapi.Cursor`
        :returns: A DB-API cursor that uses this connection.
        """
        return cursor.Cursor(self)
Ejemplo n.º 2
0
    def cursor(self):
        """Return a new cursor object.

        Returns:
            google.cloud.bigquery.dbapi.Cursor: A DB-API cursor that uses this connection.
        """
        return cursor.Cursor(self)
Ejemplo n.º 3
0
    def cursor(self):
        """Return a new cursor object.

        Returns:
            google.cloud.bigquery.dbapi.Cursor: A DB-API cursor that uses this connection.
        """
        new_cursor = cursor.Cursor(self)
        self._cursors_created.add(new_cursor)
        return new_cursor