Skip to content

Commit

Permalink
feat(risedev): allow dbname of pg in risedev
Browse files Browse the repository at this point in the history
  • Loading branch information
KeXiangWang committed Jul 26, 2024
1 parent a8ef5a7 commit c0c8849
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/risedevtool/src/risedev_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,13 @@ pub fn generate_risedev_env(services: &Vec<ServiceConfig>) -> String {
let port = &c.port;
let user = &c.user;
let password = &c.password;
let database = &c.database;
// These envs are used by `postgres` cli.
writeln!(env, r#"PGHOST="{host}""#,).unwrap();
writeln!(env, r#"PGPORT="{port}""#,).unwrap();
writeln!(env, r#"PGUSER="{user}""#,).unwrap();
writeln!(env, r#"PGPASSWORD="{password}""#,).unwrap();
writeln!(env, r#"PGDATABASE="{database}""#,).unwrap();
}
_ => {}
}
Expand Down

0 comments on commit c0c8849

Please sign in to comment.