Permalink
Browse files

doc update

  • Loading branch information...
carloscm committed May 1, 2012
1 parent 8391fb7 commit 0631369dd25d1e7c7a828ac1274314aeb060e7b1
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -95,7 +95,7 @@ type Tweet struct {
mapping := gossie.NewSparse("Timeline", "UserID", "TweetID")
row, err = mapping.Map(&Tweet{"userid", 10000000000004, "Author Name", "Hey this thing rocks!"})
-err = pool.Mutation().Insert("Timeline", row).Run()
+err = pool.Writer().Insert("Timeline", row).Run()
````
When calling Mapping.Map() you can tag your struct fiels with `name` and `type`. The `name` field tag will change the column name to its value when the field it appears on is (un)marhsaled to/from a Cassandra row column. The `type` field tag allows to override the default type Go<->Cassandra type mapping used by Gossie for the field it appears on.

0 comments on commit 0631369

Please sign in to comment.