2013-04-01 18:43:01 +02:00
|
|
|
.. dataset documentation master file, created by
|
|
|
|
|
sphinx-quickstart on Mon Apr 1 18:41:21 2013.
|
|
|
|
|
You can adapt this file completely to your liking, but it should at least
|
|
|
|
|
contain the root `toctree` directive.
|
|
|
|
|
|
2013-04-02 13:17:41 +02:00
|
|
|
dataset: databases for busy nerds
|
|
|
|
|
=================================
|
2013-04-02 00:44:22 +02:00
|
|
|
|
2013-04-02 11:10:29 +02:00
|
|
|
Getting the databases out of your data's way::
|
2013-04-01 18:43:01 +02:00
|
|
|
|
2013-04-02 11:10:29 +02:00
|
|
|
import dataset
|
|
|
|
|
|
|
|
|
|
db = dataset.connect('sqlite:///weather.db')
|
|
|
|
|
db['temperature'].find()
|
|
|
|
|
|
2013-04-02 13:17:41 +02:00
|
|
|
Features
|
|
|
|
|
--------
|
2013-04-02 11:10:29 +02:00
|
|
|
|
|
|
|
|
* **Automatic schema**. If a table or column is written that does not
|
|
|
|
|
exist in the database, it will be created automatically.
|
|
|
|
|
* **Upserts**. Records are either created or updated, depdending on
|
|
|
|
|
whether an existing version can be found.
|
|
|
|
|
* **Query helpers** for simple queries such as all rows in a table or
|
|
|
|
|
all distinct values across a set of columns.
|
2013-04-01 22:40:28 +02:00
|
|
|
|
2013-04-02 13:17:41 +02:00
|
|
|
Contents
|
|
|
|
|
--------
|
|
|
|
|
|
2013-04-01 22:40:28 +02:00
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 2
|
|
|
|
|
|
2013-04-02 13:17:41 +02:00
|
|
|
quickstart
|
|
|
|
|
api
|
2013-04-01 18:43:01 +02:00
|
|
|
|