Skip to content

Commit

Permalink
H-3581: Create crate for graph-migrations (#5640)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDiekmann authored Nov 13, 2024
1 parent f02fac8 commit 0b8fda2
Show file tree
Hide file tree
Showing 7 changed files with 642 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ members = [
"libs/@local/codec",
"libs/@local/graph/api",
"libs/@local/graph/authorization",
"libs/@local/graph/migrations",
"libs/@local/graph/postgres-store",
"libs/@local/graph/store",
"libs/@local/graph/temporal-versioning",
Expand Down Expand Up @@ -67,6 +68,7 @@ harpc-wire-protocol.path = "libs/@local/harpc/wire-protocol"
hash-codec.path = "libs/@local/codec"
hash-graph-api.path = "libs/@local/graph/api"
hash-graph-authorization.path = "libs/@local/graph/authorization"
hash-graph-migrations.path = "libs/@local/graph/migrations"
hash-graph-postgres-store.path = "libs/@local/graph/postgres-store"
hash-graph-store.path = "libs/@local/graph/store"
hash-graph-temporal-versioning.path = "libs/@local/graph/temporal-versioning"
Expand Down
1 change: 1 addition & 0 deletions libs/@local/graph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Each crate has a `hash-graph-` prefix and the following crates are part of the H
- `api`: Endpoints for interacting with the graph. It provides a RESTful API to interact with the graph.
- `authorization`: Authorization layer which is responsible for authorizing the data that is being used in the graph, and the users who are interacting with the graph.
- `client`: A client which is used to interact with the graph. It provides a typed interface to interact with the graph.
- `migrations`: Migrations for the graph. It provides the functionality to migrate the graph to a new version.
- `postgres-store`: A crate that provides a PostgreSQL storage backend for the graph. Also, it defines the schema of the database and provides the funcitonality of dumping/restoring snaphots of the graph.
- `sdk`: The SDK for interacting with the graph in a more user-friendly way. It provides a high-level interface to interact with the graph.
- `store`: Declaration for the store interface which is used to interact with the graph.
Expand Down
21 changes: 21 additions & 0 deletions libs/@local/graph/migrations/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cargo-features = ["edition2024"]

[package]
name = "hash-graph-migrations"
version.workspace = true
edition.workspace = true
license.workspace = true
publish.workspace = true
authors.workspace = true

[dependencies]
# Public workspace dependencies

# Public third-party dependencies

# Private workspace dependencies

# Private third-party dependencies

[lints]
workspace = true
607 changes: 607 additions & 0 deletions libs/@local/graph/migrations/LICENSE.md

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions libs/@local/graph/migrations/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "@rust/hash-graph-migrations",
"version": "0.0.0-private",
"private": true,
"license": "AGPL-3"
}
1 change: 1 addition & 0 deletions libs/@local/graph/migrations/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate alloc;

0 comments on commit 0b8fda2

Please sign in to comment.