Created
March 28, 2020 02:08
-
-
Save oddjobz/aaca93b8092915a18f6ebfbb5a27b163 to your computer and use it in GitHub Desktop.
First example in the PyNNDB Introduction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pynndb import Database | |
db = Database('my-database') | |
people = db.table('people') | |
people.append({'name': 'Fred Bloggs', 'age': 21}) | |
people.append({'name': 'Joe Smith', 'age': 22}) | |
people.append({'name': 'John Doe', 'age': 19}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment