A cursor is the database object that points into a connection and executes SQL commands. In a SQLite-backed order app, create one with `cur = con.cursor()` before asking the database to create tables, save orders, or retrieve them. section 12.0
Using a cursor for orders
After connecting to `orders.db`, call `cur.execute()` with `CREATE TABLE IF NOT EXISTS orders(...)` to prepare the table. Saving an order uses another `cur.execute()` call with `INSERT`, followed by `con.commit()`. section 12.0
. . .
import sqlite3 #1
. . .
con = sqlite3.connect("orders.db") #2
cur = con.cursor()
cur.execute(
"CREATE TABLE IF NOT EXISTS orders(name, drink, flavor, topping);") #3
app = Flask(name)
. . .
Inspect the compact setup that imports `sqlite3`, opens the database connection, creates a cursor, and executes the table-creation command. section 12.0






