updated readme and index to use sync_table rather than create_table

This commit is contained in:
Jon Haddad
2013-08-20 13:40:37 -07:00
parent 2abdbb5245
commit dc869c4916
2 changed files with 5 additions and 5 deletions

View File

@@ -37,8 +37,8 @@ class ExampleModel(Model):
>>> connection.setup(['127.0.0.1:9160'])
#...and create your CQL table
>>> from cqlengine.management import create_table
>>> create_table(ExampleModel)
>>> from cqlengine.management import sync_table
>>> sync_table(ExampleModel)
#now we can create some rows:
>>> em1 = ExampleModel.create(example_type=0, description="example1", created_at=datetime.now())

View File

@@ -17,7 +17,7 @@ Contents:
.. toctree::
:maxdepth: 2
topics/models
topics/queryset
topics/columns
@@ -46,8 +46,8 @@ Getting Started
>>> connection.setup(['127.0.0.1:9160'])
#...and create your CQL table
>>> from cqlengine.management import create_table
>>> create_table(ExampleModel)
>>> from cqlengine.management import sync_table
>>> sync_table(ExampleModel)
#now we can create some rows:
>>> em1 = ExampleModel.create(example_type=0, description="example1", created_at=datetime.now())