This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Quickstart
==========
..toctree::
:maxdepth:2
Hi, welcome to the five-minute quick-start tutorial.
At first you need to import the dataset package :) ::
import dataset
To connect to a database you need to identify it using what is called an engine url. Here are a few examples::
# connecting to a SQLite database
db = dataset.connect('sqlite:///factbook.db')
# connecting to a MySQL database
db = dataset.connect('mysql://user:password@localhost/mydatabase')
# connecting to a PostgreSQL database
db = dataset.connect('postgresql://scott:tiger@localhost:5432/mydatabase')
If you want to learn more about how to connect to various databases, have a look at the `SQLAlchemy documentation`_.