Once you have connected to the database you will need a Cursor
object with which to manipulate the database. Cursor stands for a "CURrent Set Of Results".
Once we have the connection to the database, connection
, we can easily create a cursor by calling the connection
's cursor() method.
import web, web.database connection = web.database.connect(adapter="mysql", database="test") cursor = connection.cursor()
The next sections show you the different ways to use the cursor
.