简体   繁体   English

如何为 R2DBC PostgreSQL 配置架构

[英]How to configure schema for R2DBC PostgreSQL

I try to use Spring Data R2DBC with postgres.我尝试将 Spring Data R2DBC 与 postgres 一起使用。

I know some configuration for url, username, password.我知道一些 url、用户名、密码的配置。

spring.r2dbc.url
spring.r2dbc.username
spring.r2dbc.password

Is there something for the schema?模式有什么东西吗? Any list of setting available?任何可用的设置列表?

Schema is Postgres-specific and can be configured through the R2DBC Connection URL:架构是 Postgres 特定的,可以通过 R2DBC 连接 URL 进行配置:

r2dbc:postgresql://<server>:<port>/<database>?schema=<yourSchema>

See also:也可以看看:

More pretty way to pass schema in properties: in yaml format:在属性中传递模式的更漂亮的方法:以yaml格式:

spring:
  r2dbc:
    properties:
      schema: <yourSchema>

or properties format:属性格式:

spring.r2dbc.properties.schema: <yourSchema>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM