# NodeBox

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

# database.create()

## Syntax

    create(name, overwrite=True)

## Description

Creates a new database file with the given name, in the current folder. The .db file extension is added automatically. By default, any existing database file with the same name is overwritten. The create() command returns a Database object which you can use in your script to add tables and rows, or retrieve data.

## Example

    db = ximport("database")
    book = db.create("book")