diff options
author | pks <pks@pks.rocks> | 2021-05-16 18:23:12 +0200 |
---|---|---|
committer | pks <pks@pks.rocks> | 2021-05-16 18:23:12 +0200 |
commit | 8a89176b2b563ad20c21eea6f31cef01c46582dc (patch) | |
tree | 7e9f0a44e9d52d6ed2e957ca4b524b2fa3b61f6c /db-create.rb | |
parent | 899ba88b76a2f01b1bab87fbb960c2277435c521 (diff) |
restart
Diffstat (limited to 'db-create.rb')
-rwxr-xr-x | db-create.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/db-create.rb b/db-create.rb deleted file mode 100755 index a9bf771..0000000 --- a/db-create.rb +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env ruby - -require 'sqlite3' - -def main - db = SQLite3::Database.new ARGV[0] - - db.execute <<-SQL - create table power( - id INTEGER PRIMARY KEY, - timestamp DATETIME, - device_name TEXT, - device_location_primary TEXT, - device_location_secondary TEXT, - total FLOAT, - total_start_time DATETIME - ); - SQL - - db.close -end - - -main |