-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #483 from splitgraph/external-catalog
Enable external metastores
- Loading branch information
Showing
27 changed files
with
1,351 additions
and
838 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[package] | ||
name = "clade" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
prost = "0.12" | ||
tonic = "0.10" | ||
|
||
[build-dependencies] | ||
tonic-build = "0.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use std::env; | ||
use std::path::PathBuf; | ||
|
||
fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); | ||
tonic_build::configure() | ||
.file_descriptor_set_path(out_dir.join("clade_descriptor.bin")) | ||
.build_server(true) | ||
.build_client(true) | ||
.compile(&["proto/schema.proto"], &["proto"])?; | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
syntax = "proto3"; | ||
|
||
package clade.schema; | ||
|
||
message SchemaObject { | ||
string name = 1; | ||
repeated TableObject tables = 2; | ||
} | ||
|
||
message TableObject { | ||
string name = 1; | ||
string location = 2; | ||
} | ||
|
||
message ListSchemaRequest { | ||
string catalog_name = 1; | ||
} | ||
|
||
message ListSchemaResponse { | ||
repeated SchemaObject schemas = 1; | ||
} | ||
|
||
service SchemaStoreService { | ||
// List the available schemas | ||
rpc ListSchemas(ListSchemaRequest) returns (ListSchemaResponse); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pub mod schema { | ||
tonic::include_proto!("clade.schema"); | ||
pub const FILE_DESCRIPTOR_SET: &[u8] = | ||
tonic::include_file_descriptor_set!("clade_descriptor"); | ||
} |
Oops, something went wrong.