database.Database.append()
Syntax
append(name, fields=[], key="id")
Description
Adds a new table to the database with the given name. You need to supply a list of field names in the table. Each row or record of data in a table has different fields of information to store. For example, a people table would have a name and an address field for each person in the table. The optional key parameter defines the name of the id-field in the table. An id stores a unique number for each record of data.
Example
db = ximport("database")
book = db.create("book")
book.append("pages", ["title", "text", "image", "pagenumber"])
print book.tables()
>>>["pages"]