Database Reference
In-Depth Information
end
if __FILE__ == $0
sample_app = SampleApp.new
sample_app.connect '127.0.0.1'
sample_app.create_schema
sample_app.load_data
sample_app.print_results
sample_app.close
end
Summary
In this chapter, we demonstrated how to create a simple application in four of
the most commonly used languages. The demonstrations showed how to con-
nect to a cluster, create a schema, load and read data, and finally disconnect
from the cluster. The sample application and code will be available on GitHub
at https://github.com/devdazed/cassandra-sample-application . For more inform-
ation
on
Cassandra,
drivers,
tutorials,
and
training,
you
can
visit
ht-
tp://planetcassandra.org .
Search WWH ::




Custom Search