├── .gitattributes ├── .github └── FUNDING.yml ├── .gitignore ├── .graphqlconfig ├── .travis.yml ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── appveyor.yml ├── ci ├── before_deploy.ps1 ├── before_deploy.sh ├── install.sh └── script.sh ├── core ├── .gitignore ├── Cargo.toml ├── diesel.toml ├── migrations │ ├── .gitkeep │ ├── 2018-11-25-022440_create_messages │ │ ├── down.sql │ │ └── up.sql │ ├── 2019-03-02-051654_create_abouts │ │ ├── down.sql │ │ └── up.sql │ ├── 2019-03-02-051658_create_authors │ │ ├── down.sql │ │ └── up.sql │ ├── 2019-03-02-051830_create_blob_links │ │ ├── down.sql │ │ └── up.sql │ ├── 2019-03-02-051836_create_blobs │ │ ├── down.sql │ │ └── up.sql │ ├── 2019-03-02-051846_create_branches │ │ ├── down.sql │ │ └── up.sql │ ├── 2019-03-02-051855_create_contacts │ │ ├── down.sql │ │ └── up.sql │ ├── 2019-03-02-051901_create_keys │ │ ├── down.sql │ │ └── up.sql │ ├── 2019-03-02-051906_create_links │ │ ├── down.sql │ │ └── up.sql │ ├── 2019-03-02-051913_create_mentions │ │ ├── down.sql │ │ └── up.sql │ ├── 2019-03-02-051924_create_votes │ │ ├── down.sql │ │ └── up.sql │ └── 2019-04-14-075043_create_texts_table │ │ ├── down.sql │ │ └── up.sql ├── misc │ ├── fifty_replies.offset │ ├── hello.json │ ├── out.offset │ └── query_db_cursor.json ├── src │ ├── cursor │ │ └── mod.rs │ ├── db │ │ ├── mod.rs │ │ ├── models │ │ │ ├── abouts.rs │ │ │ ├── authors.rs │ │ │ ├── blob_links.rs │ │ │ ├── blobs.rs │ │ │ ├── branches.rs │ │ │ ├── contacts.rs │ │ │ ├── keys.rs │ │ │ ├── links.rs │ │ │ ├── mentions.rs │ │ │ ├── messages.rs │ │ │ ├── mod.rs │ │ │ ├── posts.rs │ │ │ ├── texts.rs │ │ │ └── votes.rs │ │ └── schema.rs │ ├── graphql │ │ ├── author.rs │ │ ├── db.rs │ │ ├── input_objects.rs │ │ ├── like.rs │ │ ├── mention.rs │ │ ├── mention_connection.rs │ │ ├── mod.rs │ │ ├── notification.rs │ │ ├── page_info.rs │ │ ├── post.rs │ │ ├── post_connection.rs │ │ ├── root.rs │ │ ├── thread.rs │ │ └── thread_connection.rs │ ├── lib.rs │ ├── ssb_message │ │ └── mod.rs │ └── utils │ │ └── mod.rs ├── testing_thoughts.md └── tests │ └── threads.rs ├── docs └── images │ └── ssb-patchql.jpg ├── http ├── .env_example ├── .gitignore ├── Cargo.toml ├── schema.json └── src │ └── bin │ └── main.rs ├── schema.graphql ├── schema.json └── stdio ├── Cargo.toml ├── example └── bash_example │ ├── example.sh │ └── query_process_and_query.json └── src └── bin └── json_rpc_stdio.rs /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | open_collective: sunrise-choir 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | **/*.rs.bk 3 | *.sqlite* 4 | .env 5 | -------------------------------------------------------------------------------- /.graphqlconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/.graphqlconfig -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/.travis.yml -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/README.md -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/appveyor.yml -------------------------------------------------------------------------------- /ci/before_deploy.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/ci/before_deploy.ps1 -------------------------------------------------------------------------------- /ci/before_deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/ci/before_deploy.sh -------------------------------------------------------------------------------- /ci/install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/ci/install.sh -------------------------------------------------------------------------------- /ci/script.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/ci/script.sh -------------------------------------------------------------------------------- /core/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | **/*.rs.bk 3 | *.sqlite* 4 | .env 5 | -------------------------------------------------------------------------------- /core/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/Cargo.toml -------------------------------------------------------------------------------- /core/diesel.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/diesel.toml -------------------------------------------------------------------------------- /core/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/migrations/2018-11-25-022440_create_messages/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE messages 3 | -------------------------------------------------------------------------------- /core/migrations/2018-11-25-022440_create_messages/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/migrations/2018-11-25-022440_create_messages/up.sql -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051654_create_abouts/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE abouts 3 | -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051654_create_abouts/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/migrations/2019-03-02-051654_create_abouts/up.sql -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051658_create_authors/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE authors 3 | -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051658_create_authors/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/migrations/2019-03-02-051658_create_authors/up.sql -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051830_create_blob_links/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE blob_links 3 | -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051830_create_blob_links/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/migrations/2019-03-02-051830_create_blob_links/up.sql -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051836_create_blobs/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE blobs 3 | -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051836_create_blobs/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/migrations/2019-03-02-051836_create_blobs/up.sql -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051846_create_branches/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE branches 3 | -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051846_create_branches/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/migrations/2019-03-02-051846_create_branches/up.sql -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051855_create_contacts/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE contacts 3 | -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051855_create_contacts/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/migrations/2019-03-02-051855_create_contacts/up.sql -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051901_create_keys/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE keys 3 | -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051901_create_keys/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/migrations/2019-03-02-051901_create_keys/up.sql -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051906_create_links/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE links 3 | -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051906_create_links/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/migrations/2019-03-02-051906_create_links/up.sql -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051913_create_mentions/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE mentions 3 | -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051913_create_mentions/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/migrations/2019-03-02-051913_create_mentions/up.sql -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051924_create_votes/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE votes 3 | -------------------------------------------------------------------------------- /core/migrations/2019-03-02-051924_create_votes/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/migrations/2019-03-02-051924_create_votes/up.sql -------------------------------------------------------------------------------- /core/migrations/2019-04-14-075043_create_texts_table/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | DROP TABLE texts; 3 | -------------------------------------------------------------------------------- /core/migrations/2019-04-14-075043_create_texts_table/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/migrations/2019-04-14-075043_create_texts_table/up.sql -------------------------------------------------------------------------------- /core/misc/fifty_replies.offset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/misc/fifty_replies.offset -------------------------------------------------------------------------------- /core/misc/hello.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/misc/hello.json -------------------------------------------------------------------------------- /core/misc/out.offset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/misc/out.offset -------------------------------------------------------------------------------- /core/misc/query_db_cursor.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/misc/query_db_cursor.json -------------------------------------------------------------------------------- /core/src/cursor/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/cursor/mod.rs -------------------------------------------------------------------------------- /core/src/db/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/mod.rs -------------------------------------------------------------------------------- /core/src/db/models/abouts.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/abouts.rs -------------------------------------------------------------------------------- /core/src/db/models/authors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/authors.rs -------------------------------------------------------------------------------- /core/src/db/models/blob_links.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/blob_links.rs -------------------------------------------------------------------------------- /core/src/db/models/blobs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/blobs.rs -------------------------------------------------------------------------------- /core/src/db/models/branches.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/branches.rs -------------------------------------------------------------------------------- /core/src/db/models/contacts.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/contacts.rs -------------------------------------------------------------------------------- /core/src/db/models/keys.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/keys.rs -------------------------------------------------------------------------------- /core/src/db/models/links.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/links.rs -------------------------------------------------------------------------------- /core/src/db/models/mentions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/mentions.rs -------------------------------------------------------------------------------- /core/src/db/models/messages.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/messages.rs -------------------------------------------------------------------------------- /core/src/db/models/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/mod.rs -------------------------------------------------------------------------------- /core/src/db/models/posts.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/posts.rs -------------------------------------------------------------------------------- /core/src/db/models/texts.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/texts.rs -------------------------------------------------------------------------------- /core/src/db/models/votes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/models/votes.rs -------------------------------------------------------------------------------- /core/src/db/schema.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/db/schema.rs -------------------------------------------------------------------------------- /core/src/graphql/author.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/author.rs -------------------------------------------------------------------------------- /core/src/graphql/db.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/db.rs -------------------------------------------------------------------------------- /core/src/graphql/input_objects.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/input_objects.rs -------------------------------------------------------------------------------- /core/src/graphql/like.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/like.rs -------------------------------------------------------------------------------- /core/src/graphql/mention.rs: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /core/src/graphql/mention_connection.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/mention_connection.rs -------------------------------------------------------------------------------- /core/src/graphql/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/mod.rs -------------------------------------------------------------------------------- /core/src/graphql/notification.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/notification.rs -------------------------------------------------------------------------------- /core/src/graphql/page_info.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/page_info.rs -------------------------------------------------------------------------------- /core/src/graphql/post.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/post.rs -------------------------------------------------------------------------------- /core/src/graphql/post_connection.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/post_connection.rs -------------------------------------------------------------------------------- /core/src/graphql/root.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/root.rs -------------------------------------------------------------------------------- /core/src/graphql/thread.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/thread.rs -------------------------------------------------------------------------------- /core/src/graphql/thread_connection.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/graphql/thread_connection.rs -------------------------------------------------------------------------------- /core/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/lib.rs -------------------------------------------------------------------------------- /core/src/ssb_message/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/ssb_message/mod.rs -------------------------------------------------------------------------------- /core/src/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/src/utils/mod.rs -------------------------------------------------------------------------------- /core/testing_thoughts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/testing_thoughts.md -------------------------------------------------------------------------------- /core/tests/threads.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/core/tests/threads.rs -------------------------------------------------------------------------------- /docs/images/ssb-patchql.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/docs/images/ssb-patchql.jpg -------------------------------------------------------------------------------- /http/.env_example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/http/.env_example -------------------------------------------------------------------------------- /http/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | **/*.rs.bk 3 | *.sqlite* 4 | .env 5 | -------------------------------------------------------------------------------- /http/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/http/Cargo.toml -------------------------------------------------------------------------------- /http/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/http/schema.json -------------------------------------------------------------------------------- /http/src/bin/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/http/src/bin/main.rs -------------------------------------------------------------------------------- /schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/schema.graphql -------------------------------------------------------------------------------- /schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/schema.json -------------------------------------------------------------------------------- /stdio/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/stdio/Cargo.toml -------------------------------------------------------------------------------- /stdio/example/bash_example/example.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/stdio/example/bash_example/example.sh -------------------------------------------------------------------------------- /stdio/example/bash_example/query_process_and_query.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/stdio/example/bash_example/query_process_and_query.json -------------------------------------------------------------------------------- /stdio/src/bin/json_rpc_stdio.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sunrise-choir/ssb-patchql/HEAD/stdio/src/bin/json_rpc_stdio.rs --------------------------------------------------------------------------------