Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opt-refactor(torii-core): complete sql schema refactor #2718

Merged
merged 41 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
bb131a1
start sql model register refactor
Larkooo Nov 25, 2024
a82a895
refactor: arrays as json & model members
Larkooo Nov 25, 2024
57ce39a
alter table and model idx
Larkooo Nov 25, 2024
84754b5
fix: model idx
Larkooo Nov 25, 2024
1ed6d28
better error log
Larkooo Nov 25, 2024
c0653a5
remove model idx
Larkooo Nov 25, 2024
991c657
rempve model members table
Larkooo Nov 26, 2024
d8f2bcf
model schema migration
Larkooo Nov 26, 2024
1dab165
lol
Larkooo Nov 26, 2024
ecc459e
refactor: ditch model members & refactor dynamic query
Larkooo Nov 26, 2024
b8dc77f
start refactoring while grpc and grahql services/type mapping
Larkooo Nov 26, 2024
e1c2e4f
fix set entities enum
Larkooo Nov 26, 2024
cf05465
fix set entities
Larkooo Nov 26, 2024
acd1daa
fmt
Larkooo Nov 26, 2024
57c3e54
update grpc for flattened reads
Larkooo Nov 26, 2024
eec65aa
cleanup
Larkooo Nov 27, 2024
985a001
feat(torii-core): delete entity new schema
Larkooo Nov 27, 2024
5233b5f
graphql integration almost done
Larkooo Nov 29, 2024
1de3f01
global arrays refactor & fix graphql
Larkooo Nov 29, 2024
a8afbcd
fmt
Larkooo Nov 29, 2024
be9c251
tuple no _
Larkooo Nov 29, 2024
4753141
feat: graphql arrays of objects and enums
Larkooo Dec 2, 2024
39fee00
feat: tuple support
Larkooo Dec 2, 2024
0d4024c
fmt
Larkooo Dec 2, 2024
8c41f24
c
Larkooo Dec 2, 2024
7a78ae6
f
Larkooo Dec 2, 2024
ed8f5ef
fix
Larkooo Dec 2, 2024
9b93981
fix entities
Larkooo Dec 2, 2024
d295c0f
refactor: value mapping fix
Larkooo Dec 2, 2024
7bb0853
types
Larkooo Dec 2, 2024
f925568
fix: snake case
Larkooo Dec 2, 2024
530e14b
fix: casing
Larkooo Dec 2, 2024
49e6d01
f
Larkooo Dec 2, 2024
34d0b72
namespaced schema
Larkooo Dec 2, 2024
2f1d7ef
fix grpc test
Larkooo Dec 2, 2024
bb54e11
ff
Larkooo Dec 2, 2024
f060975
fmt
Larkooo Dec 2, 2024
70b3eb3
c
Larkooo Dec 2, 2024
a4ab8b5
fix clauses
Larkooo Dec 2, 2024
786348d
fix libp2p
Larkooo Dec 2, 2024
5e04d91
fix id
Larkooo Dec 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -756,10 +756,12 @@
}
}
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

Check warning on line 764 in crates/torii/core/src/executor/mod.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/core/src/executor/mod.rs#L760-L764

Added lines #L760 - L764 were not covered by tests
)
})?;
}
Expand Down
Loading
Loading