15 lines
307 B
Ruby
15 lines
307 B
Ruby
|
# 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
|