NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

database.Database.sql()

Syntax

sql(query)

Description

Executes an SQL-query on the database. A SELECT-query returns the list of records found.

Example

db = ximport("database")
book = db.connect("book")
book.sql("select * from pages")