Skip to content

Commit

Permalink
rename a method
Browse files Browse the repository at this point in the history
  • Loading branch information
imor committed Nov 20, 2024
1 parent 3bd444d commit d4f0a55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pg_replicate/src/clients/bigquery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit d4f0a55

Please sign in to comment.