2023-05-09 14:44:42 +02:00
|
|
|
#!/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.
|
|
|
|
|
2023-05-18 14:07:54 +02:00
|
|
|
$pg = PG.connect('user=postgres dbname=tshoard_test')
|
|
|
|
$pg.exec("DROP TABLE IF EXISTS ts_hoarder.test CASCADE")
|
|
|
|
|
|
|
|
$db = Timeseries::Hoarder::Database.new($pg)
|
2023-05-09 14:44:42 +02:00
|
|
|
|
2023-05-18 14:07:54 +02:00
|
|
|
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
|
|
require "pry"
|
|
|
|
Pry.start
|