NETRAVE/docker/netrave-protohandler/db/postgre_module.rb

15 lines
307 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
require 'sequel'
module PostgresManager
include DatabaseManager
def initialize_db
@db = Sequel.connect(adapter: 'postgres', host: 'localhost', database: 'my_db', user: 'user', password: 'password')
# ... setup tables
end
# ... implement CRUD operations
end