Skip to content

Commit

Permalink
add v16 for query-tests-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed Nov 17, 2023
1 parent d3fb3a8 commit f0ce5dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ pub(crate) fn connection_string(
Some(PostgresVersion::V13) => format!("postgresql://postgres:prisma@127.0.0.1:5435/{database}"),
Some(PostgresVersion::V14) => format!("postgresql://postgres:prisma@127.0.0.1:5437/{database}"),
Some(PostgresVersion::V15) => format!("postgresql://postgres:prisma@127.0.0.1:5438/{database}"),
Some(PostgresVersion::V16) => format!("postgresql://postgres:prisma@127.0.0.1:5439/{database}"),
Some(PostgresVersion::PgBouncer) => {
format!("postgresql://postgres:prisma@127.0.0.1:6432/db?{database}&pgbouncer=true")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub enum PostgresVersion {
V13,
V14,
V15,
V16,
PgBouncer,
}

Expand All @@ -50,6 +51,7 @@ impl TryFrom<&str> for PostgresVersion {
"13" => Self::V13,
"14" => Self::V14,
"15" => Self::V15,
"16" => Self::V16,
"pgbouncer" => Self::PgBouncer,
_ => return Err(TestError::parse_error(format!("Unknown Postgres version `{s}`"))),
};
Expand All @@ -68,6 +70,7 @@ impl ToString for PostgresVersion {
PostgresVersion::V13 => "13",
PostgresVersion::V14 => "14",
PostgresVersion::V15 => "15",
PostgresVersion::V16 => "16",
PostgresVersion::PgBouncer => "pgbouncer",
}
.to_owned()
Expand Down

0 comments on commit f0ce5dc

Please sign in to comment.