Skip to content

Instantly share code, notes, and snippets.

@nviennot
Created November 5, 2014 06:03
Show Gist options
  • Save nviennot/e5d4838599d32beb9c4f to your computer and use it in GitHub Desktop.
Save nviennot/e5d4838599d32beb9c4f to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rethinkdb'
include RethinkDB::Shortcuts
c = r.connect(:host => 'localhost', :port => 28015, :db => 'db').repl
100.times do
r.db_drop('db').run(c) rescue nil
r.db_create('db').run(c)
r.table_create('table').run(c)
print '.'
end
puts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment