fixed example setup() call

This commit is contained in:
Jon Haddad
2014-08-12 16:20:41 -07:00
parent 40eb10ce2f
commit 927e3ad28e

View File

@@ -53,10 +53,10 @@ Getting Started
# see http://datastax.github.io/python-driver/api/cassandra/cluster.html for options # see http://datastax.github.io/python-driver/api/cassandra/cluster.html for options
# the list of hosts will be passed to create a Cluster() instance # the list of hosts will be passed to create a Cluster() instance
>>> connection.setup(['127.0.0.1']) >>> connection.setup(['127.0.0.1'], "cqlengine")
# if you're connecting to a 1.2 cluster # if you're connecting to a 1.2 cluster
>>> connection.setup(['127.0.0.1'], protocol_version=1) >>> connection.setup(['127.0.0.1'], "cqlengine", protocol_version=1)
#...and create your CQL table #...and create your CQL table
>>> from cqlengine.management import sync_table >>> from cqlengine.management import sync_table