Skip to content

Commit

Permalink
creation, update and deletion are blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
hamnis committed Jul 28, 2023
1 parent 2b667a5 commit 64ec027
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/main/scala/no/nrk/bigquery/BigQueryClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -493,13 +493,13 @@ class BigQueryClient[F[_]](
}

def create(table: TableInfo): F[Table] =
F.delay(bigQuery.create(table))
F.blocking(bigQuery.create(table))

def update(table: TableInfo): F[Table] =
F.delay(bigQuery.update(table))
F.blocking(bigQuery.update(table))

def delete(tableId: BQTableId): F[Boolean] =
F.delay(bigQuery.delete(tableId.underlying))
F.blocking(bigQuery.delete(tableId.underlying))

def tablesIn(
dataset: BQDataset,
Expand Down Expand Up @@ -541,13 +541,13 @@ class BigQueryClient[F[_]](
}

def create(info: RoutineInfo): F[Routine] =
F.delay(bigQuery.create(info))
F.blocking(bigQuery.create(info))

def update(info: RoutineInfo): F[Routine] =
F.delay(bigQuery.update(info))
F.blocking(bigQuery.update(info))

def delete(udfId: UDF.UDFId.PersistentId): F[Boolean] =
F.delay(bigQuery.delete(RoutineId.of(udfId.dataset.project.value, udfId.dataset.id, udfId.name.value)))
F.blocking(bigQuery.delete(RoutineId.of(udfId.dataset.project.value, udfId.dataset.id, udfId.name.value)))

}

Expand Down

0 comments on commit 64ec027

Please sign in to comment.