Skip to content

Commit

Permalink
fix(sql-schema-describer): tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Jan 7, 2025
1 parent 4b49012 commit 04aa174
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-schema-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
CLICOLOR_FORCE: 1
TEST_DATABASE_URL: ${{ matrix.database.url }}

- run: cargo nextest run -p sql-schema-describer
- run: cargo nextest run -p sql-schema-describer --features all-native
if: ${{ !matrix.database.single_threaded }}
env:
CLICOLOR_FORCE: 1
Expand Down
4 changes: 4 additions & 0 deletions schema-engine/sql-schema-describer/tests/test_api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ impl TestApi {

async fn describe_impl(&self, schemas: &[&str]) -> Result<SqlSchema, DescriberError> {
match self.sql_family() {
#[cfg(any(feature = "postgresql", feature = "cockroachdb"))]
SqlFamily::Postgres => {
use postgres::Circumstances;
sql_schema_describer::postgres::SqlSchemaDescriber::new(
Expand All @@ -93,11 +94,13 @@ impl TestApi {
.describe(schemas)
.await
}
#[cfg(feature = "sqlite")]
SqlFamily::Sqlite => {
sql_schema_describer::sqlite::SqlSchemaDescriber::new(&self.database)
.describe_impl()
.await
}
#[cfg(feature = "mysql")]
SqlFamily::Mysql => {
use mysql::Circumstances;
sql_schema_describer::mysql::SqlSchemaDescriber::new(
Expand All @@ -115,6 +118,7 @@ impl TestApi {
.describe(schemas)
.await
}
#[cfg(feature = "mssql")]
SqlFamily::Mssql => {
sql_schema_describer::mssql::SqlSchemaDescriber::new(&self.database)
.describe(schemas)
Expand Down

0 comments on commit 04aa174

Please sign in to comment.