postgresql - HowTo:指定在 postgresql uri 中指向哪个模式
问题描述
所以,我试图指向一个 Heroku PostgreSQL 数据库,因为没有指定模式,所以只能将我指向没有数据可访问的公共:
postgres://user:password@host:port/database
如何在 uri 上指定要指向的架构?
解决方案
利用currentSchema
jdbc:postgresql://{host}:5432/{database_name}?currentSchema={scehma_name}
推荐阅读
- javascript - 在javascript中将对象的递归数组转换为嵌套或递归对象
- c# - 即使在数据关闭后,我如何编码以保留数据?
- php - 致命错误:在第 152 行的 C:\wamp\www\tas\system\database\drivers\sqlsrv\sqlsrv_driver.php 中超过了 300 秒的最大执行时间
- mysql - 带有计数和日期的 Double GroupBy 返回错误的日期
- c# - 参数化全文搜索查询
- android - Firebase addListenerForSingleValueEvent 下载使用
- javascript - 格式为 yyyy/mm/dd 的本地日期字符串在 javascript 中将 mm 替换为 dd
- android - 在 LinearLayout 中裁剪嵌套的 ImageView
- python - 如何在列表中找到素数最多的数字?
- sql - SQL Server:如何将行中的不同项目转换为列值