{"id":79631,"library":"jdbc-postgres","title":"JDBC Postgres","description":"Install this gem `require 'jdbc/postgres'` and invoke `Jdbc::Postgres.load_driver` within JRuby to load the driver.","status":"active","version":"42.7.11","language":"ruby","source_language":null,"source_url":"https://github.com/jruby/activerecord-jdbc-adapter","tags":["jdbc","postgresql","jruby","database"],"install":[{"cmd":"gem install jdbc-postgres","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'jdbc-postgres', '~> 42.7.11'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"Jdbc::Postgres","correct":"require 'jdbc/postgres'"}],"quickstart":{"code":"require 'jdbc/postgres'\nJdbc::Postgres.load_driver\nrequire 'java'\nconn = java.sql.DriverManager.get_connection('jdbc:postgresql://localhost/mydb', 'user', 'pass')","lang":"ruby","description":"Load the PostgreSQL JDBC driver in JRuby and connect to a database"},"warnings":[{"fix":"Use the `pg` gem instead for CRuby","message":"Only works with JRuby, not CRuby","severity":"breaking","affected_versions":">= 0"}],"env_vars":null,"search_vec":"'databas':22 'driver':12,18 'gem':5 'instal':3 'invok':9 'jdbc':1,10,19 'jdbc/postgres':7 'jrubi':14,21 'load':16 'postgr':2 'postgres.load':11 'postgresql':20 'requir':6 'within':13","created_at":"2026-06-18T04:56:48.728448+00:00","updated_at":"2026-06-18T04:56:48.728448+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://github.com/jruby/activerecord-jdbc-adapter/tree/master/jdbc-postgres","github":"https://github.com/jruby/activerecord-jdbc-adapter","docs":"http://www.rubydoc.info/gems/jdbc-postgres/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-12-15","install_tag":null}}