Skip to content

Commit

Permalink
opt-refactor(torii-core): complete sql schema refactor (#2718)
Browse files Browse the repository at this point in the history
* start sql model register refactor

* refactor: arrays as json & model members

* alter table and model idx

* fix: model idx

* better error log

* remove model idx

* rempve model members table

* model schema migration

* lol

* refactor: ditch model members & refactor dynamic query

* start refactoring while grpc and grahql services/type mapping

* fix set entities enum

* fix set entities

* fmt

* update grpc for flattened reads

* cleanup

* feat(torii-core): delete entity new schema

* graphql integration almost done

* global arrays refactor & fix graphql

* fmt

* tuple no _

* feat: graphql arrays of objects and enums

* feat: tuple support

* fmt

* c

* f

* fix

* fix entities

* refactor: value mapping fix

* types

* fix: snake case

* fix: casing

* f

* namespaced schema

* fix grpc test

* ff

* fmt

* c

* fix clauses

* fix libp2p

* fix id
  • Loading branch information
Larkooo authored Dec 3, 2024
1 parent 56c0bf7 commit d0722c4
Show file tree
Hide file tree
Showing 27 changed files with 2,277 additions and 1,830 deletions.
10 changes: 6 additions & 4 deletions crates/torii/core/src/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -759,10 +759,12 @@ impl<'c, P: Provider + Sync + Send + 'static> Executor<'c, P> {
}
}
QueryType::Other => {
query.execute(&mut **tx).await.with_context(|| {
format!(
"Failed to execute query: {:?}, args: {:?}",
query_message.statement, query_message.arguments
query.execute(&mut **tx).await.map_err(|e| {
anyhow::anyhow!(
"Failed to execute query: {:?}, args: {:?}, error: {:?}",
query_message.statement,
query_message.arguments,
e
)
})?;
}
Expand Down
Loading

0 comments on commit d0722c4

Please sign in to comment.