Move errors to shared
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user