Skip to content

Instantly share code, notes, and snippets.

@oddjobz
Created March 28, 2020 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oddjobz/aaca93b8092915a18f6ebfbb5a27b163 to your computer and use it in GitHub Desktop.
Save oddjobz/aaca93b8092915a18f6ebfbb5a27b163 to your computer and use it in GitHub Desktop.
First example in the PyNNDB Introduction
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