Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mirror: embed GraphQL schema into SQL
Summary: This commit augments the `Mirror` constructor to turn the provided GraphQL schema into a SQL schema, with which it initializes the backing database. The schema is roughly as originally described in #622, with some changes (primarily: we omit `WITHOUT ROWID`; we add indexes; we store `total_count` on connections; and we use milliseconds instead of seconds for epoch time). Test Plan: Unit tests included, with full coverage; run `yarn unit`. wchargin-branch: mirror-sql-schema
- Loading branch information
Showing
2 changed files
with
245 additions
and
20 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
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