Diary Functions

[diary.py] #!/user/bin/env python3 import datetime import sys import os from collections import OrderedDict from peewee import * db = SqliteDatabase(‘diary.db’) […]

Read More
Comments Off on Diary Functions

Creating a Diary

[diary.py] #!/user/bin/env python3 from collections import OrderedDict import datetime from peewee import * db = SqliteDatabase(‘diary.db’) class Entry(Model): content = […]

Read More
Comments Off on Creating a Diary

C.R.U.D.

Create, Read, Update, Delete .select()  Displays records .create    Creates a new record .save()    Updates an existing record in the […]

Read More
Comments Off on C.R.U.D.

ORM & Modeling

ORMs Once upon a time, if you needed to interact with a database, you had to write SQL. But now […]

Read More
Comments Off on ORM & Modeling