risingwave_common::catalog::test_utils

Trait ColumnDescTestExt

source
pub trait ColumnDescTestExt {
    // Required methods
    fn new_atomic(data_type: DataType, name: &str, column_id: i32) -> Self;
    fn new_struct(
        name: &str,
        column_id: i32,
        type_name: &str,
        fields: Vec<ColumnDesc>,
    ) -> Self;
}

Required Methods§

source

fn new_atomic(data_type: DataType, name: &str, column_id: i32) -> Self

Create a ColumnDesc with the given name and type.

Note: Only used for tests.

source

fn new_struct( name: &str, column_id: i32, type_name: &str, fields: Vec<ColumnDesc>, ) -> Self

Create a ColumnDesc with Struct type.

Note: Only used for tests.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ColumnDescTestExt for ColumnDesc

source§

fn new_atomic(data_type: DataType, name: &str, column_id: i32) -> Self

source§

fn new_struct( name: &str, column_id: i32, type_name: &str, fields: Vec<ColumnDesc>, ) -> Self

Implementors§