master
E. Almqvist 3 years ago
parent 1e3eeafc01
commit c4a3be6f73
  1. 2
      src/database.rb
  2. 6
      src/db_models.rb

@ -1,5 +1,7 @@
DEFAULT_DB_PATH = "db/main.db" DEFAULT_DB_PATH = "db/main.db"
require_relative "db_models.rb"
def db_handle def db_handle
db = SQLite3::Database.new DEFAULT_DB_PATH db = SQLite3::Database.new DEFAULT_DB_PATH
db.results_as_hash = true db.results_as_hash = true

@ -0,0 +1,6 @@
class TableModel
attr_reader :table_name
def initialize(table_name)
@table_name = table_name
end
end
Loading…
Cancel
Save