datasources 0.1.16

Async datasource interfaces, middleware, registry, and test doubles
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::collections::HashMap;

#[derive(Clone, Default)]
pub struct Schema {
    pub columns: HashMap<String, String>,
}

impl Schema {
    pub fn new(columns: HashMap<String, String>) -> Self {
        Self { columns }
    }
}