forked from ponder-sh/ponder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update internal schema representation (ponder-sh#852)
* new schema dir * feat: cleanup intermediate types * wip * wip * fix some tests * update type: * fix: schema encoding into lock table * fix jsdoc * nits * decodeSchema * feat: drop schema from namespace_lock, add table_names * fix: namespace_lock migrations * Revert "fix: namespace_lock migrations" This reverts commit 7a02bfc. * Revert "feat: drop schema from namespace_lock, add table_names" This reverts commit f0d9e2d. * Revert "decodeSchema" This reverts commit 8311a37. * add comments explaining schema encoding * Allow custom indexes to be defined in "ponder.schema.ts" (ponder-sh#854) * custom index * feat: create custom indexes when healthy * feat: create custom when healthy * add jsdoc to p.index * more constraint validation * improve constraint logs * . * fix test flake * initial custom index docs * fix: schema docstring * index ordering * rename addIndexes to createIndexes * feat: index ordering * feat: indexing ordering not available on multi columns * add to custom index docs * update intermediate table type * feat: custom indexes with postgres supports custom schemas * docs * docs + changeset * add index to example --------- Co-authored-by: typedarray <[email protected]> --------- Co-authored-by: typedarray <[email protected]>
- Loading branch information
Showing
51 changed files
with
2,859 additions
and
1,949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@ponder/core": patch | ||
--- | ||
|
||
Added support for database indexes using the `p.index()` function in `ponder.schema.ts`. [Read more](https://ponder.sh/docs/schema#indexes). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.