Skip to content

Commit

Permalink
Enable reflection on table type 'SYSTEM VERSIONED'
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Mar 28, 2023
1 parent 3d68571 commit 69522ac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions diesel_cli/src/infer_schema_internals/information_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ where
>,
NotLike<tables::table_name, &'static str>,
>,
Like<tables::table_type, &'static str>,
Or<Eq<tables::table_type, &'static str>, Eq<tables::table_type, &'static str>>,
>: QueryFragment<Conn::Backend>,
Conn::Backend: QueryMetadata<sql_types::Text>,
{
Expand All @@ -169,7 +169,11 @@ where
.select(table_name)
.filter(table_schema.eq(db_schema_name))
.filter(table_name.not_like("\\_\\_%"))
.filter(table_type.like("BASE TABLE"))
.filter(
table_type
.eq("BASE TABLE")
.or(table_type.eq("SYSTEM VERSIONED")),
)
.load::<String>(connection)?;
table_names.sort_unstable();
Ok(table_names
Expand Down

0 comments on commit 69522ac

Please sign in to comment.