Skip to content

Refactor Table::new method arguments

Current API method is ugly:

    pub fn new(
        name: &str,
        columns: Vec<Column>,
        sharding_key: &[&str],
        primary_key: &[&str],
        engine: SpaceEngine,
        is_system: bool,
    ) -> Result<Self, SbroadError> {

It is very complicated to work with it and add new table types (local table for example). Need refactoring.

Edited by Denis Smirnov