-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dbverifier checks, db-info commands, serialization code for vi…
…rtual tables (#29775) GitOrigin-RevId: 237db74f26d520919ef41df530e16169b64583f7
- Loading branch information
1 parent
09f2baa
commit c349a71
Showing
5 changed files
with
2 additions
and
113 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
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 |
---|---|---|
@@ -1,38 +1,10 @@ | ||
use std::sync::LazyLock; | ||
|
||
use common::document::{ | ||
ParsedDocument, | ||
ResolvedDocument, | ||
}; | ||
use value::TableName; | ||
|
||
use crate::{ | ||
defaults::{ | ||
SystemIndex, | ||
SystemTable, | ||
}, | ||
VirtualTableMetadata, | ||
}; | ||
|
||
pub mod types; | ||
|
||
// Keep this around for a push so we can drop the table - table is unused. | ||
pub static VIRTUAL_TABLES_TABLE: LazyLock<TableName> = LazyLock::new(|| { | ||
"_virtual_tables" | ||
.parse() | ||
.expect("Invalid built-in virtual_tables table") | ||
}); | ||
|
||
pub struct VirtualTablesTable; | ||
impl SystemTable for VirtualTablesTable { | ||
fn table_name(&self) -> &'static TableName { | ||
&VIRTUAL_TABLES_TABLE | ||
} | ||
|
||
fn indexes(&self) -> Vec<SystemIndex> { | ||
vec![] | ||
} | ||
|
||
fn validate_document(&self, document: ResolvedDocument) -> anyhow::Result<()> { | ||
ParsedDocument::<VirtualTableMetadata>::try_from(document).map(|_| ()) | ||
} | ||
} |
72 changes: 0 additions & 72 deletions
72
crates/database/src/bootstrap_model/virtual_tables/types.rs
This file was deleted.
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