17 lines
502 B
Ruby
Executable file
17 lines
502 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
require "bundler/setup"
|
|
require "timeseries/hoarder"
|
|
|
|
# You can add fixtures and/or initialization code here to make experimenting
|
|
# with your gem easier. You can also use a different console, if you like.
|
|
|
|
$pg = PG.connect('user=postgres dbname=tshoard_test')
|
|
$pg.exec("DROP TABLE IF EXISTS ts_hoarder.test CASCADE")
|
|
|
|
$db = Timeseries::Hoarder::Database.new($pg)
|
|
|
|
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
require "pry"
|
|
Pry.start
|