From c4a3be6f73a975b1b01b8d0696e1dd8781b5aef8 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 3 Feb 2022 13:08:07 +0100 Subject: [PATCH] Stuff --- src/database.rb | 2 ++ src/db_models.rb | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 src/db_models.rb diff --git a/src/database.rb b/src/database.rb index 426deb3..a45079f 100644 --- a/src/database.rb +++ b/src/database.rb @@ -1,5 +1,7 @@ DEFAULT_DB_PATH = "db/main.db" +require_relative "db_models.rb" + def db_handle db = SQLite3::Database.new DEFAULT_DB_PATH db.results_as_hash = true diff --git a/src/db_models.rb b/src/db_models.rb new file mode 100644 index 0000000..20b5b22 --- /dev/null +++ b/src/db_models.rb @@ -0,0 +1,6 @@ +class TableModel + attr_reader :table_name + def initialize(table_name) + @table_name = table_name + end +end