Renaming
This commit is contained in:
parent
ec0a4f2510
commit
8108b26af5
2 changed files with 6 additions and 6 deletions
|
|
@ -41,15 +41,15 @@ impl FromIterator<Value> for Row {
|
||||||
|
|
||||||
impl Row {
|
impl Row {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Row(vec![])
|
Self(vec![])
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn new_from_insertion_values(insertion_values: InsertionValues) -> Self {
|
pub fn new_from_insertion_values(insertion_values: InsertionValues) -> Self {
|
||||||
Row(insertion_values)
|
Self(insertion_values)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn with_number_of_columns(number_of_columns: usize) -> Self {
|
pub fn with_number_of_columns(number_of_columns: usize) -> Self {
|
||||||
Row(Vec::with_capacity(number_of_columns))
|
Self(Vec::with_capacity(number_of_columns))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn push(&mut self, value: Value) {
|
pub fn push(&mut self, value: Value) {
|
||||||
|
|
|
||||||
|
|
@ -84,11 +84,11 @@ impl<W> ServerProto for W where W: BackendProtoWriter + Send {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn value_to_column_description(schema: &TableSchema, value: &Value, index: Column) -> anyhow::Result<ColumnDescription> {
|
fn value_to_column_description(schema: &TableSchema, value: &Value, column: Column) -> anyhow::Result<ColumnDescription> {
|
||||||
let name = schema.column_name_from_column(index);
|
let name = schema.column_name_from_column(column);
|
||||||
|
|
||||||
let table_oid = schema.table_name().as_bytes().as_ptr() as i32;
|
let table_oid = schema.table_name().as_bytes().as_ptr() as i32;
|
||||||
let column_index = index.try_into()?;
|
let column_index = column.try_into()?;
|
||||||
let type_oid = value.type_oid();
|
let type_oid = value.type_oid();
|
||||||
let type_size = value.type_size();
|
let type_size = value.type_size();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue