evadb.EvaDBConnection.cursor#

EvaDBConnection.cursor()[source]#

Retrieves a cursor associated with the connection.

Returns:

The cursor object used to execute queries.

Return type:

EvaDBCursor

Examples

>>> import evadb
>>> connection = evadb.connection()
>>> cursor = connection.cursor()

The cursor can be used to execute queries.

>>> cursor.query('SELECT * FROM sample_table;').df()
   col1  col2
0     1     2
1     3     4
2     5     6