2023-03-15 16:21:45 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module ::DiscourseAi
|
|
|
|
module Database
|
|
|
|
class Connection
|
|
|
|
def self.db
|
2023-05-23 14:12:59 -04:00
|
|
|
pg_conn = PG.connect(SiteSetting.ai_embeddings_pg_connection_string)
|
|
|
|
MiniSql::Connection.get(pg_conn)
|
2023-03-15 16:21:45 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|