Move errors to shared

This commit is contained in:
Steven Fackler
2016-12-20 16:07:45 -08:00
parent 1e8b375d67
commit 3b8fc56296
10 changed files with 64 additions and 30 deletions

View File

@@ -9,7 +9,7 @@ mod sqlstate;
mod type_gen;
fn main() {
let path = Path::new("../src");
let path = Path::new("..");
sqlstate::build(path);
type_gen::build(path);
}

View File

@@ -13,7 +13,7 @@ struct Code {
}
pub fn build(path: &Path) {
let mut file = BufWriter::new(File::create(path.join("error/sqlstate.rs")).unwrap());
let mut file = BufWriter::new(File::create(path.join("postgres-shared/src/error/sqlstate.rs")).unwrap());
let codes = parse_codes();

View File

@@ -20,7 +20,7 @@ struct Type {
}
pub fn build(path: &Path) {
let mut file = BufWriter::new(File::create(path.join("types/type_gen.rs")).unwrap());
let mut file = BufWriter::new(File::create(path.join("postgres/src/types/type_gen.rs")).unwrap());
let ranges = parse_ranges();
let types = parse_types(&ranges);