# NodeBox

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

# database.Database.close()

## Syntax

    close()

## Description

Commits any pending transactions and closes the database. It's always a good idea to explicitly close the database when you're done.

## Example

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