Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Oct 26, 2020
1 parent 42e6d0e commit 43d20c1
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 0 deletions.
91 changes: 91 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
chrono = "0.4.19"
38 changes: 38 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
#![allow(unused)]

fn main() {
println!("Hello, world!");
}

use std::collections::BTreeMap;

type String = std::string::String;
type Integer = i64;
type Float = f64;
type Date = chrono::Date<chrono::Utc>;

struct Table {
rows: usize,
columns: Vec<Column>,
name_to_idx: BTreeMap<String, usize>,
}

struct Column {
name: String,
data: ColumnData,
}

enum ColumnData {
Integer(Vec<Integer>),
Float(Vec<Float>),
String(Vec<String>),
Date(Vec<String>),
}

struct JoinCriteria {
}

struct SelectCriteria {
}

impl Table {
fn join(&self, other: &Table, crit: JoinCriteria) -> Table { panic!() }
fn select(&self, crit: SelectCriteria) -> Table { panic!() }
}

0 comments on commit 43d20c1

Please sign in to comment.