mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
feat: teach sqlx-cli about migrate.migrations-dir
This commit is contained in:
@@ -209,7 +209,8 @@ impl PgConnection {
|
||||
should_fetch: bool,
|
||||
) -> Result<ColumnOrigin, Error> {
|
||||
if let Some(origin) =
|
||||
self.cache_table_to_column_names
|
||||
self.inner
|
||||
.cache_table_to_column_names
|
||||
.get(&relation_id)
|
||||
.and_then(|table_columns| {
|
||||
let column_name = table_columns.columns.get(&attribute_no).cloned()?;
|
||||
@@ -245,6 +246,7 @@ impl PgConnection {
|
||||
};
|
||||
|
||||
let table_columns = self
|
||||
.inner
|
||||
.cache_table_to_column_names
|
||||
.entry(relation_id)
|
||||
.or_insert_with(|| TableColumns {
|
||||
|
||||
Reference in New Issue
Block a user