mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-10 11:35:44 +08:00
12 lines
255 B
Ruby
12 lines
255 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ::DiscourseAi
|
|
module Database
|
|
class Connection
|
|
def self.db
|
|
pg_conn = PG.connect(SiteSetting.ai_embeddings_pg_connection_string)
|
|
MiniSql::Connection.get(pg_conn)
|
|
end
|
|
end
|
|
end
|
|
end
|