Skip to content

Commit f8a0b62

Browse files
committed
postgres -> postgresql
1 parent df6084b commit f8a0b62

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

crates/stackable-operator/src/crd/database/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ mod tests;
88

99
#[derive(Debug, Snafu)]
1010
pub enum Error {
11-
#[snafu(context(false), display("postgres error"))]
12-
Postgres { source: server::postgres::Error },
11+
#[snafu(context(false), display("postgresql error"))]
12+
Postgresql { source: server::postgresql::Error },
1313

1414
#[snafu(context(false), display("derby error"))]
1515
Derby { source: server::derby::Error },
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pub mod derby;
2-
pub mod postgres;
2+
pub mod postgresql;
33
pub mod redis;

crates/stackable-operator/src/crd/database/server/postgres.rs renamed to crates/stackable-operator/src/crd/database/server/postgresql.rs

File renamed without changes.

crates/stackable-operator/src/crd/database/tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ use crate::{
1010
celery::{CeleryDatabaseConnection, GenericCeleryDatabaseConnection},
1111
jdbc::{GenericJDBCDatabaseConnection, JDBCDatabaseConnection},
1212
},
13-
server::{postgres::PostgresqlConnection, redis::RedisConnection},
13+
server::{postgresql::PostgresqlConnection, redis::RedisConnection},
1414
},
1515
};
1616

1717
#[derive(Clone, Debug, Deserialize, JsonSchema, PartialEq, Serialize)]
1818
#[serde(rename_all = "camelCase")]
1919
enum DummyJDBCConnection {
20-
Postgres(PostgresqlConnection),
20+
Postgresql(PostgresqlConnection),
2121
#[allow(unused)]
2222
Generic(GenericJDBCDatabaseConnection),
2323
}
2424

2525
impl DummyJDBCConnection {
2626
fn as_jdbc_database_connection(&self) -> &dyn JDBCDatabaseConnection {
2727
match self {
28-
Self::Postgres(p) => p,
28+
Self::Postgresql(p) => p,
2929
Self::Generic(g) => g,
3030
}
3131
}
@@ -51,7 +51,7 @@ impl DummyCeleryConnection {
5151
#[test]
5252
fn test_dummy_jdbc_database_usage() {
5353
// Set up test data
54-
let dummy_jdbc_connection = DummyJDBCConnection::Postgres(PostgresqlConnection {
54+
let dummy_jdbc_connection = DummyJDBCConnection::Postgresql(PostgresqlConnection {
5555
host: "my-database".parse().expect("static host is always valid"),
5656
port: 1234,
5757
database: "my_schema".to_owned(),

0 commit comments

Comments
 (0)