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

15 lines
302 B
Ruby
Raw Permalink Normal View History

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