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 4d7e29d commit 3bd444d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pg_replicate/src/clients/duckdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl DuckDbClient {
}
}

fn postgres_typ_to_duckdb_typ(typ: &Type) -> &'static str {
fn postgres_to_duckdb_type(typ: &Type) -> &'static str {
match typ {
&Type::BOOL => "bool",
&Type::CHAR | &Type::BPCHAR | &Type::VARCHAR | &Type::NAME | &Type::TEXT => "text",
Expand Down Expand Up @@ -140,7 +140,7 @@ impl DuckDbClient {
fn duckdb_column_spec(column_schema: &ColumnSchema, s: &mut String) {
s.push_str(&column_schema.name);
s.push(' ');
let typ = Self::postgres_typ_to_duckdb_typ(&column_schema.typ);
let typ = Self::postgres_to_duckdb_type(&column_schema.typ);
s.push_str(typ);
if column_schema.identity {
s.push_str(" primary key");
Expand Down

0 comments on commit 3bd444d

Please sign in to comment.