From d4f0a55e7dcd8b00ab943f72e2daadbbfb0c3476 Mon Sep 17 00:00:00 2001 From: Raminder Singh Date: Wed, 20 Nov 2024 10:15:50 +0530 Subject: [PATCH] rename a method --- pg_replicate/src/clients/bigquery.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pg_replicate/src/clients/bigquery.rs b/pg_replicate/src/clients/bigquery.rs index 6433766..ec3249f 100644 --- a/pg_replicate/src/clients/bigquery.rs +++ b/pg_replicate/src/clients/bigquery.rs @@ -70,7 +70,7 @@ impl BigQueryClient { } } - fn postgres_type_to_bigquery_type(typ: &Type) -> &'static str { + fn postgres_to_bigquery_type(typ: &Type) -> &'static str { match typ { &Type::BOOL => "bool", &Type::CHAR | &Type::BPCHAR | &Type::VARCHAR | &Type::NAME | &Type::TEXT => "string", @@ -134,7 +134,7 @@ impl BigQueryClient { fn column_spec(column_schema: &ColumnSchema, s: &mut String) { s.push_str(&column_schema.name); s.push(' '); - let typ = Self::postgres_type_to_bigquery_type(&column_schema.typ); + let typ = Self::postgres_to_bigquery_type(&column_schema.typ); s.push_str(typ); if !column_schema.nullable && !Self::is_array_type(&column_schema.typ) { s.push_str(" not null");