├── .nojekyll ├── docs-src ├── stargate-core │ ├── antora.yml │ └── modules │ │ ├── concepts │ │ └── nav.adoc │ │ ├── install │ │ ├── examples │ │ │ ├── bash │ │ │ │ ├── unzip_sg_jars.sh │ │ │ │ ├── docker-logs.sh │ │ │ │ ├── wget_sg_jars_dse_68.sh │ │ │ │ ├── wget_sg_jars_cass_3x.sh │ │ │ │ ├── wget_sg_jars_cass_40.sh │ │ │ │ ├── start_vm_3x.sh │ │ │ │ ├── start_vm_40.sh │ │ │ │ ├── start_vm_68.sh │ │ │ │ └── start_vm_syntax.sh │ │ │ └── result │ │ │ │ └── sh_docker-logs.result │ │ └── pages │ │ │ ├── install_astra.adoc │ │ │ ├── install-overview.adoc │ │ │ ├── install_docker_standalone_3x.adoc │ │ │ ├── install_docker_standalone_40.adoc │ │ │ └── install_docker_standalone_dse_68.adoc │ │ ├── secure │ │ ├── pages │ │ │ ├── secure-overview.adoc │ │ │ └── auth.adoc │ │ ├── nav.adoc │ │ ├── examples │ │ │ └── bash │ │ │ │ └── get-table-based-token.sh │ │ └── partials │ │ │ └── use_auth_token_rest_document.adoc │ │ ├── ROOT │ │ ├── cnav.adoc │ │ └── apinav.adoc │ │ └── manage │ │ ├── pages │ │ ├── manage-overview.adoc │ │ └── start-stargate.adoc │ │ └── nav.adoc ├── stargate-develop │ ├── antora.yml │ ├── antora-ad4d.yml │ ├── antora-astra-classic.yml │ ├── modules │ │ ├── develop │ │ │ ├── examples │ │ │ │ ├── rust │ │ │ │ │ ├── rust-init.rs │ │ │ │ │ ├── rust-setup-use.rs │ │ │ │ │ ├── rust-run-ks-example.rs │ │ │ │ │ ├── rust-run-query-example.rs │ │ │ │ │ ├── rust-bind.rs │ │ │ │ │ ├── rust-run-ks-example.result │ │ │ │ │ ├── rust-run-example.rs │ │ │ │ │ ├── rust-setup-dependencies.rs │ │ │ │ │ ├── rust-processing.rs │ │ │ │ │ └── rust-query2.rs │ │ │ │ ├── result │ │ │ │ │ ├── docapi │ │ │ │ │ │ ├── curl-ns-simple.result │ │ │ │ │ │ └── library │ │ │ │ │ │ │ ├── curl-ns-dcs.result │ │ │ │ │ │ │ ├── curl-ns-simple.result │ │ │ │ │ │ │ ├── curl-collection-post-empty.result │ │ │ │ │ │ │ ├── curl-ns-set-replicas.result │ │ │ │ │ │ │ ├── curl-document-put-one-book.result │ │ │ │ │ │ │ ├── curl-document-put-one-reader-with-id.result │ │ │ │ │ │ │ ├── curl-ns-get-particular.result │ │ │ │ │ │ │ ├── curl-document-patch-book-with-path.result │ │ │ │ │ │ │ ├── curl-document-put-book-with-path.result │ │ │ │ │ │ │ ├── curl-document-patch.result │ │ │ │ │ │ │ ├── curl-document-patch2.result │ │ │ │ │ │ │ ├── curl-document-put-ttl.result │ │ │ │ │ │ │ ├── curl-document-post-noDocId.result │ │ │ │ │ │ │ ├── curl-document-put-replace.result │ │ │ │ │ │ │ ├── curl-document-put-withDocId.result │ │ │ │ │ │ │ ├── curl-document-post-one-reader.result │ │ │ │ │ │ │ ├── curl-document-post-pop-book.result │ │ │ │ │ │ │ ├── curl-data-get-path-in-document.result │ │ │ │ │ │ │ ├── curl-document-get-array-change1.result │ │ │ │ │ │ │ ├── curl-document-get-array-change3.result │ │ │ │ │ │ │ ├── curl-document-get-array-change2.result │ │ │ │ │ │ │ ├── curl-document-post-push-book.result │ │ │ │ │ │ │ ├── curl-document-post-mult-readers.result │ │ │ │ │ │ │ ├── curl-document-get-one.result │ │ │ │ │ │ │ ├── curl-document-get-one-6.result │ │ │ │ │ │ │ ├── curl-document-get-one-2.result │ │ │ │ │ │ │ ├── curl-document-post-mult-books.result │ │ │ │ │ │ │ ├── curl-collection-get-all.result │ │ │ │ │ │ │ ├── curl-document-get-one-with-fields.result │ │ │ │ │ │ │ ├── curl-data-get-path-array-in-document.result │ │ │ │ │ │ │ ├── curl-document-get-one-3.result │ │ │ │ │ │ │ └── curl-ns-get-functions.result │ │ │ │ │ ├── gql_1createPayloadConditional.result │ │ │ │ │ ├── gql_createIndexes.result │ │ │ │ │ ├── rest_createIndexes.result │ │ │ │ │ ├── docapi_curl_nc_dcs.result │ │ │ │ │ ├── rest_curl_get_udt_data.result │ │ │ │ │ ├── docapi_curl_create_ns.result │ │ │ │ │ ├── docapi_curl_ns_dcs.result │ │ │ │ │ ├── docapi_curl_put_janet.result │ │ │ │ │ ├── rest_curl_create_ks.result │ │ │ │ │ ├── rest_curl_create_table.result │ │ │ │ │ ├── rest_curl_ks_dcs.result │ │ │ │ │ ├── sh_docker-logs.result │ │ │ │ │ ├── docapi_curl_patch_janet.result │ │ │ │ │ ├── docapi_curl_patch_partial.result │ │ │ │ │ ├── docapi_curl_patch_subdoc.result │ │ │ │ │ ├── docapi_curl_post_martha.result │ │ │ │ │ ├── docapi_curl_post_noDocId.result │ │ │ │ │ ├── docapi_curl_put_joey_subdoc.result │ │ │ │ │ ├── rest_curl_add_column.result │ │ │ │ │ ├── rest_curl_add_map_to_table.result │ │ │ │ │ ├── rest_curl_add_udt_to_table.result │ │ │ │ │ ├── rest_curl_add_set_to_table.result │ │ │ │ │ ├── rest_curl_change_column.result │ │ │ │ │ ├── rest_curl_create_index.result │ │ │ │ │ ├── docapi_curl_get_particular_ns.result │ │ │ │ │ ├── rest_curl_add_list_to_table.result │ │ │ │ │ ├── rest_curl_add_tuple_to_table.result │ │ │ │ │ ├── rest_curl_create_udt.result │ │ │ │ │ ├── docapi_curl_get_joey.result │ │ │ │ │ ├── rest_curl_get_particular_ks.result │ │ │ │ │ ├── rest_curl_insert_map_data.result │ │ │ │ │ ├── rest_curl_insert_set_data.result │ │ │ │ │ ├── rest_curl_insert_udt_data.result │ │ │ │ │ ├── gql_1deleteBook.result │ │ │ │ │ ├── gql_createCollTable.result │ │ │ │ │ ├── gql_createMapTable.result │ │ │ │ │ ├── gql_createUDT.result │ │ │ │ │ ├── gql_deleteIndex.result │ │ │ │ │ ├── rest_curl_insert_list_data.result │ │ │ │ │ ├── rest_curl_insert_tuple_data.result │ │ │ │ │ ├── rest_curl_patch_users.result │ │ │ │ │ ├── gql_1Undeploy.result │ │ │ │ │ ├── gql_1queryUpdate.result │ │ │ │ │ ├── gql_alterTableAdd.result │ │ │ │ │ ├── gql_dropTableArticle.result │ │ │ │ │ ├── gql_dropTableBooks.result │ │ │ │ │ ├── gql_dropTableIfExists.result │ │ │ │ │ ├── rest_curl_update_users.result │ │ │ │ │ ├── gql_alterTableAddCols.result │ │ │ │ │ ├── gql_createKeyspace.result │ │ │ │ │ ├── gql_dropColumnFormat.result │ │ │ │ │ ├── gql_dropColumnIsbn.result │ │ │ │ │ ├── gql_1deleteLibColl.result │ │ │ │ │ ├── gql_createTables.result │ │ │ │ │ ├── gql_1DeployFileAgain.result │ │ │ │ │ ├── gql_1createDeployFile.result │ │ │ │ │ ├── gql_createTableIfNotExists.result │ │ │ │ │ ├── gql_readOneGoldGT100Badge.result │ │ │ │ │ ├── rest_curl_write_users.result │ │ │ │ │ ├── docapi_curl_get_joey_weights.result │ │ │ │ │ ├── docapi_curl_get_one_doc.result │ │ │ │ │ ├── rest_curl_get_particular_column.result │ │ │ │ │ ├── rest_curl_get_particular_column_qs.result │ │ │ │ │ ├── rest_curl_write_users_qs.result │ │ │ │ │ ├── gql_deleteOneBook.result │ │ │ │ │ ├── gql_deleteOneBookCL.result │ │ │ │ │ ├── gql_insertBookWithOption.result │ │ │ │ │ ├── gql_1fetchBook.result │ │ │ │ │ ├── go-full-script.result │ │ │ │ │ ├── docapi_curl_get_doc_where.result │ │ │ │ │ ├── docapi_curl_get_doc_mult_where.result │ │ │ │ │ ├── docapi_curl_patch_check_janet.result │ │ │ │ │ ├── gql_readOneBook.result │ │ │ │ │ ├── java-full-script.result │ │ │ │ │ ├── gql_updateOneBook.result │ │ │ │ │ ├── gql_1insert2Books.result │ │ │ │ │ ├── docapi_curl_check_ns_exists.result │ │ │ │ │ ├── rest_curl_create_addl_indexes.result │ │ │ │ │ ├── gql_1createDeploy.result │ │ │ │ │ ├── docapi_curl_patch_check_subdoc.result │ │ │ │ │ ├── gql_insertTwoBooks.result │ │ │ │ │ ├── docapi_curl_patch_check_partial.result │ │ │ │ │ ├── gql_1createQueryWhereCONTAINS.result │ │ │ │ │ ├── gql_1createQueryWhereGT-2.result │ │ │ │ │ ├── gql_1createQueryWhereGT.result │ │ │ │ │ ├── gql_1createQueryWhereLT.result │ │ │ │ │ ├── docapi_curl_get_subdoc_where.result │ │ │ │ │ ├── rust-full-script.result │ │ │ │ │ ├── docapi_curl_get_subdoc_mult_where.result │ │ │ │ │ ├── gql_updateOneBookAgain.result │ │ │ │ │ ├── gql_1createQueryWhereIN.result │ │ │ │ │ ├── gql_1queryUpdate-2.result │ │ │ │ │ ├── rest_curl_get_users_fields.result │ │ │ │ │ ├── gql_insertArticle.result │ │ │ │ │ ├── gql_insertOneBadge.result │ │ │ │ │ ├── gql_readThreeBooks.result │ │ │ │ │ ├── gql_readOneGoldBadge.result │ │ │ │ │ ├── gql_readOneWriterBadge.result │ │ │ │ │ ├── gql_readOneGold100Badge.result │ │ │ │ │ ├── gql_readOneWriterEntryBadge.result │ │ │ │ │ ├── gql_readOneWriterKeyBadge.result │ │ │ │ │ ├── gql_readOneWriterValueBadge.result │ │ │ │ │ └── rest_curl_get_primKey.result │ │ │ │ ├── bash │ │ │ │ │ ├── unzip_sg_jars.sh │ │ │ │ │ ├── node-npm.sh │ │ │ │ │ ├── node-yarn.sh │ │ │ │ │ ├── docker-logs.sh │ │ │ │ │ ├── go-get-grpc-go-client.sh │ │ │ │ │ ├── rust-build1.sh │ │ │ │ │ ├── wget_sg_jars_cass_3x.sh │ │ │ │ │ ├── wget_sg_jars_cass_40.sh │ │ │ │ │ ├── wget_sg_jars_dse_68.sh │ │ │ │ │ ├── rust-build2.sh │ │ │ │ │ ├── start_vm_3x.sh │ │ │ │ │ ├── start_vm_40.sh │ │ │ │ │ ├── get-table-based-token.sh │ │ │ │ │ ├── start_vm_68.sh │ │ │ │ │ └── start_vm_syntax.sh │ │ │ │ ├── go │ │ │ │ │ ├── go-run-test.go │ │ │ │ │ ├── go-connect.go │ │ │ │ │ └── go-simple-query.go │ │ │ │ ├── yaml │ │ │ │ │ ├── java-grpc-one-row.yaml │ │ │ │ │ ├── java-grpc-std-query-result.yaml │ │ │ │ │ └── async-yaml-result.yaml │ │ │ │ ├── cql │ │ │ │ │ ├── create_index_set.cql │ │ │ │ │ ├── java-grpc-create-table.cql │ │ │ │ │ ├── create_index_list.cql │ │ │ │ │ ├── create_index_tuple.cql │ │ │ │ │ ├── create_index_map_sai.cql │ │ │ │ │ ├── create_index_list_sai.cql │ │ │ │ │ ├── create_index_set_sai.cql │ │ │ │ │ └── create_index_map.cql │ │ │ │ ├── graphql │ │ │ │ │ ├── cql-first │ │ │ │ │ │ ├── schema_footer.gql │ │ │ │ │ │ ├── dropKeyspace.graphql │ │ │ │ │ │ ├── dropType.graphql │ │ │ │ │ │ ├── createKeyspace.graphql │ │ │ │ │ │ ├── dropTableArticle.graphql │ │ │ │ │ │ ├── deleteIndex.graphql │ │ │ │ │ │ ├── createKeyspace.json │ │ │ │ │ │ ├── dropTableIfExists.graphql │ │ │ │ │ │ ├── deleteOneBook.graphql │ │ │ │ │ │ ├── schema_header.gql │ │ │ │ │ │ ├── dropColumnFormat.graphql │ │ │ │ │ │ ├── readOneBook.graphql │ │ │ │ │ │ ├── deleteOneBookCL.graphql │ │ │ │ │ │ ├── insertOneBadge.graphql │ │ │ │ │ │ ├── updateOneBook.graphql │ │ │ │ │ │ ├── readThreeBooks.graphql │ │ │ │ │ │ ├── insertBookWithOption.graphql │ │ │ │ │ │ ├── updateOneBookAgain.graphql │ │ │ │ │ │ ├── insertArticle.graphql │ │ │ │ │ │ ├── readOneGoldBadge.graphql │ │ │ │ │ │ ├── curl_deleteIndex.sh │ │ │ │ │ │ ├── insertTwoBooks.graphql │ │ │ │ │ │ └── readReaderWithUDT.graphql │ │ │ │ │ └── schema-first │ │ │ │ │ │ ├── schema_footer.gql │ │ │ │ │ │ ├── 1deleteBook.graphql │ │ │ │ │ │ ├── 1fetchBook.graphql │ │ │ │ │ │ ├── 1test.json │ │ │ │ │ │ ├── 1curl_cql_directive.graphql │ │ │ │ │ │ ├── 1fetchSameBooks.graphql │ │ │ │ │ │ ├── 1fetchBookByTitle.graphql │ │ │ │ │ │ ├── 1fetchIsbnGT.graphql │ │ │ │ │ │ ├── 1fetchIsbnLT.graphql │ │ │ │ │ │ ├── 1fetchBooksIn.graphql │ │ │ │ │ │ ├── 1Undeploy.graphql │ │ │ │ │ │ ├── 1fetchAuthorContains-2.graphql │ │ │ │ │ │ ├── 1fetchAuthorContains.graphql │ │ │ │ │ │ ├── 1getOrderById.graphql │ │ │ │ │ │ ├── 1createQuery.graphql │ │ │ │ │ │ ├── 1getAllKsSchema.graphql │ │ │ │ │ │ ├── 1getBookWithOrder.graphql │ │ │ │ │ │ ├── 1getParticularKsSchema.graphql │ │ │ │ │ │ ├── 1curl_createKeyspaceWithFile.sh │ │ │ │ │ │ ├── 1createUDTAddress.graphql │ │ │ │ │ │ ├── 1getOrders.graphql │ │ │ │ │ │ ├── schema_header.gql │ │ │ │ │ │ ├── 1createUDTReview.graphql │ │ │ │ │ │ ├── 1insertPapBook.graphql │ │ │ │ │ │ ├── 1createTableLibCollection.graphql │ │ │ │ │ │ ├── 1deleteLibColl.graphql │ │ │ │ │ │ ├── 1createQueryWhereIN.graphql │ │ │ │ │ │ ├── 1queryUpdate.graphql │ │ │ │ │ │ ├── 1createQueryPageSize.graphql │ │ │ │ │ │ ├── 1curl_deleteBook.sh │ │ │ │ │ │ ├── 1createTableBook.graphql │ │ │ │ │ │ ├── 1curl_fetchBook.sh │ │ │ │ │ │ ├── 1curl_getAllKsSchema.sh │ │ │ │ │ │ ├── 1fetchOrderById.graphql │ │ │ │ │ │ ├── 1insert2Books.graphql │ │ │ │ │ │ ├── 1curl_deleteLibColl.sh │ │ │ │ │ │ ├── 1curl_createKeyspace.sh │ │ │ │ │ │ ├── 1insert2BooksSameTitle.graphql │ │ │ │ │ │ ├── 1curl_queryWhereIn.sh │ │ │ │ │ │ ├── 1curl_Undeploy.sh │ │ │ │ │ │ ├── 1curl_updatePap.sh │ │ │ │ │ │ ├── 1createQueryWhereGT-2.graphql │ │ │ │ │ │ ├── 1createQueryWhereLT.graphql │ │ │ │ │ │ ├── 1curl_insertMobyDick.sh │ │ │ │ │ │ ├── 1curl_insertNativeSon.sh │ │ │ │ │ │ ├── 1curl_insertgroundswell1.sh │ │ │ │ │ │ ├── 1curl_insertgroundswell2.sh │ │ │ │ │ │ ├── 1curl_fetchSameBooks.sh │ │ │ │ │ │ ├── 1curl_getParticularKsSchema.sh │ │ │ │ │ │ ├── 1createQueryWhereGT.graphql │ │ │ │ │ │ ├── 1curl_insertPapBook.sh │ │ │ │ │ │ └── 1curl_queryWhereIN2PartKey.sh │ │ │ │ ├── java │ │ │ │ │ ├── java-grpc-create-localhost.java │ │ │ │ │ ├── java-grpc-execute-async.java │ │ │ │ │ ├── java-grpc-process1.java │ │ │ │ │ ├── java-grpc-create-channel.java │ │ │ │ │ ├── java-grpc-async.java │ │ │ │ │ ├── java-grpc-sync-query.java │ │ │ │ │ ├── java-grpc-processing.java │ │ │ │ │ ├── java-grpc-std-query.java │ │ │ │ │ └── java-grpc-sync.java │ │ │ │ ├── docapi │ │ │ │ │ ├── library │ │ │ │ │ │ ├── OLD │ │ │ │ │ │ │ ├── curl-ns-get-all.sh │ │ │ │ │ │ │ ├── curl-ns-delete.sh │ │ │ │ │ │ │ ├── curl-collection-get-all.sh │ │ │ │ │ │ │ ├── curl-ns-delete-dcs.sh │ │ │ │ │ │ │ ├── curl-ns-get-particular.sh │ │ │ │ │ │ │ ├── curl-ns-get-functions.sh │ │ │ │ │ │ │ ├── curl-collection-delete.sh │ │ │ │ │ │ │ ├── curl-document-get-all.sh │ │ │ │ │ │ │ ├── curl-collection-get-json-schema.sh │ │ │ │ │ │ │ ├── curl-document-get-one.sh │ │ │ │ │ │ │ ├── curl-document-delete.sh │ │ │ │ │ │ │ ├── curl-ns-create.sh │ │ │ │ │ │ │ ├── curl-document-get-one-book.sh │ │ │ │ │ │ │ ├── curl-ns-simple.sh │ │ │ │ │ │ │ ├── curl-document-get-6.sh │ │ │ │ │ │ │ ├── curl-document-get-array-value.sh │ │ │ │ │ │ │ ├── curl-data-get-path-in-document.sh │ │ │ │ │ │ │ ├── curl-document-get-array-change.sh │ │ │ │ │ │ │ ├── curl-document-get-all-docs-with-paging.sh │ │ │ │ │ │ │ ├── curl-ns-set-replicas.sh │ │ │ │ │ │ │ ├── curl-collection-post-empty.sh │ │ │ │ │ │ │ ├── curl-collection2-post-empty.sh │ │ │ │ │ │ │ ├── curl-document-get-wildcard.sh │ │ │ │ │ │ │ ├── curl-data-get-path-array-in-document.sh │ │ │ │ │ │ │ ├── curl-document-delete-path.sh │ │ │ │ │ │ │ ├── curl-ns-dcs.sh │ │ │ │ │ │ │ ├── curl-document-delete-where.sh │ │ │ │ │ │ │ ├── curl-document-get-one-with-fields.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name.sh │ │ │ │ │ │ │ ├── curl-data-where-with-document-path.sh │ │ │ │ │ │ │ ├── curl-document-post-pop-book.sh │ │ │ │ │ │ │ ├── curl-document-put-book-with-path.sh │ │ │ │ │ │ │ ├── curl-document-get-where-contains.sh │ │ │ │ │ │ │ ├── curl-document-post-noDocId.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-eq.sh │ │ │ │ │ │ │ ├── curl-document-put-ttl.sh │ │ │ │ │ │ │ ├── curl-document-patch.sh │ │ │ │ │ │ │ ├── curl-document-post-push-book.sh │ │ │ │ │ │ │ ├── curl-document-where-name-eq.sh │ │ │ │ │ │ │ ├── curl-document-get-where-books-not.sh │ │ │ │ │ │ │ ├── curl-document-patch-subdoc-docpath.sh │ │ │ │ │ │ │ ├── curl-document-put-replace.sh │ │ │ │ │ │ │ ├── curl-document-get-where-address-city.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-in.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-ne-mult.sh │ │ │ │ │ │ │ ├── curl-document-get-where-book-eq.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-in-1fail.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-nin.sh │ │ │ │ │ │ │ ├── curl-document-get-where-rating-gt3-lte5.sh │ │ │ │ │ │ │ └── curl-document-put-withDocId.sh │ │ │ │ │ │ ├── v1 │ │ │ │ │ │ │ ├── curl-ns-get-all.sh │ │ │ │ │ │ │ ├── curl-ns-delete.sh │ │ │ │ │ │ │ ├── curl-ns-get-particular.sh │ │ │ │ │ │ │ ├── curl-collection-get-all.sh │ │ │ │ │ │ │ ├── curl-ns-delete-dcs.sh │ │ │ │ │ │ │ ├── curl-ns-get-functions.sh │ │ │ │ │ │ │ ├── curl-document-get-all.sh │ │ │ │ │ │ │ ├── curl-collection-delete.sh │ │ │ │ │ │ │ ├── curl-collection-get-json-schema.sh │ │ │ │ │ │ │ ├── curl-document-delete.sh │ │ │ │ │ │ │ ├── curl-document-get-one.sh │ │ │ │ │ │ │ ├── curl-ns-create.sh │ │ │ │ │ │ │ ├── curl-document-get-one-book.sh │ │ │ │ │ │ │ ├── curl-document-get-6.sh │ │ │ │ │ │ │ ├── curl-ns-simple.sh │ │ │ │ │ │ │ ├── curl-document-get-array-value.sh │ │ │ │ │ │ │ ├── curl-data-get-path-in-document.sh │ │ │ │ │ │ │ ├── curl-document-get-array-change.sh │ │ │ │ │ │ │ ├── curl-collection-post-empty.sh │ │ │ │ │ │ │ ├── curl-document-get-all-docs-with-paging.sh │ │ │ │ │ │ │ ├── curl-ns-set-replicas.sh │ │ │ │ │ │ │ ├── curl-collection2-post-empty.sh │ │ │ │ │ │ │ ├── curl-document-delete-path.sh │ │ │ │ │ │ │ ├── curl-document-get-wildcard.sh │ │ │ │ │ │ │ ├── curl-data-get-path-array-in-document.sh │ │ │ │ │ │ │ ├── curl-document-delete-where.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name.sh │ │ │ │ │ │ │ ├── curl-ns-dcs.sh │ │ │ │ │ │ │ ├── curl-document-get-one-with-fields.sh │ │ │ │ │ │ │ ├── curl-data-where-with-document-path.sh │ │ │ │ │ │ │ ├── curl-document-post-pop-book.sh │ │ │ │ │ │ │ ├── curl-document-put-book-with-path.sh │ │ │ │ │ │ │ ├── curl-document-get-where-contains.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-eq.sh │ │ │ │ │ │ │ ├── curl-document-post-noDocId.sh │ │ │ │ │ │ │ ├── curl-document-put-ttl.sh │ │ │ │ │ │ │ ├── curl-document-patch.sh │ │ │ │ │ │ │ ├── curl-document-post-push-book.sh │ │ │ │ │ │ │ ├── curl-document-where-name-eq.sh │ │ │ │ │ │ │ ├── curl-document-get-where-books-not.sh │ │ │ │ │ │ │ ├── curl-document-patch-subdoc-docpath.sh │ │ │ │ │ │ │ ├── curl-document-put-replace.sh │ │ │ │ │ │ │ ├── curl-document-get-where-address-city.sh │ │ │ │ │ │ │ ├── curl-document-get-where-book-eq.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-in.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-ne-mult.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-in-1fail.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-nin.sh │ │ │ │ │ │ │ ├── curl-document-get-where-rating-gt3-lte5.sh │ │ │ │ │ │ │ └── curl-document-put-withDocId.sh │ │ │ │ │ │ └── v2 │ │ │ │ │ │ │ ├── curl-ns-get-all.sh │ │ │ │ │ │ │ ├── curl-collection-get-all.sh │ │ │ │ │ │ │ ├── curl-ns-delete.sh │ │ │ │ │ │ │ ├── curl-ns-get-particular.sh │ │ │ │ │ │ │ ├── curl-ns-delete-dcs.sh │ │ │ │ │ │ │ ├── curl-ns-get-functions.sh │ │ │ │ │ │ │ ├── curl-document-get-all.sh │ │ │ │ │ │ │ ├── _test_fix-it.sh │ │ │ │ │ │ │ ├── curl-collection-delete.sh │ │ │ │ │ │ │ ├── curl-collection-get-json-schema.sh │ │ │ │ │ │ │ ├── curl-document-delete.sh │ │ │ │ │ │ │ ├── curl-document-get-one.sh │ │ │ │ │ │ │ ├── curl-document-get-one-book.sh │ │ │ │ │ │ │ ├── curl-ns-create.sh │ │ │ │ │ │ │ ├── curl-ns-simple.sh │ │ │ │ │ │ │ ├── curl-document-get-6.sh │ │ │ │ │ │ │ ├── curl-document-get-array-value.sh │ │ │ │ │ │ │ ├── curl-data-get-path-in-document.sh │ │ │ │ │ │ │ ├── curl-document-get-array-change.sh │ │ │ │ │ │ │ ├── curl-ns-set-replicas.sh │ │ │ │ │ │ │ ├── curl-collection-post-empty.sh │ │ │ │ │ │ │ ├── curl-collection2-post-empty.sh │ │ │ │ │ │ │ ├── curl-document-get-all-docs-with-paging.sh │ │ │ │ │ │ │ ├── curl-document-get-wildcard.sh │ │ │ │ │ │ │ ├── curl-data-get-path-array-in-document.sh │ │ │ │ │ │ │ ├── curl-document-delete-path.sh │ │ │ │ │ │ │ ├── curl-ns-dcs.sh │ │ │ │ │ │ │ ├── curl-document-delete-where.sh │ │ │ │ │ │ │ ├── curl-document-get-one-with-fields.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name.sh │ │ │ │ │ │ │ ├── curl-data-where-with-document-path.sh │ │ │ │ │ │ │ ├── curl-document-post-pop-book.sh │ │ │ │ │ │ │ ├── curl-document-get-where-contains.sh │ │ │ │ │ │ │ ├── curl-document-put-book-with-path.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-eq.sh │ │ │ │ │ │ │ ├── curl-document-post-noDocId.sh │ │ │ │ │ │ │ ├── curl-document-put-ttl.sh │ │ │ │ │ │ │ ├── curl-document-patch.sh │ │ │ │ │ │ │ ├── curl-document-post-push-book.sh │ │ │ │ │ │ │ ├── curl-document-where-name-eq.sh │ │ │ │ │ │ │ ├── curl-document-get-where-books-not.sh │ │ │ │ │ │ │ ├── curl-document-patch-subdoc-docpath.sh │ │ │ │ │ │ │ ├── curl-document-put-replace.sh │ │ │ │ │ │ │ ├── curl-document-get-where-address-city.sh │ │ │ │ │ │ │ ├── curl-document-get-where-book-eq.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-in.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-ne-mult.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-nin.sh │ │ │ │ │ │ │ ├── curl-document-get-where-name-in-1fail.sh │ │ │ │ │ │ │ ├── curl-document-get-where-rating-gt3-lte5.sh │ │ │ │ │ │ │ └── curl-document-put-withDocId.sh │ │ │ │ │ └── myworld │ │ │ │ │ │ ├── curl_check_ns_exists.sh │ │ │ │ │ │ ├── curl_delete_ns.sh │ │ │ │ │ │ ├── curl_get_particular_ns.sh │ │ │ │ │ │ ├── curl_get_one_doc.sh │ │ │ │ │ │ ├── curl_delete_collection.sh │ │ │ │ │ │ ├── curl_delete_doc.sh │ │ │ │ │ │ ├── curl_get_array.sh │ │ │ │ │ │ ├── curl_get_joey.sh │ │ │ │ │ │ ├── curl_patch_check_janet.sh │ │ │ │ │ │ ├── curl_patch_check_partial.sh │ │ │ │ │ │ ├── curl_patch_check_subdoc.sh │ │ │ │ │ │ ├── curl_create_ns.sh │ │ │ │ │ │ ├── curl_get_all_docs.sh │ │ │ │ │ │ ├── curl_simple_ns.sh │ │ │ │ │ │ ├── curl_get_joey_weights.sh │ │ │ │ │ │ ├── curl_get_doc_where.sh │ │ │ │ │ │ ├── curl_delete_doc_where.sh │ │ │ │ │ │ ├── curl_get_all_docs_w_paging_1.sh │ │ │ │ │ │ ├── curl_get_subdoc_where.sh │ │ │ │ │ │ ├── curl_set_ns_replicas.sh │ │ │ │ │ │ ├── curl_patch_partial.sh │ │ │ │ │ │ ├── curl_get_doc_mult_where.sh │ │ │ │ │ │ ├── curl_get_subdoc_mult_where.sh │ │ │ │ │ │ ├── curl_ns_dcs.sh │ │ │ │ │ │ ├── curl_get_doc_path_wildcard.sh │ │ │ │ │ │ ├── curl_patch_janet.sh │ │ │ │ │ │ ├── curl_post_noDocId.sh │ │ │ │ │ │ ├── curl_get_all_docs_w_paging_2.sh │ │ │ │ │ │ ├── curl_patch_subdoc.sh │ │ │ │ │ │ └── curl_put_janet.sh │ │ │ │ ├── rest │ │ │ │ │ ├── curl_check_ks_exists.sh │ │ │ │ │ ├── curl_delete_row.sh │ │ │ │ │ ├── curl_drop_ks.sh │ │ │ │ │ ├── curl_delete_udt.sh │ │ │ │ │ ├── curl_get_particular_ks.sh │ │ │ │ │ ├── curl_get_all.sh │ │ │ │ │ ├── curl_get_udt.sh │ │ │ │ │ ├── curl_check_table_exists.sh │ │ │ │ │ ├── curl_drop_table.sh │ │ │ │ │ ├── curl_get_primKey.sh │ │ │ │ │ ├── curl_create_ks.sh │ │ │ │ │ ├── curl_drop_column.sh │ │ │ │ │ ├── curl_get_particular_table.sh │ │ │ │ │ ├── curl_simple_ks.sh │ │ │ │ │ ├── curl_check_column_exists.sh │ │ │ │ │ ├── curl_get_particular_column.sh │ │ │ │ │ ├── curl_get_users_fields.sh │ │ │ │ │ ├── curl_patch_users.sh │ │ │ │ │ ├── curl_update_users.sh │ │ │ │ │ ├── curl_get_indexes.sh │ │ │ │ │ ├── curl_ks_dcs.sh │ │ │ │ │ ├── curl_delete_index.sh │ │ │ │ │ ├── curl_add_column.sh │ │ │ │ │ ├── curl_change_column.sh │ │ │ │ │ ├── curl_get_users.sh │ │ │ │ │ ├── curl_get_users_where.sh │ │ │ │ │ ├── curl_change_column_back.sh │ │ │ │ │ ├── curl_add_udt_to_table.sh │ │ │ │ │ ├── curl_add_map_to_table.sh │ │ │ │ │ ├── curl_add_set_to_table.sh │ │ │ │ │ ├── curl_add_list_to_table.sh │ │ │ │ │ ├── curl_add_tuple_to_table.sh │ │ │ │ │ ├── curl_get_users_mult_where.sh │ │ │ │ │ ├── curl_insert_set_data.sh │ │ │ │ │ ├── curl_insert_udt_data.sh │ │ │ │ │ ├── curl_create_index.sh │ │ │ │ │ ├── curl_insert_tuple_data.sh │ │ │ │ │ └── curl_get_set_data.sh │ │ │ │ ├── javascript │ │ │ │ │ ├── node-execute-query.js │ │ │ │ │ └── node-gen-auth-token.js │ │ │ │ └── xml │ │ │ │ │ └── java-setup.xml │ │ │ ├── partials │ │ │ │ ├── deletion-no-return-data.adoc │ │ │ │ ├── lwt-unsupported.adoc │ │ │ │ ├── prereqs-curl.adoc │ │ │ │ ├── note_multi-region_connect.adoc │ │ │ │ ├── GQLAPIBlogPost.adoc │ │ │ │ ├── DocAPIBlogPost.adoc │ │ │ │ ├── curl_cql_directive.adoc │ │ │ │ ├── stargate-intro-intro.adoc │ │ │ │ ├── data_fed_directives.adoc │ │ │ │ └── grpc-prereqs.adoc │ │ │ └── pages │ │ │ │ ├── api-grpc │ │ │ │ └── rust │ │ │ │ │ └── rust-processing.adoc │ │ │ │ ├── api-graphql-cql-first │ │ │ │ ├── gql-dropping-udt.adoc │ │ │ │ └── gql-deleting-keyspace.adoc │ │ │ │ ├── api-graphql-schema-first │ │ │ │ └── gqlsf-deleting-keyspace.adoc │ │ │ │ ├── cql.adoc │ │ │ │ └── api-rest │ │ │ │ ├── rest-dropping-table.adoc │ │ │ │ └── rest-dropping-keyspace.adoc │ │ └── quickstart │ │ │ └── nav.adoc │ ├── antora-astra-classic-with-sg.yml │ ├── antora-astra-serverless-with-sg.yml │ ├── antora-stargate.yml │ └── antora-astra-serverless.yml └── .DS_Store ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── playbooks └── supplemental-ui │ └── img │ └── logos │ └── stargate-vertical.png └── .github ├── dependabot.yml └── workflows └── linkinator.yml /.nojekyll: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs-src/stargate-core/antora.yml: -------------------------------------------------------------------------------- 1 | antora-stargate.yml -------------------------------------------------------------------------------- /docs-src/stargate-develop/antora.yml: -------------------------------------------------------------------------------- 1 | antora-stargate.yml -------------------------------------------------------------------------------- /docs-src/stargate-develop/antora-ad4d.yml: -------------------------------------------------------------------------------- 1 | name: docs 2 | version: ~ 3 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/concepts/nav.adoc: -------------------------------------------------------------------------------- 1 | * xref:concepts.adoc[Concepts] -------------------------------------------------------------------------------- /docs-src/stargate-develop/antora-astra-classic.yml: -------------------------------------------------------------------------------- 1 | name: docs 2 | version: ~ 3 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rust/rust-init.rs: -------------------------------------------------------------------------------- 1 | cargo init 2 | -------------------------------------------------------------------------------- /docs-src/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stargate/docs/HEAD/docs-src/.DS_Store -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/curl-ns-simple.result: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/antora-astra-classic-with-sg.yml: -------------------------------------------------------------------------------- 1 | name: docs 2 | version: ~ 3 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/antora-astra-serverless-with-sg.yml: -------------------------------------------------------------------------------- 1 | name: docs 2 | version: ~ 3 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/examples/bash/unzip_sg_jars.sh: -------------------------------------------------------------------------------- 1 | unzip stargate-jars.zip
 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1createPayloadConditional.result: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_createIndexes.result: -------------------------------------------------------------------------------- 1 | Result TBD 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_createIndexes.result: -------------------------------------------------------------------------------- 1 | Result TBD 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/unzip_sg_jars.sh: -------------------------------------------------------------------------------- 1 | unzip stargate-jars.zip 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rust/rust-setup-use.rs: -------------------------------------------------------------------------------- 1 | use stargate_grpc::*; 2 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/examples/result/sh_docker-logs.result: -------------------------------------------------------------------------------- 1 | Finished starting bundles. 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/antora-stargate.yml: -------------------------------------------------------------------------------- 1 | name: latest 2 | version: ~ 3 | ext: 4 | collector: ~ 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/go/go-run-test.go: -------------------------------------------------------------------------------- 1 | go test ./... -v -tags integration 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_nc_dcs.result: -------------------------------------------------------------------------------- 1 | {"name":"myworld"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_get_udt_data.result: -------------------------------------------------------------------------------- 1 | Example coming 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/antora-astra-serverless.yml: -------------------------------------------------------------------------------- 1 | name: docs 2 | version: ~ 3 | ext: 4 | collector: ~ 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-ns-dcs.result: -------------------------------------------------------------------------------- 1 | {"name":"test"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_create_ns.result: -------------------------------------------------------------------------------- 1 | {"name":"myworld"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_ns_dcs.result: -------------------------------------------------------------------------------- 1 | {"name":"myworld_dcs"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_put_janet.result: -------------------------------------------------------------------------------- 1 | {"documentId":"Janet"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_create_ks.result: -------------------------------------------------------------------------------- 1 | {"name":"{rkeyspace}" 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_create_table.result: -------------------------------------------------------------------------------- 1 | {"name":"{rtable}"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_ks_dcs.result: -------------------------------------------------------------------------------- 1 | {"name":"{rkeyspace-dcs}"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/sh_docker-logs.result: -------------------------------------------------------------------------------- 1 | Finished starting bundles. 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rust/rust-run-ks-example.rs: -------------------------------------------------------------------------------- 1 | cargo run --example keyspace 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rust/rust-run-query-example.rs: -------------------------------------------------------------------------------- 1 | cargo run --example query 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/node-npm.sh: -------------------------------------------------------------------------------- 1 | npm i @stargate-oss/stargate-grpc-node-client 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-ns-simple.result: -------------------------------------------------------------------------------- 1 | {"name":"test"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_patch_janet.result: -------------------------------------------------------------------------------- 1 | {"documentId":"Janet"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_patch_partial.result: -------------------------------------------------------------------------------- 1 | {"documentId":"Joey"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_patch_subdoc.result: -------------------------------------------------------------------------------- 1 | {"documentId":"Joey"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_post_martha.result: -------------------------------------------------------------------------------- 1 | {"documentId":"Martha"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_post_noDocId.result: -------------------------------------------------------------------------------- 1 | {"documentId":"{docid}"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_put_joey_subdoc.result: -------------------------------------------------------------------------------- 1 | {"documentId":"Joey"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_add_column.result: -------------------------------------------------------------------------------- 1 | { "name": "email" } 2 | 3 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_add_map_to_table.result: -------------------------------------------------------------------------------- 1 | {"name":"evaluations"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_add_udt_to_table.result: -------------------------------------------------------------------------------- 1 | { "name": "address" } 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/yaml/java-grpc-one-row.yaml: -------------------------------------------------------------------------------- 1 | [string: "a" 2 | , int: 1 3 | ] 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/partials/deletion-no-return-data.adoc: -------------------------------------------------------------------------------- 1 | NOTE: Deletions do not return any data. -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stargate/docs/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/node-yarn.sh: -------------------------------------------------------------------------------- 1 | yarn add @stargate-oss/stargate-grpc-node-client 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-collection-post-empty.result: -------------------------------------------------------------------------------- 1 | No return 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-ns-set-replicas.result: -------------------------------------------------------------------------------- 1 | {"name":"test"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_add_set_to_table.result: -------------------------------------------------------------------------------- 1 | {"name":"favorite_books"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_change_column.result: -------------------------------------------------------------------------------- 1 | { 2 | "name": "first" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_create_index.result: -------------------------------------------------------------------------------- 1 | { 2 | "success": true 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_get_particular_ns.result: -------------------------------------------------------------------------------- 1 | {"data":{"name":"myworld"}} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_add_list_to_table.result: -------------------------------------------------------------------------------- 1 | {"name":"top_three_tv_shows"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_add_tuple_to_table.result: -------------------------------------------------------------------------------- 1 | {"name":"current_country"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_create_udt.result: -------------------------------------------------------------------------------- 1 | { 2 | "name": "address_type" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/examples/bash/docker-logs.sh: -------------------------------------------------------------------------------- 1 | docker logs -f stargate | grep "Finished starting bundles." 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_get_joey.result: -------------------------------------------------------------------------------- 1 | {"documentId":"Joey","data":"bench press"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_get_particular_ks.result: -------------------------------------------------------------------------------- 1 | {"data":{"name":"users_keyspace"}} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/docker-logs.sh: -------------------------------------------------------------------------------- 1 | docker logs -f stargate | grep "Finished starting bundles." 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/go-get-grpc-go-client.sh: -------------------------------------------------------------------------------- 1 | go get -u github.com/stargate/stargate-grpc-go-client 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/rust-build1.sh: -------------------------------------------------------------------------------- 1 | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_insert_map_data.result: -------------------------------------------------------------------------------- 1 | {"firstname":"Janesha","lastname":"Doesha"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_insert_set_data.result: -------------------------------------------------------------------------------- 1 | {"firstname":"Janesha","lastname":"Doesha"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_insert_udt_data.result: -------------------------------------------------------------------------------- 1 | {"firstname":"Janesha","lastname":"Doesha"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1deleteBook.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "deleteBook": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_createCollTable.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "badges": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_createMapTable.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "badge": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_createUDT.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "createType": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_deleteIndex.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "reader": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_insert_list_data.result: -------------------------------------------------------------------------------- 1 | {"firstname":"Janesha","lastname":"Doesha"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_insert_tuple_data.result: -------------------------------------------------------------------------------- 1 | {"firstname":"Janesha","lastname":"Doesha"} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_patch_users.result: -------------------------------------------------------------------------------- 1 | {"data":{"email":"mookie.betts.email@email.com"}} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1Undeploy.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "undeploySchema": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1queryUpdate.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "updateBook": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_alterTableAdd.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "alterTableAdd": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_dropTableArticle.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "dropTable": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_dropTableBooks.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "dropTable": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_dropTableIfExists.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "dropTable": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_update_users.result: -------------------------------------------------------------------------------- 1 | {"data":{"email":"mookie.betts.new-email@email.com"}} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/secure/pages/secure-overview.adoc: -------------------------------------------------------------------------------- 1 | = Securing Stargate 2 | 3 | * xref:authnz.adoc[Authentication and Authorization] 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/cql/create_index_set.cql: -------------------------------------------------------------------------------- 1 | CREATE INDEX books_idx ON users_keyspace.users (VALUES(favorite_books)); 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/cql/java-grpc-create-table.cql: -------------------------------------------------------------------------------- 1 | CREATE TABLE IF NOT EXISTS test (k text, v int, PRIMARY KEY(k, v)); 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/schema_footer.gql: -------------------------------------------------------------------------------- 1 | """ 2 | ) { 3 | version 4 | cqlChanges 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/java/java-grpc-create-localhost.java: -------------------------------------------------------------------------------- 1 | ManagedChannel channel = createChannel("localhost", 8090); 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_alterTableAddCols.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "alterTableAdd": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_createKeyspace.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "createKeyspace": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_dropColumnFormat.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "alterTableDrop": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_dropColumnIsbn.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "alterTableDrop": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/cql/create_index_list.cql: -------------------------------------------------------------------------------- 1 | CREATE INDEX tv_idx ON users_keyspace.users (VALUES (top_three_tv_shows)); 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/cql/create_index_tuple.cql: -------------------------------------------------------------------------------- 1 | CREATE INDEX country_idx ON users_keyspace.users (VALUES (current_country)); 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/schema_footer.gql: -------------------------------------------------------------------------------- 1 | """ 2 | ) { 3 | version 4 | cqlChanges 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-put-one-book.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "native-son-doc-id" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1deleteLibColl.result: -------------------------------------------------------------------------------- 1 | 2 | "data": { 3 | "deleteLibCollection": false 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rust/rust-bind.rs: -------------------------------------------------------------------------------- 1 | .query("SELECT login, emails FROM users WHERE id = :id") 2 | .bind_value("id", 1000) 3 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-put-one-reader-with-id.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "John-Smith" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-ns-get-particular.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "name": "test" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_createTables.result: -------------------------------------------------------------------------------- 1 | 2 | "data": { 3 | "book": true, 4 | "reader": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rust/rust-run-ks-example.result: -------------------------------------------------------------------------------- 1 | Connected to https://127.0.0.2:8090 2 | Created keyspace stargate_examples 3 | -------------------------------------------------------------------------------- /playbooks/supplemental-ui/img/logos/stargate-vertical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stargate/docs/HEAD/playbooks/supplemental-ui/img/logos/stargate-vertical.png -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/ROOT/cnav.adoc: -------------------------------------------------------------------------------- 1 | * xref:index.adoc[Stargate Overview] 2 | // * xref:release-notes.adoc[Release notes] 3 | * xref:FAQ.adoc[FAQ] 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-patch-book-with-path.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "native-son-doc-id" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-put-book-with-path.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "native-son-doc-id" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-patch.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "2545331a-aaad-45d2-b084-9da3d8f4c311" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-patch2.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "2545331a-aaad-45d2-b084-9da3d8f4c311" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-put-ttl.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "2545331a-aaad-45d2-b084-9da3d8f4c311" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1DeployFileAgain.result: -------------------------------------------------------------------------------- 1 | {"data":{"deploySchemaFile":{"version":"26a6f680-a7a9-11eb-a22f-7bb5f4c20029"}}} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1createDeployFile.result: -------------------------------------------------------------------------------- 1 | {"data":{"deploySchemaFile":{"version":"5c6c4190-a23f-11eb-8fde-b341b9f82ca9"}}} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rust/rust-run-example.rs: -------------------------------------------------------------------------------- 1 | cargo run --example [-- [--keyspace ] [--token ] [--tls] []] 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/dropKeyspace.graphql: -------------------------------------------------------------------------------- 1 | mutation dropKsLibrary { 2 | dropKeyspace(name:"library", ifExists: true) 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1deleteBook.graphql: -------------------------------------------------------------------------------- 1 | mutation deletepap { 2 | deleteBook(book: { title:"Pride and Prejudice"}) 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-post-noDocId.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "0c88a952-ea0b-4000-83ba-57d293b8e345" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-put-replace.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "2545331a-aaad-45d2-b084-9da3d8f4c311" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-put-withDocId.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "2545331a-aaad-45d2-b084-9da3d8f4c311" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_createTableIfNotExists.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "magazine": true, 4 | "article": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_readOneGoldGT100Badge.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "badge": { 4 | "values": [] 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rust/rust-setup-dependencies.rs: -------------------------------------------------------------------------------- 1 | [dependencies] 2 | stargate-grpc = "0.3" 3 | tokio = { version = "1", features = ["full"]} 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/partials/lwt-unsupported.adoc: -------------------------------------------------------------------------------- 1 | [NOTE] 2 | ==== 3 | Lightweight transactions (LWT) are not supported in the Stargate REST API. 4 | ==== -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/examples/bash/wget_sg_jars_dse_68.sh: -------------------------------------------------------------------------------- 1 | wget https://github.com/stargate/stargate/releases/download/{stargate-docker-tag-68}/stargate-jars.zip
 2 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/secure/nav.adoc: -------------------------------------------------------------------------------- 1 | * Securing Stargate 2 | ** xref:secure:authnz.adoc[Authentication and authorization] 3 | ** xref:secure:auth.adoc[Authentication] 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-post-one-reader.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "9a47dcbc-2a41-429e-bd1b-fad26ac23b00" 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_write_users.result: -------------------------------------------------------------------------------- 1 | {"firstname":"Mookie","lastname":"Betts"} 2 | {"firstname":"Janesha","lastname":"Doesha"} 3 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/examples/bash/wget_sg_jars_cass_3x.sh: -------------------------------------------------------------------------------- 1 | wget https://github.com/stargate/stargate/releases/download/{stargate-docker-tag-3x}/stargate-jars.zip
 2 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/examples/bash/wget_sg_jars_cass_40.sh: -------------------------------------------------------------------------------- 1 | wget https://github.com/stargate/stargate/releases/download/{stargate-docker-tag-40}/stargate-jars.zip
 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/wget_sg_jars_cass_3x.sh: -------------------------------------------------------------------------------- 1 | wget https://github.com/stargate/stargate/releases/download/{stargate-docker-tag-3x}/stargate-jars.zip 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/wget_sg_jars_cass_40.sh: -------------------------------------------------------------------------------- 1 | wget https://github.com/stargate/stargate/releases/download/{stargate-docker-tag-40}/stargate-jars.zip 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/wget_sg_jars_dse_68.sh: -------------------------------------------------------------------------------- 1 | wget https://github.com/stargate/stargate/releases/download/{stargate-docker-tag-68}/stargate-jars.zip 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-post-pop-book.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "native-son-doc-id", 3 | "data": "culture" 4 | } 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/rust-build2.sh: -------------------------------------------------------------------------------- 1 | git clone https://github.com/stargate/stargate-grpc-rust-client stargate-grpc 2 | cd stargate-grpc 3 | cargo build 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1fetchBook.graphql: -------------------------------------------------------------------------------- 1 | query fetchBook { 2 | book(title: "Native Son") { 3 | title 4 | author 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1test.json: -------------------------------------------------------------------------------- 1 | {"query":"mutation createKsLibrary {\n createKeyspace(name:\"library\", replicas: 1)\n}","variables":{}} 2 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-data-get-path-in-document.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "native-son-doc-id", 3 | "data": "Native Son" 4 | } 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/partials/prereqs-curl.adoc: -------------------------------------------------------------------------------- 1 | * Install https://everything.curl.dev/[cURL], a utility for running REST, Document, or GraphQL queries on the command line. -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/manage/pages/manage-overview.adoc: -------------------------------------------------------------------------------- 1 | = Manage Stargate 2 | 3 | * xref:metrics.adoc[Metrics with Prometheus and Grafana] 4 | * xref:start-stargate.adoc[Start Stargate] 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/dropType.graphql: -------------------------------------------------------------------------------- 1 | # drop a UDT 2 | mutation dropType { 3 | dropType(keyspaceName:"library", typeName:"address_type", ifExists:true) 4 | } 5 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # Set update schedule for GitHub Actions 2 | 3 | version: 2 4 | updates: 5 | - package-ecosystem: "github-actions" 6 | directory: "/" 7 | schedule: 8 | interval: "monthly" 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/createKeyspace.graphql: -------------------------------------------------------------------------------- 1 | # create a keyspace called library 2 | mutation createKsLibrary { 3 | createKeyspace(name:"library", replicas: 1) 4 | } 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/dropTableArticle.graphql: -------------------------------------------------------------------------------- 1 | # drop a table 2 | mutation dropTableBook { 3 | dropTable(keyspaceName:"library", 4 | tableName:"article") 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_cql_directive.graphql: -------------------------------------------------------------------------------- 1 | curl {base_graphql_url}/graphql-files/cql_directives.graphql \ 2 | --header "X-Cassandra-Token: {auth_token}" 3 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_get_joey_weights.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId":"Joey", 3 | "data":{ 4 | "reps":15, 5 | "type":"bench press", 6 | "weight":150 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_get_one_doc.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId":"{docid}", 3 | "data":{ 4 | "id":"some-stuff", 5 | "other":"This is nonsensical stuff." 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_get_particular_column.result: -------------------------------------------------------------------------------- 1 | { 2 | "data":{ 3 | "name":"email", 4 | "typeDefinition":"varchar", 5 | "static":false 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1fetchSameBooks.graphql: -------------------------------------------------------------------------------- 1 | query fetchSameBook { 2 | bookByTitle(title: "Groundswell") { 3 | title 4 | isbn 5 | author 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/java/java-grpc-execute-async.java: -------------------------------------------------------------------------------- 1 | stub.executeQuery(QueryOuterClass.Query 2 | .newBuilder() 3 | .setCql("SELECT k, v FROM ks.test") 4 | .build(), streamObserver); 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_get_particular_column_qs.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "name": "email", 4 | "typeDefinition": "varchar", 5 | "static": false 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-ns-get-all.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_schema}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-ns-get-all.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_schema}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-ns-get-all.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url_v2}{base_doc_schema}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_check_ns_exists.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_schema}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1fetchBookByTitle.graphql: -------------------------------------------------------------------------------- 1 | query fetchBook { 2 | bookByTitle(title: "The City and the Ship") { 3 | title 4 | isbn 5 | author 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-get-array-change1.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "native-son-doc-id", 3 | "data": [ 4 | "slavery", 5 | "action", 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-get-array-change3.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "native-son-doc-id", 3 | "data": [ 4 | "slavery", 5 | "action" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_write_users_qs.result: -------------------------------------------------------------------------------- 1 | { 2 | "firstname": "Mookie", 3 | "lastname": "Betts" 4 | } 5 | { 6 | "firstname": "Janesha", 7 | "lastname": "Doesha" 8 | } 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/yaml/java-grpc-std-query-result.yaml: -------------------------------------------------------------------------------- 1 | result_set { 2 | data { 3 | type_url: "type.googleapis.com/stargate.ResultSet" 4 | value: "some_binary_data" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/partials/note_multi-region_connect.adoc: -------------------------------------------------------------------------------- 1 | [NOTE] 2 | ==== 3 | If you have multiple regions, select the region you want to connect to from the dropdown menu for instructions. 4 | ==== 5 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/manage/pages/start-stargate.adoc: -------------------------------------------------------------------------------- 1 | == Start Stargate 2 | :page-tag: stargate,dev,develop 3 | 4 | // tag::startDocker[] 5 | include::install:partial$docker_run.adoc[tag=grpc] 6 | // end::startDocker[] 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1fetchIsbnGT.graphql: -------------------------------------------------------------------------------- 1 | query fetchIsbnGT { 2 | bookGT(title: "Groundswell", isbn: "978-1422125007") { 3 | title 4 | isbn 5 | author 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1fetchIsbnLT.graphql: -------------------------------------------------------------------------------- 1 | query fetchIsbnLT { 2 | bookLT(title: "Groundswell", isbn: "978-1422125008") { 3 | title 4 | isbn 5 | author 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_deleteOneBook.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "PaP": { 4 | "value": { 5 | "title": "Pride and Prejudice" 6 | } 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_deleteOneBookCL.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "PaP": { 4 | "value": { 5 | "title": "Pride and Prejudice" 6 | } 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_insertBookWithOption.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "moby": { 4 | "value": { 5 | "title": "Moby Dick" 6 | } 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/deleteIndex.graphql: -------------------------------------------------------------------------------- 1 | mutation dropIndexBdate { 2 | 3 | reader: dropIndex( 4 | keyspaceName:"library", 5 | indexName:"reader_bdate_idx" 6 | ) 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1fetchBooksIn.graphql: -------------------------------------------------------------------------------- 1 | query fetchBooksIn { 2 | booksIn(title:["Native Son","The City and the Ship"]) { 3 | title 4 | isbn 5 | author 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/java/java-grpc-process1.java: -------------------------------------------------------------------------------- 1 | Response response = stub.executeQuery( 2 | QueryOuterClass.Query 3 | .newBuilder() 4 | .setCql("SELECT k, v FROM ks.test") 5 | .build()); 6 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/manage/nav.adoc: -------------------------------------------------------------------------------- 1 | * xref:manage-overview.adoc[Managing Stargate] 2 | ** xref:manage:metrics.adoc[Using Prometheus and Grafana with Stargate] 3 | ** xref:manage:start-stargate.adoc[Start Stargate] 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/createKeyspace.json: -------------------------------------------------------------------------------- 1 | {"query": 2 | "mutation createKsLibrary { 3 | createKeyspace( 4 | name: \"library\", 5 | replicas: 1) 6 | }", 7 | "variables":{}} 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1Undeploy.graphql: -------------------------------------------------------------------------------- 1 | mutation dropSchema { 2 | undeploySchema( 3 | "keyspace": "library" 4 | "expectedVersion": "bd94fb30-e4f5-11eb-9cf6-afef380162ee") 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1fetchAuthorContains-2.graphql: -------------------------------------------------------------------------------- 1 | query fetchAuthorContains { 2 | booksContainAuthor(author: "S.M. Stirling") { 3 | title 4 | isbn 5 | author 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1fetchAuthorContains.graphql: -------------------------------------------------------------------------------- 1 | query fetchAuthorContains { 2 | booksContainAuthor(author: "Richard Wright") { 3 | title 4 | isbn 5 | author 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/java/java-grpc-create-channel.java: -------------------------------------------------------------------------------- 1 | public ManagedChannel createChannel(String host, int port) { 2 | return ManagedChannelBuilder.forAddress(host, port).usePlaintext().build(); 3 | } 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-get-array-change2.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "native-son-doc-id", 3 | "data": [ 4 | "slavery", 5 | "action", 6 | "culture" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-post-push-book.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "native-son-doc-id", 3 | "data": [ 4 | "slavery", 5 | "action", 6 | "culture" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/partials/GQLAPIBlogPost.adoc: -------------------------------------------------------------------------------- 1 | [TIP] 2 | ==== 3 | For more information about the GraphQL API, see 4 | https://stargate.io/2020/10/05/hello-graphql.html[the blog post on the GraphQL API]. 5 | ==== 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/cql/create_index_map_sai.cql: -------------------------------------------------------------------------------- 1 | CREATE CUSTOM INDEX eval_idx 2 | ON users_keyspace.users (KEYS(evaluations)) 3 | USING 'StorageAttachedIndex' 4 | WITH OPTIONS = ('case_sensitive': 'false'); 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_delete_ns.sh: -------------------------------------------------------------------------------- 1 | curl -L -X DELETE '{base_doc_url}{base_doc_schema}/{namespace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1getOrderById.graphql: -------------------------------------------------------------------------------- 1 | query getOrder { 2 | order(checkout_id: 1) { 3 | checkout_id 4 | reader { 5 | name 6 | user_id 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-ns-delete.sh: -------------------------------------------------------------------------------- 1 | curl -L -X DELETE '{base_doc_url}{base_doc_schema}/{namespace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-ns-delete.sh: -------------------------------------------------------------------------------- 1 | curl -L -X DELETE '{base_doc_url}{base_doc_schema}/{namespace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-ns-get-particular.sh: -------------------------------------------------------------------------------- 1 | curl -X GET '{base_doc_url}{base_doc_schema}/{namespace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/java/java-grpc-async.java: -------------------------------------------------------------------------------- 1 | StargateGrpc.StargateStub = fStargateGrpc.newStub(channel) 2 | .withCallCredentials(new StargateBearerToken("token-value")) 3 | .withDeadlineAfter(5, TimeUnit.SECONDS); 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-post-mult-readers.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentIds": [ 3 | "36614a34-c203-4d9f-a0d8-8fbbd07c18a6", 4 | "2dc4364c-e64d-4860-8f0a-1b5ca9bd3549" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1fetchBook.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "book": [ 4 | { 5 | "title": "Native Son", 6 | "author": "Richard Wright" 7 | } 8 | ] 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/cql/create_index_list_sai.cql: -------------------------------------------------------------------------------- 1 | CREATE CUSTOM INDEX tv_idx 2 | ON users_keyspace.users (VALUES(top_three_tv_shows)) 3 | USING 'StorageAttachedIndex' 4 | WITH OPTIONS = ('case_sensitive': 'false'); 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/cql/create_index_set_sai.cql: -------------------------------------------------------------------------------- 1 | CREATE CUSTOM INDEX books_idx 2 | ON users_keyspace.users (VALUES(favorite_books)) 3 | USING 'StorageAttachedIndex' 4 | WITH OPTIONS = ('case_sensitive': 'false'); 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-collection-get-all.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-ns-delete-dcs.sh: -------------------------------------------------------------------------------- 1 | curl -L -X DELETE '{base_doc_url}{base_doc_schema}/{dcnamespace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-ns-get-particular.sh: -------------------------------------------------------------------------------- 1 | curl -X GET '{base_doc_url}{base_doc_schema}/{namespace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-collection-get-all.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-ns-delete-dcs.sh: -------------------------------------------------------------------------------- 1 | curl -L -X DELETE '{base_doc_url}{base_doc_schema}/{dcnamespace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-collection-get-all.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-ns-delete.sh: -------------------------------------------------------------------------------- 1 | curl -L -X DELETE '{base_doc_url_v2}{base_doc_schema}/{namespace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-ns-get-particular.sh: -------------------------------------------------------------------------------- 1 | curl -X GET '{base_doc_url_v2}{base_doc_schema}/{namespace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/dropTableIfExists.graphql: -------------------------------------------------------------------------------- 1 | # drop a table if it exists 2 | mutation dropTableIfExists { 3 | dropTable(keyspaceName:"library", 4 | tableName:"magazine", 5 | ifExists: true) 6 | } 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1createQuery.graphql: -------------------------------------------------------------------------------- 1 | type Query { 2 | bookByTitleAndIsbn(title:String!, isbn:String): [Book] // <1> 3 | readerByNameAndUserid(name:String!, user_id:Uuid): [Reader] // <2> 4 | } 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1getAllKsSchema.graphql: -------------------------------------------------------------------------------- 1 | # Works in {base_graphql_url}{base_gql_admin} 2 | { 3 | schemas(keyspace: "library") { 4 | version 5 | deployDate 6 | contents 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1getBookWithOrder.graphql: -------------------------------------------------------------------------------- 1 | query getBook { 2 | bookByTitle(title: "Moby Dick") { 3 | title 4 | isbn 5 | orders { 6 | checkout_id 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_check_ks_exists.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X GET {base_rest_url}{base_rest_schema} \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Content-Type: application/json" \ 4 | -H "Accept: application/json" 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-ns-get-functions.sh: -------------------------------------------------------------------------------- 1 | curl -X GET '{base_doc_url}{base_doc_schema}/{namespace}/functions' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-ns-get-functions.sh: -------------------------------------------------------------------------------- 1 | curl -X GET '{base_doc_url}{base_doc_schema}/{namespace}/functions' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-ns-delete-dcs.sh: -------------------------------------------------------------------------------- 1 | curl -L -X DELETE '{base_doc_url_v2}{base_doc_schema}/{dcnamespace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_particular_ns.sh: -------------------------------------------------------------------------------- 1 | curl -X GET '{base_doc_url}{base_doc_schema}/namespaces/{namespace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/go/go-connect.go: -------------------------------------------------------------------------------- 1 | stargateClient, err = client.NewStargateClientWithConn(conn) 2 | 3 | if err != nil { 4 | fmt.Printf("error creating client %v", err) 5 | os.Exit(1) 6 | } 7 | fmt.Printf("made client\n") 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1getParticularKsSchema.graphql: -------------------------------------------------------------------------------- 1 | { 2 | schema(keyspace: "library", version: "01a00a50-9e50-11eb-8fde-b341b9f82ca9") { 3 | version 4 | deployDate 5 | contents 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_delete_row.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X DELETE {base_rest_url}{base_rest_schema}/{rkeyspace}/{rtable}/{user1fn}/{user1ln} \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Content-Type: application/json" 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_drop_ks.sh: -------------------------------------------------------------------------------- 1 | curl -s --location \ 2 | --request DELETE {base_rest_url}{base_rest_schema}/{rkeyspace} \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header "Content-Type: application/json" 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-get-one.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "2545331a-aaad-45d2-b084-9da3d8f4c311", 3 | "data": { 4 | "okaydokie": "Now I have done it! We have a TTL at last!" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/go-full-script.result: -------------------------------------------------------------------------------- 1 | [ ~/CLONES/grpc-go ] (main ✏️ 1) $go run connect-sgoss.go 2 | made client 3 | made keyspace 4 | made table 5 | insert data 6 | select executed 7 | Jane Doe 8 | Serge Provencio 9 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/pages/install_astra.adoc: -------------------------------------------------------------------------------- 1 | = Astra DB 2 | :page-tag: stargate,astra-db,dev,install 3 | 4 | If you are looking to just get started, https://astra.datastax.com[DataStax Astra Portal^] can get you started with no install steps. 5 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/secure/examples/bash/get-table-based-token.sh: -------------------------------------------------------------------------------- 1 | curl -L -X POST 'http://localhost:8081/v1/auth' \ 2 | -H 'Content-Type: application/json' \ 3 | --data-raw '{ 4 | "username": "cassandra", 5 | "password": "cassandra" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-ns-get-functions.sh: -------------------------------------------------------------------------------- 1 | curl -X GET '{base_doc_url_v2}{base_doc_schema}/{namespace}/functions' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_createKeyspaceWithFile.sh: -------------------------------------------------------------------------------- 1 | curl -X POST '{base_url}{base_gql_schema}' \ 2 | -H "x-cassandra-token: {auth_token}" \ 3 | -H 'Content-Type: application/json' \ 4 | -d @createKeyspace.json 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-get-one-6.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "2545331a-aaad-45d2-b084-9da3d8f4c311", 3 | "data": { 4 | "okaydokie": "Now I have done it! We have a TTL at last!" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/examples/bash/start_vm_3x.sh: -------------------------------------------------------------------------------- 1 | ./starctl \ 2 | --cluster-name stargate_test_cluster \ 3 | --cluster-seed 172.31.29.170 \ 4 | --cluster-version 3.11 \ 5 | --listen 172.31.29.175 \ 6 | --dc DC1 \ 7 | --rack RACK1 \ 8 | --enable-auth 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1createUDTAddress.graphql: -------------------------------------------------------------------------------- 1 | type Address @cql_entity(target: UDT) @cql_input { // <1> 2 | street: String 3 | city: String 4 | state: String 5 | zipCode: String @cql_column(name: "zip_code") 6 | } 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_delete_udt.sh: -------------------------------------------------------------------------------- 1 | curl --location --request DELETE {base_rest_url}{base_rest_schema}/{rkeyspace}/types/address_type \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_get_particular_ks.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X GET {base_rest_url}{base_rest_schema}/{rkeyspace} \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Content-Type: application/json" \ 4 | -H "Accept: application/json" 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/start_vm_3x.sh: -------------------------------------------------------------------------------- 1 | ./starctl 2 | --cluster-name stargate_test_cluster \  3 | --cluster-seed 172.31.29.170 \  4 | --cluster-version 3.11 \  5 | --listen 172.31.29.175 \  6 | --dc DC1 \  7 | --rack RACK1 \  8 | --enable-auth 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/start_vm_40.sh: -------------------------------------------------------------------------------- 1 | ./starctl 2 | --cluster-name stargate_test_cluster \  3 | --cluster-seed 172.31.29.170 \  4 | --cluster-version 4.0 \  5 | --listen 172.31.29.175 \  6 | --dc DC1 \  7 | --rack RACK1 \  8 | --enable-auth 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/deleteOneBook.graphql: -------------------------------------------------------------------------------- 1 | mutation deleteOneBook { 2 | PaP: deletebook(value: {title:"Pride and Prejudice", author: "Jane Austen"}, ifExists: true ) { 3 | value { 4 | title 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1getOrders.graphql: -------------------------------------------------------------------------------- 1 | query getOrders { 2 | orders { 3 | checkout_id 4 | reader { 5 | name 6 | user_id 7 | } 8 | books { 9 | title 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_get_all.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X GET {base_rest_url}{base_rest_schema}/{rkeyspace}/{rtable}/rows \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Content-Type: application/json" \ 4 | -H "Accept: application/json" 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_get_udt.sh: -------------------------------------------------------------------------------- 1 | curl --location --request GET {base_rest_url}{base_rest_schema}/{rkeyspace}/types \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'accept: application/json' \ 4 | -H 'content-type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/examples/bash/start_vm_40.sh: -------------------------------------------------------------------------------- 1 | ./starctl 2 | --cluster-name stargate_test_cluster \
  3 | --cluster-seed 172.31.29.170 \
  4 | --cluster-version 4.0 \
  5 | --listen 172.31.29.175 \
  6 | --dc DC1 \
  7 | --rack RACK1 \
  8 | --enable-auth 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/get-table-based-token.sh: -------------------------------------------------------------------------------- 1 | curl -L -X POST '{base_auth_url}{base_auth_api_path}' \ 2 | -H 'Content-Type: application/json' \ 3 | --data-raw '{ 4 | "username": "{cass_user}", 5 | "password": "{cass_passwd}" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-all.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_one_doc.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/schema_header.gql: -------------------------------------------------------------------------------- 1 | mutation { 2 | deploySchema( 3 | keyspace: "library" 4 | # expectedVersion: "1da4f190-b7fd-11eb-8258-1ff1380eaff5" 5 | schema: """ 6 | # Write your query or mutation here 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/schema_header.gql: -------------------------------------------------------------------------------- 1 | mutation { 2 | deploySchema( 3 | keyspace: "library" 4 | # expectedVersion: "1da4f190-b7fd-11eb-8258-1ff1380eaff5" 5 | schema: """ 6 | # Write your query or mutation here 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_check_table_exists.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X GET {base_rest_url}{base_rest_schema}/{rkeyspace}/tables \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Content-Type: application/json" \ 4 | -H "Accept: application/json" 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_drop_table.sh: -------------------------------------------------------------------------------- 1 | curl -s --location \ 2 | --request DELETE {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable} \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header "Content-Type: application/json" 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_get_primKey.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X GET {base_rest_url}{base_rest_api}/{rkeyspace}/{rtable}/Mookie/Betts \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Content-Type: application/json" \ 4 | -H "Accept: application/json" 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_get_doc_where.result: -------------------------------------------------------------------------------- 1 | { 2 | "data":{ 3 | "Janet":{ 4 | "email":"janet.doe@gmail.com", 5 | "favorite color":"grey", 6 | "firstname":"Janet", 7 | "lastname":"Doe" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/quickstart/nav.adoc: -------------------------------------------------------------------------------- 1 | * xref:quickstart-overview.adoc[Stargate QuickStarts] 2 | ** xref:qs-document.adoc[Document API QuickStart] 3 | ** xref:qs-rest.adoc[REST API QuickStart] 4 | ** xref:qs-graphql-cql-first.adoc[GraphQL API CQL-first QuickStart] 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-collection-delete.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X DELETE '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-all.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-collection-delete.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X DELETE '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-collection-get-json-schema.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection2}/json-schema' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-all.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_delete_collection.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X DELETE '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_delete_doc.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X DELETE '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_array.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{user2}.weights[0]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header "Content-Type: application/json" 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_joey.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{user2}/weights/type' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_patch_check_janet.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{user1}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/dropColumnFormat.graphql: -------------------------------------------------------------------------------- 1 | # drop a column format from a table 2 | mutation dropColumnFormat { 3 | alterTableDrop( 4 | keyspaceName:"library", 5 | tableName:"book", 6 | toDrop:["format"] 7 | ) 8 | } 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/java/java-grpc-sync-query.java: -------------------------------------------------------------------------------- 1 | QueryOuterClass.Response queryString = blockingStub.executeQuery(QueryOuterClass 2 | .Query.newBuilder() 3 | .setCql("SELECT firstname, lastname FROM test.users") 4 | .build()); 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_create_ks.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X POST {base_rest_url}{base_rest_schema} \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Content-Type: application/json" \ 4 | -d '{ 5 | "name": "{rkeyspace}", 6 | "replicas": 1 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-get-one-2.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "2545331a-aaad-45d2-b084-9da3d8f4c311", 3 | "data": { 4 | "id": "some-other-stuff", 5 | "other": "This is changed nonsensical stuff." 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_get_doc_mult_where.result: -------------------------------------------------------------------------------- 1 | { 2 | "data":{ 3 | "Janet":{ 4 | "email":"janet.doe@gmail.com", 5 | "favorite color":"grey", 6 | "firstname":"Janet", 7 | "lastname":"Doe" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_patch_check_janet.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId":"Janet", 3 | "data":{ 4 | "email":"janet.doe@gmail.com", 5 | "favorite color":"grey", 6 | "firstname":"JanetLee", 7 | "lastname":"Doe" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rust/rust-processing.rs: -------------------------------------------------------------------------------- 1 | // This for loop to get the results 2 | for row in result_set.rows { 3 | let (firstname, lastname): (String, String) = row.try_into()?; 4 | println!("{} {}", firstname, lastname); 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/partials/DocAPIBlogPost.adoc: -------------------------------------------------------------------------------- 1 | [TIP] 2 | ==== 3 | For more information about the database design of the Document API, see 4 | https://stargate.io/2020/10/19/the-stargate-cassandra-documents-api.html[the blog post on the Documents API]. 5 | ==== 6 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/secure/partials/use_auth_token_rest_document.adoc: -------------------------------------------------------------------------------- 1 | === Use the auth token 2 | Store the auth token in an environment variable to make it easy to use with `cURL`. 3 | 4 | [source, shell, subs="attributes+"] 5 | ---- 6 | export AUTH_TOKEN={auth-token} 7 | ---- 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-collection-get-json-schema.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection2}/json-schema' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-one.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-delete.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X DELETE '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-one.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/_test_fix-it.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | for FILE in *; 4 | do 5 | if [[ "$FILE" != "test"* ]] 6 | then 7 | gsed --in-place "s#{base_doc_url_v2}#{base_doc_url_v2}#" $FILE 8 | 9 | fi 10 | done 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-collection-delete.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X DELETE '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-collection-get-json-schema.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection2}/json-schema' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_patch_check_partial.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{user2}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_patch_check_subdoc.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{user2}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-delete.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X DELETE '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-ns-create.sh: -------------------------------------------------------------------------------- 1 | curl -L -X POST '{base_doc_url}{base_doc_schema}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' \ 4 | -d '{ 5 | "name": "{namespace}", 6 | "replicas": 1 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-ns-create.sh: -------------------------------------------------------------------------------- 1 | curl -L -X POST '{base_doc_url}{base_doc_schema}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' \ 4 | -d '{ 5 | "name": "{namespace}", 6 | "replicas": 1 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-delete.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X DELETE '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-one.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_create_ns.sh: -------------------------------------------------------------------------------- 1 | curl -L -X POST '{base_doc_url}{base_doc_schema}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' \ 4 | -d '{ 5 | "name": "{namespace}", 6 | "replicas": 1 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_drop_column.sh: -------------------------------------------------------------------------------- 1 | curl -s --location \ 2 | --request DELETE {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/columns/email \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header "Content-Type: application/json" 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_get_particular_table.sh: -------------------------------------------------------------------------------- 1 | curl -s -L \ 2 | -X GET {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable} \ 3 | -H "X-Cassandra-Token: {auth_token}" \ 4 | -H "Content-Type: application/json" \ 5 | -H "Accept: application/json" 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_simple_ks.sh: -------------------------------------------------------------------------------- 1 | curl -s --location --request POST '{base_rest_url}{base_rest_schema}' \ 2 | --header "X-Cassandra-Token: $AUTH_TOKEN" \ 3 | --header 'Content-Type: application/json' \ 4 | --data '{ 5 | "name": "{rkeyspace}" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-post-mult-books.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentIds": [ 3 | "3d0e2f71-dfe9-4ab3-8099-9ee7acca0b7f", 4 | "5744a0a9-9aa0-4b56-bcb6-436b63b8cfd6", 5 | "cd95de08-5732-4f95-9675-efe72cde2594" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_readOneBook.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "books": { 4 | "values": [ 5 | { 6 | "title": "Moby Dick", 7 | "author": "Herman Melville" 8 | } 9 | ] 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/java-full-script.result: -------------------------------------------------------------------------------- 1 | Keyspace 'test' has been created. 2 | Table 'users' has been created. 3 | 2 rows have been inserted in table users. 4 | FirstName=Serge, lastname=Provencio 5 | FirstName=Jane, lastname=Doe 6 | Everything worked! 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/start_vm_68.sh: -------------------------------------------------------------------------------- 1 | ./starctl 2 | --cluster-name stargate_test_cluster \  3 | --cluster-seed 172.31.29.170 \  4 | --cluster-version 6.8 \  5 | --listen 172.31.29.175 \  6 | --dc DC1 \  7 | --rack RACK1 \  8 | --dse \  9 | --enable-auth 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/cql/create_index_map.cql: -------------------------------------------------------------------------------- 1 | CREATE INDEX evalk_idx ON users_keyspace.users (KEYS (evaluations)); 2 | CREATE INDEX evalv_idx ON users_keyspace.users (VALUES (evaluations)); 3 | CREATE INDEX evale_idx ON users_keyspace.users (ENTRIES (evaluations)); 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-one-book.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-one-book.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-one-book.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-ns-create.sh: -------------------------------------------------------------------------------- 1 | curl -L -X POST '{base_doc_url_v2}{base_doc_schema}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' \ 4 | -d '{ 5 | "name": "{namespace}", 6 | "replicas": 1 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_all_docs.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?page-size=3' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_simple_ns.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url}{base_doc_api}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data '{ 5 | "name": "{namespace}" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_check_column_exists.sh: -------------------------------------------------------------------------------- 1 | curl -s -L \ 2 | -X GET {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/columns \ 3 | -H "X-Cassandra-Token: {auth_token}" \ 4 | -H "Accept: application/json" \ 5 | -H "Content-Type: application/json" 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_updateOneBook.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "moby": { 4 | "value": { 5 | "title": "Moby Dick", 6 | "author": "Herman Melville", 7 | "isbn": "9780140861723" 8 | } 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/examples/bash/start_vm_68.sh: -------------------------------------------------------------------------------- 1 | ./starctl 2 | --cluster-name stargate_test_cluster \
  3 | --cluster-seed 172.31.29.170 \
  4 | --cluster-version 6.8 \
  5 | --listen 172.31.29.175 \
  6 | --dc DC1 \
  7 | --rack RACK1 \
  8 | --dse \
  9 | --enable-auth 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-ns-simple.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url}{base_doc_schema}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data '{ 5 | "name": "{namespace}" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-6.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?page-size=5' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-ns-simple.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url}{base_doc_schema}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data '{ 5 | "name": "{namespace}" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-ns-simple.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url_v2}{base_doc_schema}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data '{ 5 | "name": "{namespace}" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_joey_weights.sh: -------------------------------------------------------------------------------- 1 | curl --location --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{user2}/weights' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/readOneBook.graphql: -------------------------------------------------------------------------------- 1 | # get one book using the primary key title with a value 2 | query oneBook { 3 | book (value: {title:"Moby Dick"}) { 4 | values { 5 | title 6 | author 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1createUDTReview.graphql: -------------------------------------------------------------------------------- 1 | type Review @cql_entity(target: UDT) @cql_input { 2 | bookTitle: String @cql_column(name: "book_title") 3 | comment: String 4 | rating: Int 5 | reviewDate: Date @cql_column(name: "review_date") 6 | } 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1insert2Books.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "insertBook": { 4 | "title": "Native Son" 5 | } 6 | } 7 | } 8 | 9 | { 10 | "data": { 11 | "insertBook": { 12 | "title": "Moby Dick" 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/pages/install-overview.adoc: -------------------------------------------------------------------------------- 1 | = Installing Stargate 2 | 3 | Products with which Stargate works: 4 | 5 | * xref:install_astra.adoc[Astra] 6 | * xref:install_cass_3x.adoc[Cassandra 3.x] 7 | * xref:install_cass_40.adoc[Cassandra 4.0] 8 | * xref:install_dse_68.adoc[DSE 6.8] 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-6.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?page-size=5' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-array-value.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/book/Moby%20Dick.author[0]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header "Content-Type: application/json" 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-6.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?page-size=5' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_doc_where.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where=\{"firstname":\{"$eq":"Janet"\}\}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1insertPapBook.graphql: -------------------------------------------------------------------------------- 1 | mutation insertAnotherBook { 2 | insertBook(book: { 3 | title: "Pride and Prejudice", 4 | isbn: "", author: "Jane Austen" } 5 | ) { 6 | title 7 | isbn 8 | author 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_get_particular_column.sh: -------------------------------------------------------------------------------- 1 | curl -s -L \ 2 | -X GET {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/columns/email \ 3 | -H "X-Cassandra-Token: {auth_token}" \ 4 | -H "Content-Type: application/json" \ 5 | -H "Accept: application/json" 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-array-value.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/book/Moby%20Dick.author[0]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header "Content-Type: application/json" 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-array-value.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/book/Moby%20Dick.author[0]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header "Content-Type: application/json" 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_delete_doc_where.sh: -------------------------------------------------------------------------------- 1 | curl -L -X DELETE '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where=\{"id":\{"$eq":"some%2Dstuff"\}\}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_all_docs_w_paging_1.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?page-size=5' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/deleteOneBookCL.graphql: -------------------------------------------------------------------------------- 1 | mutation deleteOneBookCL { 2 | PaP: deletebook(value: {title:"Pride and Prejudice", author: "Jane Austen"}, ifExists: true, options: {consistency: LOCAL_ONE }) { 3 | value { 4 | title 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_get_users_fields.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X GET {base_rest_url}{base_rest_api}/{rkeyspace}/{rtable}/{user2fn}/{user2ln}?fields=firstname,lastname,top_three_tv_shows \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header "Content-Type: application/json" 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_patch_users.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X PATCH '{base_rest_url}{base_rest_api}/{rkeyspace}/{rtable}/Mookie/Betts' \ 2 | -H "X-Cassandra-Token: $AUTH_TOKEN" \ 3 | -H 'Content-Type: application/json' \ 4 | -d '{ 5 | "email": "mookie.betts.email@email.com" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_check_ns_exists.result: -------------------------------------------------------------------------------- 1 | {"data":[{"name":"system_distributed"},{"name":"system"}, 2 | {"name":"data_endpoint_auth"},{"name":"system_schema"},{"name":"myworld"}, 3 | {"name":"stargate_system"},{"name":"system_auth"},{"name":"system_traces"}]} 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_create_addl_indexes.result: -------------------------------------------------------------------------------- 1 | { 2 | "success": true 3 | } 4 | { 5 | "success": true 6 | } 7 | { 8 | "success": true 9 | } 10 | { 11 | "success": true 12 | } 13 | { 14 | "success": true 15 | } 16 | { 17 | "success": true 18 | } 19 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rust/rust-query2.rs: -------------------------------------------------------------------------------- 1 | use std::convert::TryInto; 2 | 3 | // Send the query and wait for gRPC response 4 | let response = client.execute_query(query).await?; 5 | 6 | // Convert the response into a ResultSet 7 | let result_set: ResultSet = response.try_into()?; 8 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/pages/install_docker_standalone_3x.adoc: -------------------------------------------------------------------------------- 1 | [#standalone_docker_3x] 2 | == Stargate Standalone with Docker 3 | 4 | include::install:partial$docker_pull.adoc[tag=3x] 5 | 6 | include::install:partial$docker_run.adoc[tag=3x] 7 | 8 | include::install:page$ports.adoc[leveloffset=+2] 9 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/pages/install_docker_standalone_40.adoc: -------------------------------------------------------------------------------- 1 | [#standalone_docker_40] 2 | == Stargate Standalone with Docker 3 | 4 | include::install:partial$docker_pull.adoc[tag=40] 5 | 6 | include::install:partial$docker_run.adoc[tag=40] 7 | 8 | include::install:page$ports.adoc[leveloffset=+2] 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_update_users.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X PUT '{base_rest_url}{base_rest_api}/{rkeyspace}/{rtable}/Mookie/Betts' \ 2 | -H "X-Cassandra-Token: $AUTH_TOKEN" \ 3 | -H 'Content-Type: application/json' \ 4 | -d '{ 5 | "email": "mookie.betts.new-email@email.com" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1createDeploy.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "deploySchema": { 4 | "version": "4adc2e30-9e53-11eb-8fde-b341b9f82ca9", 5 | "cqlChanges": [ 6 | "No changes, the CQL schema is up to date" 7 | ] 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_subdoc_where.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET 'l{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where=\{"weights.type":\{"$eq":"bench%20press"\}\}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-collection-get-all.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": [ 3 | { 4 | "name": "library", 5 | "upgradeAvailable": false 6 | }, 7 | { 8 | "name": "library2", 9 | "upgradeAvailable": false 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_patch_check_subdoc.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId":"Joey", 3 | "data":{ 4 | "firstname":"Joseph", 5 | "lastname":"Doe", 6 | "weights":{ 7 | "reps":10, 8 | "type":"squat", 9 | "weight":350 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_insertTwoBooks.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "moby": { 4 | "value": { 5 | "title": "Moby Dick" 6 | } 7 | }, 8 | "catch22": { 9 | "value": { 10 | "title": "Catch-22" 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-data-get-path-in-document.sh: -------------------------------------------------------------------------------- 1 | curl --location --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book/title' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-array-change.sh: -------------------------------------------------------------------------------- 1 | curl --location --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book/genre' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-data-get-path-in-document.sh: -------------------------------------------------------------------------------- 1 | curl --location --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book/title' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-array-change.sh: -------------------------------------------------------------------------------- 1 | curl --location --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book/genre' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_set_ns_replicas.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url}{base_doc_schemas}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data '{ 5 | "name": "{namespace}", 6 | "replicas": 2 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/insertOneBadge.graphql: -------------------------------------------------------------------------------- 1 | mutation insertOneBadge { 2 | gold: insertBadges(value: { btype:"Gold", earned: "2020-11-20", category: ["Editor", "Writer"] } ) { 3 | value { 4 | btype 5 | earned 6 | category 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_get_indexes.sh: -------------------------------------------------------------------------------- 1 | curl -s --location \ 2 | --request GET {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/indexes \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header "Content-Type: application/json" \ 5 | --header "Accept: application/json" \ 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_patch_check_partial.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId":"Joey", 3 | "data":{ 4 | "firstname":"Joseph", 5 | "lastname":"Doe", 6 | "weights":{ 7 | "reps":15, 8 | "type":"bench press", 9 | "weight":150 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1createQueryWhereCONTAINS.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "readerCONTAINS": [ 4 | { 5 | "name": "Jane Doe", 6 | "user_id": "f02e2894-db48-4347-8360-34f28f958590", 7 | "birthdate": null 8 | } 9 | ] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1createQueryWhereGT-2.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "bookGT": [ 4 | { 5 | "title": "Groundswell", 6 | "isbn": "978-1439183595", 7 | "author": [ 8 | "Katie Lee" 9 | ] 10 | } 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1createQueryWhereGT.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "readerGT": [ 4 | { 5 | "name": "Herman Melville", 6 | "user_id": "e0ec47e1-2b46-41ad-961c-70e6de629810", 7 | "birthdate": "1900-01-01" 8 | } 9 | ] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1createQueryWhereLT.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "bookLT": [ 4 | { 5 | "title": "Groundswell", 6 | "isbn": "978-1422125007", 7 | "author": [ 8 | "Charlene Li" 9 | ] 10 | } 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/pages/install_docker_standalone_dse_68.adoc: -------------------------------------------------------------------------------- 1 | [#standalone_docker_dse_68] 2 | == Stargate Standalone with Docker 3 | 4 | include::install:partial$docker_pull.adoc[tag=dse_68] 5 | 6 | include::install:partial$docker_run.adoc[tag=dse_68] 7 | 8 | include::install:page$ports.adoc[leveloffset=+2] 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-all-docs-with-paging.sh: -------------------------------------------------------------------------------- 1 | curl --location --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?page-state=JGQwODFlYmIyLTQ4OWUtNDI1ZS04NTI1LWEyNTU4NGY0N2JjZADwf_____B_____' \ 2 | --header "X-Cassandra-Token: {auth_token}" 3 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-ns-set-replicas.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url}{base_doc_schema}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data '{ 5 | "name": "{namespace}", 6 | "replicas": 2 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-collection-post-empty.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request POST '{base_doc_url}{base_doc_api}/{namespace}/collections' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "name": "library" 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-all-docs-with-paging.sh: -------------------------------------------------------------------------------- 1 | curl --location --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?page-state=JGQwODFlYmIyLTQ4OWUtNDI1ZS04NTI1LWEyNTU4NGY0N2JjZADwf_____B_____' \ 2 | --header "X-Cassandra-Token: {auth_token}" 3 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-ns-set-replicas.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url}{base_doc_schema}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data '{ 5 | "name": "{namespace}", 6 | "replicas": 2 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-data-get-path-in-document.sh: -------------------------------------------------------------------------------- 1 | curl --location --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book/title' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-array-change.sh: -------------------------------------------------------------------------------- 1 | curl --location --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book/genre' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-ns-set-replicas.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url_v2}{base_doc_schema}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data '{ 5 | "name": "{namespace}", 6 | "replicas": 2 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/updateOneBook.graphql: -------------------------------------------------------------------------------- 1 | mutation updateOneBook { 2 | moby: updatebook(value: {title:"Moby Dick", author:"Herman Melville", isbn: "9780140861723"}, ifExists: true ) { 3 | value { 4 | title 5 | author 6 | isbn 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_get_subdoc_where.result: -------------------------------------------------------------------------------- 1 | { 2 | "data":{ 3 | "Joey":{ 4 | "firstname":"Joey", 5 | "lastname":"Doe", 6 | "weights":{ 7 | "reps":15, 8 | "type":"bench press", 9 | "weight":150 10 | } 11 | } 12 | }, 13 | "pageState":null 14 | } 15 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-collection-post-empty.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request POST '{base_doc_url}{base_doc_api}/{namespace}/collections' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "name": "library" 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-collection2-post-empty.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request POST '{base_doc_url}{base_doc_api}/{namespace}/collections' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "name": "library2" 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-collection2-post-empty.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request POST '{base_doc_url}{base_doc_api}/{namespace}/collections' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "name": "library2" 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-collection-post-empty.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request POST '{base_doc_url_v2}{base_doc_api}/{namespace}/collections' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "name": "library" 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-collection2-post-empty.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request POST '{base_doc_url_v2}{base_doc_api}/{namespace}/collections' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "name": "library2" 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-all-docs-with-paging.sh: -------------------------------------------------------------------------------- 1 | curl --location --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?page-state=JGQwODFlYmIyLTQ4OWUtNDI1ZS04NTI1LWEyNTU4NGY0N2JjZADwf_____B_____' \ 2 | --header "X-Cassandra-Token: {auth_token}" 3 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_patch_partial.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X PATCH '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{user1}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "firstname": "Joseph" 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_ks_dcs.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X POST '{base_rest_url}{base_rest_schema}' \ 2 | -H "X-Cassandra-Token: $AUTH_TOKEN" \ 3 | -H 'Content-Type: application/json' \ 4 | -d '{ 5 | "name": "{rkeyspace-dcs}", 6 | "datacenters": [ {"name": "dc1"}, {"name": "dc2", "replicas": 5} ] 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-get-one-with-fields.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "native-son-doc-id", 3 | "data": { 4 | "book": { 5 | "genre": [ 6 | "slavery", 7 | "action" 8 | ], 9 | "title": "Native Son" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-wildcard.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where=\{"book.*":\{"$in":["paperback","epub"]\}\}&page-size=3' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header "Content-Type: application/json" 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-delete-path.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request DELETE '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{readerdocid}/reader/address/secondary' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-wildcard.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where=\{"book.*":\{"$in":["paperback","epub"]\}\}&page-size=3' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header "Content-Type: application/json" 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-wildcard.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where=\{"book.*":\{"$in":["paperback","epub"]\}\}&page-size=3' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header "Content-Type: application/json" 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_doc_mult_where.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where=\{"firstname":\{"$eq":"Janet"\},"lastname":\{"$eq":"Doe"\}\}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_subdoc_mult_where.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where=\{"weights.reps":\{"$gt":12\},"weights.reps":\{"$lt":20\}\}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_ns_dcs.sh: -------------------------------------------------------------------------------- 1 | curl -L -X POST '{base_doc_url}{base_doc_schema}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' \ 4 | -d '{ 5 | "name": "myworld_dcs", 6 | "datacenters": [ {"name": "dc1"}, {"name": "dc2", "replicas": 5} ] 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1createTableLibCollection.graphql: -------------------------------------------------------------------------------- 1 | type LibCollection @key @cql_entity(name: "lib_collection") @cql_input { 2 | type: String! @cql_column(partitionKey: true) 3 | lib_id: Int! @cql_column(partitionKey: true) 4 | lib_name: String @cql_column(clusteringOrder: ASC) 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_delete_index.sh: -------------------------------------------------------------------------------- 1 | curl -s --location \ 2 | --request DELETE {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/indexes/fav_books_idx \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header "Content-Type: application/json" \ 5 | --header "Accept: application/json" 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rust-full-script.result: -------------------------------------------------------------------------------- 1 | created client StargateClient { inner: Grpc { inner: InterceptedService { inner: Channel, f: stargate_grpc::client::AuthToken } } } 2 | created keyspace 3 | created table 4 | insert data 5 | select executed 6 | Jane Doe 7 | Serge Provencio 8 | everything worked! 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/pages/api-grpc/rust/rust-processing.adoc: -------------------------------------------------------------------------------- 1 | == Rust processing result set 2 | :page-tag: stargate,dev,develop 3 | 4 | The result set comes back as a collection of rows. 5 | A row can be easily unpacked: 6 | 7 | [source, rust] 8 | ---- 9 | include::example$rust/rust-processing.rs[] 10 | ---- 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-data-get-path-array-in-document.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{readerdocid}/reader/reviews/[1]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-delete-path.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request DELETE '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{readerdocid}/reader/address/secondary' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-ns-dcs.sh: -------------------------------------------------------------------------------- 1 | curl -L -X POST '{base_doc_url}{base_doc_schema}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' \ 4 | -d '{ 5 | "name": "{dcnamespace}", 6 | "datacenters": [ {"name": "dc1"}, {"name": "dc2", "replicas": 5} ] 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-data-get-path-array-in-document.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{readerdocid}/reader/reviews/[1]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-delete-where.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request DELETE '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}?where={ "id":{"$eq":"some stuff"}}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-where-name.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$eq":"Amy%20Smith"}}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-ns-dcs.sh: -------------------------------------------------------------------------------- 1 | curl -L -X POST '{base_doc_url}{base_doc_schema}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' \ 4 | -d '{ 5 | "name": "{dcnamespace}", 6 | "datacenters": [ {"name": "dc1"}, {"name": "dc2", "replicas": 5} ] 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-data-get-path-array-in-document.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{readerdocid}/reader/reviews/[1]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-delete-path.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request DELETE '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{readerdocid}/reader/address/secondary' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-ns-dcs.sh: -------------------------------------------------------------------------------- 1 | curl -L -X POST '{base_doc_url_v2}{base_doc_schema}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H 'Content-Type: application/json' \ 4 | -d '{ 5 | "name": "{dcnamespace}", 6 | "datacenters": [ {"name": "dc1"}, {"name": "dc2", "replicas": 5} ] 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_doc_path_wildcard.sh: -------------------------------------------------------------------------------- 1 | curl -L -X GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where=\{"weights.*":\{"$gt":11\},"weights.*":\{"$lt":16\}\}&page-size=3' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header "Content-Type: application/json" 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1deleteLibColl.graphql: -------------------------------------------------------------------------------- 1 | # Note that the lib_id is INCORRECT, 2 | # SO THIS delete operation will fail 3 | mutation deleteDHM { 4 | deleteLibCollection(libColl: { 5 | type:"book", 6 | lib_id: 66665, 7 | lib_name: "Davis Historical Museum" 8 | }) 9 | } 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-delete-where.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request DELETE '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}?where={ "id":{"$eq":"some stuff"}}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-one-with-fields.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}?fields=["book.title","book.genre"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-where-name.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$eq":"Amy%20Smith"}}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-one-with-fields.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}?fields=["book.title","book.genre"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-delete-where.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request DELETE '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{docid}?where={ "id":{"$eq":"some stuff"}}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-one-with-fields.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}?fields=["book.title","book.genre"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-where-name.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$eq":"Amy%20Smith"}}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/java/java-grpc-processing.java: -------------------------------------------------------------------------------- 1 | QueryOuterClass.ResultSet rs = queryString.getResultSet(); 2 | 3 | for (Row row : rs.getRowsList()) { 4 | System.out.println("" 5 | + "FirstName=" + row.getValues(0).getString() + ", " 6 | + "lastname=" + row.getValues(1).getString()); 7 | } 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi_curl_get_subdoc_mult_where.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "Joey": { 4 | "firstname": "Joey", 5 | "lastname": "Doe", 6 | "weights": { 7 | "reps": 15, 8 | "type": "bench press", 9 | "weight": 150 10 | } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1createQueryWhereIN.graphql: -------------------------------------------------------------------------------- 1 | type Query { 2 | booksIn( 3 | title: [String!] @cql_where(field: "title", predicate: IN) 4 | ): [Book] 5 | } 6 | 7 | query fetchBooksIn { 8 | booksIn(title:["Native Son", "Moby Dick"]) { 9 | title 10 | author 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_updateOneBookAgain.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "moby": { 4 | "value": { 5 | "title": "Moby Dick", 6 | "author": "Herman Melville", 7 | "genre": [ 8 | "Drama", 9 | "Classic lit" 10 | ] 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_patch_janet.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X PATCH 'l{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{user1}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "firstname": "JanetLee", 7 | "lastname": "Doe" 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_add_column.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X POST {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/columns \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Accept: application/json" \ 4 | -H "Content-Type: application/json" \ 5 | -d '{ 6 | "name": "email", 7 | "typeDefinition": "text" 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-data-get-path-array-in-document.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "John-Smith", 3 | "data": { 4 | "book-title": "Pride and Prejudice", 5 | "comment": "It was a wonderful book! I loved reading it.", 6 | "rating": 5, 7 | "review-date": "03-02-2002" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-document-get-one-3.result: -------------------------------------------------------------------------------- 1 | { 2 | "documentId": "2545331a-aaad-45d2-b084-9da3d8f4c311", 3 | "data": { 4 | "id": "some-other-stuff", 5 | "other": "This is changed nonsensical stuff.", 6 | "yet-another-field": "Hopefully, I haven't lost my other two fields!" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1createQueryWhereIN.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "booksIn": [ 4 | { 5 | "title": "Moby Dick", 6 | "author": "Herman Melville" 7 | }, 8 | { 9 | "title": "Native Son", 10 | "author": "Richard Wright" 11 | } 12 | ] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/go/go-simple-query.go: -------------------------------------------------------------------------------- 1 | selectQuery := &pb.Query{ 2 | Cql: "SELECT firstname, lastname FROM test.users;", 3 | } 4 | 5 | response, err := stargateClient.ExecuteQuery(selectQuery) 6 | if err != nil { 7 | fmt.Printf("error executing query %v", err) 8 | return 9 | } 10 | fmt.Printf("select executed\n") 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/readThreeBooks.graphql: -------------------------------------------------------------------------------- 1 | # get 3 books using the primary keys with an "in" filter clause of the primary key title 2 | query ThreeBooks { 3 | book(filter: { title: { in: ["Native Son", "Moby Dick", "Catch-22"] } } ) { 4 | values { 5 | title 6 | author 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1queryUpdate.graphql: -------------------------------------------------------------------------------- 1 | type Mutation { 2 | updateBook(book: BookInput): Boolean @cql_update 3 | } 4 | 5 | mutation updatePap { 6 | updateBook(book: { 7 | title: "Pride and Prejudice", 8 | author: ["Jane Austen", "random other author"], 9 | isbn: "978-0141439518" }) 10 | } 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_change_column.sh: -------------------------------------------------------------------------------- 1 | curl -s -L \ 2 | -X PUT {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/columns/firstname \ 3 | -H "X-Cassandra-Token: {auth_token}" \ 4 | -H "Accept: application/json" \ 5 | -H "Content-Type: application/json" \ 6 | -d '{ "name": "first", "typeDefinition": "varchar"}' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_get_users.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -G '{base_rest_url}{base_rest_api}/{rkeyspace}/{rtable}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Content-Type: application/json" \ 4 | -H "Accept: application/json" \ 5 | --data-urlencode 'where={ 6 | "firstname": {"$in": ["Janesha","Mookie"]} 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_get_users_where.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X GET '{base_rest_url}{base_rest_api}/{rkeyspace}/{rtable}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Content-Type: application/json" \ 4 | -H "Accept: application/json" \ 5 | --data-urlencode 'where={ 6 | "firstname": {"$eq": "Mookie"} 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/pages/api-graphql-cql-first/gql-dropping-udt.adoc: -------------------------------------------------------------------------------- 1 | // tag::DropType[] 2 | === Delete a user-defined type (UDT) 3 | 4 | You can delete a UDT. All tables that use the UDT must first be deleted. 5 | 6 | [source, plaintext] 7 | ---- 8 | include::example$graphql/cql-first/dropType.graphql[] 9 | ---- 10 | // end::DropType[] -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/javascript/node-execute-query.js: -------------------------------------------------------------------------------- 1 | stargateClient.executeQuery( 2 | query, 3 | authenticationMetadata, 4 | (error: grpc.ServiceError | null, value?: Response) => { 5 | if (error) { 6 | // something went wrong 7 | } 8 | if (value) { 9 | // the call succeeded 10 | } 11 | } 12 | ); 13 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_change_column_back.sh: -------------------------------------------------------------------------------- 1 | curl -s -L \ 2 | -X PUT {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/columns/first \ 3 | -H "X-Cassandra-Token: {auth_token}" \ 4 | -H "Accept: application/json" \ 5 | -H "Content-Type: application/json" \ 6 | -d '{ "name": "firstname", "typeDefinition": "varchar"}' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_1queryUpdate-2.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "bookByTitle": [ 4 | { 5 | "title": "Pride and Prejudice", 6 | "isbn": "978-0141439518", 7 | "author": [ 8 | "Jane Austen", 9 | "random other author" 10 | ] 11 | } 12 | ] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/insertBookWithOption.graphql: -------------------------------------------------------------------------------- 1 | # insert a book and set the option for consistency level 2 | mutation insertBookWithOption { 3 | nativeson: insertbook(value: {title:"Native Son", author:"Richard Wright"}, options: {consistency: LOCAL_QUORUM, ttl:86400}) { 4 | value { 5 | title 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1createQueryPageSize.graphql: -------------------------------------------------------------------------------- 1 | type SelectBookResult @cql_payload { // <1> 2 | data: [Book] 3 | pagingState: String 4 | } 5 | type Query { 6 | books( 7 | title: String!, 8 | pagingState: String @cql_pagingState // <2> 9 | ): SelectBookResult @cql_select(pageSize: 10) // <3> 10 | } 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_add_udt_to_table.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X POST {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/columns \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Accept: application/json" \ 4 | -H "Content-Type: application/json" \ 5 | -d '{ 6 | "name": "address", 7 | "typeDefinition": "address_type" 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_get_users_fields.result: -------------------------------------------------------------------------------- 1 | { 2 | "count": 1, 3 | "data": [ 4 | { 5 | "firstname": "Janesha", 6 | "lastname": "Doesha", 7 | "top_three_tv_shows": [ 8 | "The Magicians", 9 | "The Librarians", 10 | "Agents of SHIELD" 11 | ] 12 | } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/yaml/async-yaml-result.yaml: -------------------------------------------------------------------------------- 1 | response:columns { 2 | type { 3 | basic: VARCHAR 4 | } 5 | name: "k" 6 | } 7 | columns { 8 | type { 9 | basic: INT 10 | } 11 | name: "v" 12 | } 13 | rows { 14 | values { 15 | string: "a" 16 | } 17 | values { 18 | int: 1 19 | } 20 | } 21 | 22 | completed 23 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/partials/curl_cql_directive.adoc: -------------------------------------------------------------------------------- 1 | .Getting directive information 2 | **** 3 | To see information on all the CQL directives available in Stargate, 4 | run the following cURL command: 5 | 6 | [source,shell, subs="attributes+"] 7 | ---- 8 | include::example$graphql/schema-first/1curl_cql_directive.graphql[] 9 | ---- 10 | **** 11 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/secure/pages/auth.adoc: -------------------------------------------------------------------------------- 1 | = Auth API 2 | :page-tag: stargate,dev,develop,security,secure 3 | 4 | The Stargate Auth API is implemented using REST queries with any Cassandra 5 | deployment to generate authorization tokens for the REST, GraphQL, and 6 | Document APIs. 7 | 8 | // generate the auth token 9 | include::partial$gen_auth_token.adoc[] 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-data-where-with-document-path.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{readerdocid}/reader/reviews?WHERE={"reader.reviews.rating":{"$eq":5}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-post-pop-book.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book/genre/function' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "operation": "$pop" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-put-book-with-path.sh: -------------------------------------------------------------------------------- 1 | curl -X 'PUT' \ 2 | '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book' \ 3 | -H "X-Cassandra-Token: {auth_token}" \ 4 | -H 'accept: application/json' \ 5 | -H 'Content-Type: application/json' \ 6 | -d '{ "title": "Native Daughter" }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-data-where-with-document-path.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{readerdocid}/reader/reviews?WHERE={"reader.reviews.rating":{"$eq":5}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-post-pop-book.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book/genre/function' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "operation": "$pop" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-put-book-with-path.sh: -------------------------------------------------------------------------------- 1 | curl -X 'PUT' \ 2 | '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book' \ 3 | -H "X-Cassandra-Token: {auth_token}" \ 4 | -H 'accept: application/json' \ 5 | -H 'Content-Type: application/json' \ 6 | -d '{ "title": "Native Daughter" }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-data-where-with-document-path.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{readerdocid}/reader/reviews?WHERE={"reader.reviews.rating":{"$eq":5}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-post-pop-book.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book/genre/function' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "operation": "$pop" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_post_noDocId.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request POST '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "id": "some-stuff", 7 | "other": "This is nonsensical stuff." 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_deleteBook.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"mutation deletepap {\n deleteBook(book: { title:\"Pride and Prejudice\"})\n}\n","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_add_map_to_table.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X POST {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/columns \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Accept: application/json" \ 4 | -H "Content-Type: application/json" \ 5 | -d '{ 6 | "name": "evaluations", 7 | "typeDefinition": "map" 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_add_set_to_table.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X POST {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/columns \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Accept: application/json" \ 4 | -H "Content-Type: application/json" \ 5 | -d '{ 6 | "name": "favorite_books", 7 | "typeDefinition": "set" 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_insertArticle.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "magarticle": { 4 | "value": { 5 | "title": "How to use GraphQL", 6 | "mtitle": "Database Magazine", 7 | "authors": [ 8 | "First author", 9 | "Second author" 10 | ] 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /.github/workflows/linkinator.yml: -------------------------------------------------------------------------------- 1 | name: Run linkinator on a schedule 2 | on: 3 | schedule: 4 | - cron: "0 9 * * 1,2,3,4,5" 5 | 6 | jobs: 7 | run_linkinator: 8 | runs-on: [ubuntu-latest] 9 | steps: 10 | - name: Checkout 11 | uses: actions/checkout@v4 12 | - name: "run linkinator" 13 | run: | 14 | npm run build:linkinator 15 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-where-contains.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"book.genre":{"$contains":["adventure"]}}&fields=["book.title","book.genre"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-where-contains.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"book.genre":{"$contains":["adventure"]}}&fields=["book.title","book.genre"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-where-contains.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where={"book.genre":{"$contains":["adventure"]}}&fields=["book.title","book.genre"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-put-book-with-path.sh: -------------------------------------------------------------------------------- 1 | curl -X 'PUT' \ 2 | '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book' \ 3 | -H "X-Cassandra-Token: {auth_token}" \ 4 | -H 'accept: application/json' \ 5 | -H 'Content-Type: application/json' \ 6 | -d '{ "title": "Native Daughter" }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_get_all_docs_w_paging_2.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?page-size=5&page-state=JGNlYjczMDc5LTE1NTItNGQyNS1hM2ExLWE2MzgxNWVlYTAyMADwf_____B_____ \' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1createTableBook.graphql: -------------------------------------------------------------------------------- 1 | type Book @key @cql_entity(name: "book") @cql_input { // <1> <2> <3> 2 | title: String! @cql_column(partitionKey: true, name: "book_title") // <4> <5> 3 | isbn: String @cql_column(clusteringOrder: ASC) // <6> 4 | author: [String] @cql_index(name: "author_idx", target: VALUES) // <7> 5 | } 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_fetchBook.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"query fetchBook {\n book(title: \"Native Son\") {\n title\n author\n }\n}\n","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_getAllKsSchema.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_admin}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"{\n schemas(keyspace: \"library\") {\n version\n deployDate\n contents\n }\n}\n","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_add_list_to_table.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X POST {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/columns \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Accept: application/json" \ 4 | -H "Content-Type: application/json" \ 5 | -d '{ 6 | "name": "top_three_tv_shows", 7 | "typeDefinition": "list" 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/docapi/library/curl-ns-get-functions.result: -------------------------------------------------------------------------------- 1 | { 2 | "functions": [ 3 | { 4 | "name": "$push", 5 | "description": "Appends data to the end of an array" 6 | }, 7 | { 8 | "name": "$pop", 9 | "description": "Removes data from the end of an array, returning it" 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-post-noDocId.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request POST '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "id": "some-stuff", 7 | "other": "This is nonsensical stuff." 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-where-name-eq.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$eq":"Amy%20Smith"}}&fields=["reader.name","reader.birthdate"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-post-noDocId.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request POST '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "id": "some-stuff", 7 | "other": "This is nonsensical stuff." 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_patch_subdoc.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X PATCH '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{user1}/weights' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "reps": 10, 7 | "type": "squat", 8 | "weight": 350 9 | }' 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/updateOneBookAgain.graphql: -------------------------------------------------------------------------------- 1 | # update one book, adding a SET (genre) 2 | mutation updateOneBookAgain { 3 | moby: updatebook(value: {title:"Moby Dick", author:"Herman Melville", genre: ["Drama", "Classic lit"]}, ifExists: true ) { 4 | value { 5 | title 6 | author 7 | genre 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1fetchOrderById.graphql: -------------------------------------------------------------------------------- 1 | query getOrder { 2 | order(checkout_id: 1) { 3 | checkout_id 4 | reader { 5 | name 6 | user_id 7 | email 8 | address { 9 | city 10 | } 11 | } 12 | books { 13 | title 14 | isbn 15 | author 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1insert2Books.graphql: -------------------------------------------------------------------------------- 1 | mutation insert2books { 2 | nativeson: insertBook(book: { title: "Native Son", isbn: "978-0061148507", author: ["Richard Wright"] }) { 3 | title 4 | } 5 | mobydick: insertBook(book: { title: "Moby Dick", isbn: "978-1503280786", author: ["Herman Melville"]}) { 6 | title 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/pages/api-graphql-cql-first/gql-deleting-keyspace.adoc: -------------------------------------------------------------------------------- 1 | // tag::DeleteKS[] 2 | === Delete a keyspace 3 | 4 | You can delete a keyspace. All tables and table data will be deleted along with 5 | the keyspace schema. 6 | 7 | [source, plaintext] 8 | ---- 9 | include::example$graphql/cql-first/dropKeyspace.graphql[] 10 | ---- 11 | // end::DeleteKS[] -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-where-name-eq.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$eq":"Amy%20Smith"}}&fields=["reader.name","reader.birthdate"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-put-ttl.sh: -------------------------------------------------------------------------------- 1 | curl --location --request PUT '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}?ttl=10000' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "okaydokie": "Now I have done it! We have a TTL at last!" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-put-ttl.sh: -------------------------------------------------------------------------------- 1 | curl --location --request PUT '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}?ttl=10000' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "okaydokie": "Now I have done it! We have a TTL at last!" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-where-name-eq.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$eq":"Amy%20Smith"}}&fields=["reader.name","reader.birthdate"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-post-noDocId.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request POST '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "id": "some-stuff", 7 | "other": "This is nonsensical stuff." 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_deleteLibColl.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"mutation deleteDHM {\n deleteLibCollection(libColl: { type:\"book\", lib_id: 66666 })\n}","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_add_tuple_to_table.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -X POST {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/columns \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Accept: application/json" \ 4 | -H "Content-Type: application/json" \ 5 | -d '{ 6 | "name": "current_country", 7 | "typeDefinition": "tuple" 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_insertOneBadge.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "gold": { 4 | "value": { 5 | "badge_type": "Gold", 6 | "badge_id": 100, 7 | "earned": [ 8 | { 9 | "key": "Writer", 10 | "value": "2020-11-20" 11 | } 12 | ] 13 | } 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/pages/api-graphql-schema-first/gqlsf-deleting-keyspace.adoc: -------------------------------------------------------------------------------- 1 | // tag::DeleteKS[] 2 | === Delete a keyspace 3 | 4 | You can delete a keyspace. All tables and table data will be deleted along with 5 | the keyspace schema. 6 | 7 | [source, plaintext] 8 | ---- 9 | include::example$graphql/cql-first/dropKeyspace.graphql[] 10 | ---- 11 | // end::DeleteKS[] -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/bash/start_vm_syntax.sh: -------------------------------------------------------------------------------- 1 | ./starctl --cluster-name \  2 | --cluster-seed \  3 | --cluster-version \  4 | --listen \  5 | --dc \  6 | --rack \  7 | --dse #for DSE only, delete for Cassandra \  8 | --enable-auth 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-patch.sh: -------------------------------------------------------------------------------- 1 | curl --location --request PATCH '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "yet-another-field": "Hopefully, I haven'\''t lost my other two fields!" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-post-push-book.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book/genre/function' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "operation": "$push", "value": "culture" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-patch.sh: -------------------------------------------------------------------------------- 1 | curl --location --request PATCH '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "yet-another-field": "Hopefully, I haven'\''t lost my other two fields!" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-post-push-book.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book/genre/function' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "operation": "$push", "value": "culture" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-put-ttl.sh: -------------------------------------------------------------------------------- 1 | curl --location --request PUT '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{docid}?ttl=10000' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "okaydokie": "Now I have done it! We have a TTL at last!" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_readThreeBooks.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "book": { 4 | "values": [ 5 | { 6 | "title": "Catch-22", 7 | "author": "Joseph Heller" 8 | }, 9 | { 10 | "title": "Moby Dick", 11 | "author": "Herman Melville" 12 | } 13 | ] 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/install/examples/bash/start_vm_syntax.sh: -------------------------------------------------------------------------------- 1 | ./starctl --cluster-name \
  2 | --cluster-seed \
  3 | --cluster-version \
  4 | --listen \
  5 | --dc \
  6 | --rack \
  7 | --dse #for DSE only, delete for Cassandra \
  8 | --enable-auth 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-where-name-eq.sh: -------------------------------------------------------------------------------- 1 | curl --location --globoff --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$eq":"Jane%20Doe"}}&fields=["reader.name", "reader.address","reader.reviews"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-where-name-eq.sh: -------------------------------------------------------------------------------- 1 | curl --location --globoff --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$eq":"Jane%20Doe"}}&fields=["reader.name", "reader.address","reader.reviews"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-patch.sh: -------------------------------------------------------------------------------- 1 | curl --location --request PATCH '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "yet-another-field": "Hopefully, I haven'\''t lost my other two fields!" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-post-push-book.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{bookdocid}/book/genre/function' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "operation": "$push", "value": "culture" 6 | }' 7 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-where-name-eq.sh: -------------------------------------------------------------------------------- 1 | curl --location --globoff --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$eq":"Jane%20Doe"}}&fields=["reader.name", "reader.address","reader.reviews"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/insertArticle.graphql: -------------------------------------------------------------------------------- 1 | # insert an article USING A LIST (authors) 2 | mutation insertArticle { 3 | magarticle: insertarticle(value: {title:"How to use GraphQL", authors: ["First author", "Second author"], mtitle:"Database Magazine"}) { 4 | value { 5 | title 6 | mtitle 7 | authors 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/readOneGoldBadge.graphql: -------------------------------------------------------------------------------- 1 | # query a badge record that has a MAP (earned) with only the partition key 2 | query oneGoldBadge { 3 | badge(value: { badge_type: "Gold" } ) { 4 | values { 5 | badge_type 6 | badge_id 7 | earned { 8 | key 9 | value 10 | } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/pages/cql.adoc: -------------------------------------------------------------------------------- 1 | = CQL API 2 | :page-tag: stargate,dev,develop 3 | 4 | The Stargate Cassandra Query Language (CQL) API is implemented to use the same CQL syntax, tools, and native language drivers you would use with any Cassandra 5 | deployment. 6 | 7 | * xref:dev-with-cql.adoc[Using the CQL API] 8 | * https://cassandra.apache.org/doc/latest/cql/[CQL reference] 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-where-books-not.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"$not":{"book.title":{"$eq":"Moby%20Dick"}}}&fields=["book.title","book.authors"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-patch-subdoc-docpath.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X PATCH '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{user1}/weights' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "reps": 10, 7 | "type": "squat", 8 | "weight": 350 9 | }' 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-put-replace.sh: -------------------------------------------------------------------------------- 1 | curl --location --request PUT '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "id": "some-other-stuff", 6 | "other": "This is changed nonsensical stuff." 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-where-books-not.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"$not":{"book.title":{"$eq":"Moby%20Dick"}}}&fields=["book.title","book.authors"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-patch-subdoc-docpath.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X PATCH '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{user1}/weights' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "reps": 10, 7 | "type": "squat", 8 | "weight": 350 9 | }' 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-put-replace.sh: -------------------------------------------------------------------------------- 1 | curl --location --request PUT '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "id": "some-other-stuff", 6 | "other": "This is changed nonsensical stuff." 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-where-books-not.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where={"$not":{"book.title":{"$eq":"Moby%20Dick"}}}&fields=["book.title","book.authors"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-patch-subdoc-docpath.sh: -------------------------------------------------------------------------------- 1 | curl -L \ 2 | -X PATCH '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{user1}/weights' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "reps": 10, 7 | "type": "squat", 8 | "weight": 350 9 | }' 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_createKeyspace.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_schema}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"# create a keyspace called library\nmutation createKsLibrary {\n createKeyspace(name:\"library\", replicas: 1)\n}","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1insert2BooksSameTitle.graphql: -------------------------------------------------------------------------------- 1 | mutation insert2booksSameTitle { 2 | groundswell1: insertBook(book: { title: "Groundswell", isbn: "978-1422125007", author: ["Charlene Li"] }) { 3 | title 4 | } 5 | groundswell2: insertBook(book: { title: "Groundswell", isbn: "978-1439183595", author: ["Katie Lee"]}) { 6 | title 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/java/java-grpc-std-query.java: -------------------------------------------------------------------------------- 1 | import io.stargate.proto.QueryOuterClass.Response; 2 | import io.stargate.proto.QueryOuterClass; 3 | 4 | Response response = 5 | blockingStub.executeQuery( 6 | QueryOuterClass.Query 7 | .newBuilder().setCql("INSERT INTO ks.test (k, v) VALUES ('a', 1)").build()); 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-put-replace.sh: -------------------------------------------------------------------------------- 1 | curl --location --request PUT '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw ' { 5 | "id": "some-other-stuff", 6 | "other": "This is changed nonsensical stuff." 7 | }' 8 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/curl_deleteIndex.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST {base_url}{base_gql_schema} \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"mutation dropIndexBdate {\n\n reader: dropIndex(\n keyspaceName:\"library\",\n indexName:\"reader_bdate_idx\"\n )\n}","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_queryWhereIn.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"query fetchBooksIn {\n booksIn(title:[\"Native Son\", \"Moby Dick\"]) {\n title\n author\n }\n}","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_get_users_mult_where.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -G '{base_rest_url}{base_rest_api}/{rkeyspace}/{rtable}' \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Content-Type: application/json" \ 4 | -H "Accept: application/json" \ 5 | --data-urlencode 'where={ 6 | "firstname": {"$eq": "Janesha"}, 7 | "favorite_books": {"$contains": "Emma"} 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-core/modules/ROOT/apinav.adoc: -------------------------------------------------------------------------------- 1 | * xref:develop:api.adoc[API References] 2 | ** https://stargate.io/docs/latest/develop/attachments/docv2.html[{database} Document API v2, window="_blank"] 3 | ** https://stargate.io/docs/latest/develop/attachments/restv2.html[{database} REST API v2, window="_blank"] 4 | ** https://stargate.io/docs/latest/develop/attachments/restv1.html[{database} REST API v1, window="_blank"] 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/myworld/curl_put_janet.sh: -------------------------------------------------------------------------------- 1 | curl -L -X PUT '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{user1}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data '{ 5 | "firstname": "Janet", 6 | "lastname": "Doe", 7 | "email": "janet.doe@gmail.com", 8 | "favorite color": "grey" 9 | }' 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_Undeploy.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"mutation {\n undeploySchema(\n keyspace: \"library\"\n expectedVersion: \" 6c34d600-a3a7-11eb-a22f-7bb5f4c20029\")\n}","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_updatePap.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"mutation {\n updateBook(book: { title: \"Pride and Prejudice\", author: \"Jane Austen\" isbn: \"some isbn number\" })\n}\n","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/insertTwoBooks.graphql: -------------------------------------------------------------------------------- 1 | # insert 2 books in one mutation 2 | mutation insert2Books { 3 | moby: insertbook(value: {title:"Moby Dick", author:"Herman Melville"}) { 4 | value { 5 | title 6 | } 7 | } 8 | catch22: insertbook(value: {title:"Catch-22", author:"Joseph Heller"}) { 9 | value { 10 | title 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/cql-first/readReaderWithUDT.graphql: -------------------------------------------------------------------------------- 1 | # query the author to see the UDT 2 | query getReaderWithUDT{ 3 | reader(value: { name:"Allen Ginsberg" user_id: "e0ed81c3-0826-473e-be05-7de4b4592f64" }) { 4 | values { 5 | name 6 | birthdate 7 | addresses { 8 | street 9 | city 10 | zip 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1createQueryWhereGT-2.graphql: -------------------------------------------------------------------------------- 1 | type Query { 2 | bookGT( 3 | title: String 4 | isbn: String @cql_where(field: "isbn", predicate: GT) 5 | ): [Book] 6 | } 7 | 8 | # retrieves only one book, by Katie Lee 9 | query fetchIsbnGT { 10 | bookGT(title: "Groundswell", isbn: "978-1422125007") { 11 | title 12 | isbn 13 | author 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1createQueryWhereLT.graphql: -------------------------------------------------------------------------------- 1 | type Query { 2 | bookLT( 3 | title: String 4 | isbn: String @cql_where(field: "isbn", predicate: LT) 5 | ): [Book] 6 | } 7 | 8 | # retrieves only one book, by Charlene Li 9 | query fetchIsbnLT { 10 | bookLT(title: "Groundswell", isbn: "978-1422125008") { 11 | title 12 | isbn 13 | author 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_insertMobyDick.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"mutation insertnativeson {\n insertBook(book: { title: \"Moby Dick\", author: \"Herman Melville\" }) {\n title\n }\n}\n","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_insertNativeSon.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"mutation insertnativeson {\n insertBook(book: { title: \"Native Son\", author: \"Richard Wright\" }) {\n title\n }\n}\n","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/java/java-grpc-sync.java: -------------------------------------------------------------------------------- 1 | import io.stargate.grpc.StargateBearerToken; 2 | 3 | StargateGrpc.StargateBlockingStub blockingStub = StargateGrpc.newBlockingStub(channel) 4 | .withCallCredentials(new StargateBearerToken("token-value")) 5 | .withDeadlineAfter(5, TimeUnit.SECONDS); 6 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/pages/api-rest/rest-dropping-table.adoc: -------------------------------------------------------------------------------- 1 | // tag::DropTable[] 2 | === Delete a table 3 | 4 | Send a `DELETE` request to `{base_rest_schema}/{keyspace_name}/tables/{table_name}` 5 | to delete a table. All data will be deleted along with the table schema. 6 | 7 | [source, shell, subs="attributes+"] 8 | ---- 9 | include::example$rest/curl_drop_table.sh[] 10 | ---- 11 | // end::DropTable[] -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/partials/stargate-intro-intro.adoc: -------------------------------------------------------------------------------- 1 | // ASTRA 2 | ifeval::["{product}"" == "Astra DB"] 3 | {company} {database} includes the Stargate APIs, which is a data gateway deployed between client applications and a database. 4 | endif::[] 5 | // STARGATE 6 | ifeval::["{product}" == "Stargate"] 7 | {company} {database} is a data gateway deployed between client applications and a database. 8 | endif::[] -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-where-address-city.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.address.primary,secondary.city":{"$eq":"Evertown"}}&fields=["reader.name","reader.address","reader.reviews"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-where-name-in.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$in":["Jane%20Doe","Amy%20Smith"]}}&fields=["reader.name","reader.birthdate","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-where-name-ne-mult.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$ne":"Amy%20Smith","$exists":true}}&fields=["reader.name","reader.user_id","reader.birthdate"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-where-address-city.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.address.primary,secondary.city":{"$eq":"Evertown"}}&fields=["reader.name","reader.address","reader.reviews"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-where-book-eq.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.reviews.[*].book-title":{"$eq":"Moby%20Dick"}}&fields=["reader.name","reader.address","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-where-name-in.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$in":["Jane%20Doe","Amy%20Smith"]}}&fields=["reader.name","reader.birthdate","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-where-name-ne-mult.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$ne":"Amy%20Smith","$exists":true}}&fields=["reader.name","reader.user_id","reader.birthdate"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_insertgroundswell1.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"mutation insertgroundswell1 {\n insertBook(book: { title: \"Groundswell\", author: \"Charlene Li\" }) {\n title\n }\n}\n","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_insertgroundswell2.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"mutation insertgroundswell2 {\n insertBook(book: { title: \"Groundswell\", author: \"Katie Lee\" }) {\n title\n }\n}\n","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/xml/java-setup.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | io.stargate.grpc 4 | grpc-proto 5 | 1.0.41 6 | 7 | 8 | io.grpc 9 | grpc-netty-shaded 10 | 1.41.0 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-where-book-eq.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.reviews.[*].book-title":{"$eq":"Moby%20Dick"}}&fields=["reader.name","reader.address","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-where-name-in-1fail.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$in":["Jane%20Doe","John%20Smith"]}}&fields=["reader.name","reader.address","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-where-name-nin.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$nin":["Jane%20Doe","Amy%20Smith"]}}&fields=["reader.name","reader.birthdate","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-where-name-in-1fail.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$in":["Jane%20Doe","John%20Smith"]}}&fields=["reader.name","reader.address","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-where-name-nin.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$nin":["Jane%20Doe","Amy%20Smith"]}}&fields=["reader.name","reader.birthdate","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-where-address-city.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.address.primary,secondary.city":{"$eq":"Evertown"}}&fields=["reader.name","reader.address","reader.reviews"]' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-where-book-eq.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.reviews.[*].book-title":{"$eq":"Moby%20Dick"}}&fields=["reader.name","reader.address","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-where-name-in.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$in":["Jane%20Doe","Amy%20Smith"]}}&fields=["reader.name","reader.birthdate","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-where-name-ne-mult.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$ne":"Amy%20Smith","$exists":true}}&fields=["reader.name","reader.user_id","reader.birthdate"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-where-name-nin.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$nin":["Jane%20Doe","Amy%20Smith"]}}&fields=["reader.name","reader.birthdate","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_fetchSameBooks.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"query fetchSameBooks {\n books(title: \"Groundswell\") { \n data {\n title,\n author\n },\n pagingState\n }\n}\n","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_getParticularKsSchema.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_admin}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"{\n schema(keyspace: \"library\", version: "4faadde0-b829-11eb-82d7-2d54f9ed2277") {\n version\n deployDate\n contents\n }\n}\n","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_insert_set_data.sh: -------------------------------------------------------------------------------- 1 | curl -s -X POST {base_rest_url}{base_rest_api}/{rkeyspace}/{rtable} \ 2 | -H "accept: application/json" \ 3 | -H "X-Cassandra-Token: {auth_token}" \ 4 | -H "Content-Type: application/json" \ 5 | -d '{"firstname": "{user2fn}", 6 | "lastname": "{user2ln}", 7 | "favorite color": "grey", 8 | "favorite_books": [ "Emma", "The Color Purple" ] 9 | }' 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_insert_udt_data.sh: -------------------------------------------------------------------------------- 1 | curl -s -X POST {base_rest_url}{base_rest_api}/{rkeyspace}/{rtable} \ 2 | -H "accept: application/json" \ 3 | -H "X-Cassandra-Token: $AUTH_TOKEN" \ 4 | -H "Content-Type: application/json" \ 5 | -d '{"firstname": "Janesha", 6 | "lastname": "Doesha", 7 | "favorite color": "grey", 8 | "address": { "street": "1 Main St", "zip": "12345" } 9 | }' 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/pages/api-rest/rest-dropping-keyspace.adoc: -------------------------------------------------------------------------------- 1 | // tag::DropKS[] 2 | === Delete a keyspace 3 | 4 | Send a `DELETE` request to `{base_rest_schema}/{keyspace_name}` to delete 5 | a keyspace. All data and all table schema will be deleted along with the 6 | keyspace schema. 7 | 8 | [source, shell, subs="attributes+"] 9 | ---- 10 | include::example$rest/curl_drop_ks.sh[] 11 | ---- 12 | // end::DropKS[] -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/partials/data_fed_directives.adoc: -------------------------------------------------------------------------------- 1 | [source, shell, subs="attributes+"] 2 | ---- 3 | scalar _FieldSet 4 | 5 | directive @key(fields: _FieldSet!) on OBJECT | INTERFACE 6 | directive @extends on OBJECT | INTERFACE 7 | directive @external on FIELD_DEFINITION 8 | directive @requires(fields: _FieldSet!) on FIELD_DEFINITION 9 | directive @provides(fields: _FieldSet!) on FIELD_DEFINITION 10 | ---- 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-get-where-rating-gt3-lte5.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.reviews.[*].rating":{"$gt":3,"$lte":5}}&fields=["reader.name","reader.reviews.rating","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-get-where-rating-gt3-lte5.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.reviews.[*].rating":{"$gt":3,"$lte":5}}&fields=["reader.name","reader.reviews.rating","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-where-name-in-1fail.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.name":{"$in":["Jane%20Doe","John%20Smith"]}}&fields=["reader.name","reader.address","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_readOneGoldBadge.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "badge": { 4 | "values": [ 5 | { 6 | "badge_type": "Gold", 7 | "badge_id": 100, 8 | "earned": [ 9 | { 10 | "key": "Writer", 11 | "value": "2020-11-20" 12 | } 13 | ] 14 | } 15 | ] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_readOneWriterBadge.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "badge": { 4 | "values": [ 5 | { 6 | "badge_type": "Gold", 7 | "badge_id": 100, 8 | "earned": [ 9 | { 10 | "key": "Writer", 11 | "value": "2020-11-20" 12 | } 13 | ] 14 | } 15 | ] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/OLD/curl-document-put-withDocId.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request PUT '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "stuff": "2545331a-aaad-45d2-b084-9da3d8f4c311", 7 | "other": "I need a document with a set value for a test." 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v1/curl-document-put-withDocId.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request PUT '{base_doc_url}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "stuff": "2545331a-aaad-45d2-b084-9da3d8f4c311", 7 | "other": "I need a document with a set value for a test." 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-get-where-rating-gt3-lte5.sh: -------------------------------------------------------------------------------- 1 | curl --location -g --request GET '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}?where={"reader.reviews.[*].rating":{"$gt":3,"$lte":5}}&fields=["reader.name","reader.reviews.rating","reader.reviews"]&page-size=6' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/docapi/library/v2/curl-document-put-withDocId.sh: -------------------------------------------------------------------------------- 1 | curl --location \ 2 | --request PUT '{base_doc_url_v2}{base_doc_api}/{namespace}/collections/{collection}/{docid}' \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header 'Content-Type: application/json' \ 5 | --data '{ 6 | "stuff": "2545331a-aaad-45d2-b084-9da3d8f4c311", 7 | "other": "I need a document with a set value for a test." 8 | }' 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_create_index.sh: -------------------------------------------------------------------------------- 1 | curl -s --location \ 2 | --request POST {base_rest_url}{base_rest_schema}/{rkeyspace}/tables/{rtable}/indexes \ 3 | --header "X-Cassandra-Token: {auth_token}" \ 4 | --header "Content-Type: application/json" \ 5 | --header "Accept: application/json" \ 6 | --data '{ 7 | "column": "favorite_books", 8 | "name": "fav_books_idx", 9 | "ifNotExists": true 10 | }' 11 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_insert_tuple_data.sh: -------------------------------------------------------------------------------- 1 | curl -s -X POST {base_rest_url}{base_rest_api}/{rkeyspace}/{rtable} \ 2 | -H "accept: application/json" \ 3 | -H "X-Cassandra-Token: $AUTH_TOKEN" \ 4 | -H "Content-Type: application/json" \ 5 | -d '{"firstname": "Janesha", 6 | "lastname": "Doesha", 7 | "favorite color": "grey", 8 | "current_country": [ "France", "2016-01-01", "2020-02-02" ] 9 | }' 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_readOneGold100Badge.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "badge": { 4 | "values": [ 5 | { 6 | "badge_type": "Gold", 7 | "badge_id": 100, 8 | "earned": [ 9 | { 10 | "key": "Writer", 11 | "value": "2020-11-20" 12 | } 13 | ] 14 | } 15 | ] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_readOneWriterEntryBadge.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "badge": { 4 | "values": [ 5 | { 6 | "badge_type": "Gold", 7 | "badge_id": 100, 8 | "earned": [ 9 | { 10 | "key": "Writer", 11 | "value": "2020-11-20" 12 | } 13 | ] 14 | } 15 | ] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_readOneWriterKeyBadge.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "badge": { 4 | "values": [ 5 | { 6 | "badge_type": "Gold", 7 | "badge_id": 100, 8 | "earned": [ 9 | { 10 | "key": "Writer", 11 | "value": "2020-11-20" 12 | } 13 | ] 14 | } 15 | ] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/gql_readOneWriterValueBadge.result: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "badge": { 4 | "values": [ 5 | { 6 | "badge_type": "Gold", 7 | "badge_id": 100, 8 | "earned": [ 9 | { 10 | "key": "Writer", 11 | "value": "2020-11-20" 12 | } 13 | ] 14 | } 15 | ] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1createQueryWhereGT.graphql: -------------------------------------------------------------------------------- 1 | type Query { 2 | readerGT( 3 | name: [String!] 4 | user_id: [Uuid!] 5 | @cql_where(field: "user_id", predicate: GT) 6 | ): [Reader] 7 | } 8 | 9 | query fetchReadersGT { 10 | readerGT( name:"Herman Melville", user_id: "e0ec47e1-2b46-41ad-961c-70e6de629800" ) { 11 | name 12 | user_id 13 | birthdate 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_insertPapBook.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"mutation insertAnotherBook {\n insertBook(book: { title: \"Pride and Prejudice\", author: \"Jane Austen\" }) {\n title\n author\n }\n}\n","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/graphql/schema-first/1curl_queryWhereIN2PartKey.sh: -------------------------------------------------------------------------------- 1 | curl --location --request POST '{base_url}{base_gql_api}/{gkeyspace}' \ 2 | --header "X-Cassandra-Token: {auth_token}" \ 3 | --header 'Content-Type: application/json' \ 4 | --data-raw '{"query":"query fetchLibCollIn {\n libCollIn(type:[ \"photo\", \"book\" ], lib_id: [ 12345, 12543 ]) {\n type\n lib_id\n lib_name\n }\n}","variables":{}}' 5 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/javascript/node-gen-auth-token.js: -------------------------------------------------------------------------------- 1 | const stargateClient = new StargateClient( 2 | grpcEndpoint, grpc.credentials.createInsecure()); 3 | 4 | const promisifiedClient = promisifyStargateClient(stargateClient); 5 | 6 | const authenticationMetadata = await creds.generateMetadata( 7 | {service_url: 'http://localhost:8081/v1/auth'}); 8 | await promisifiedClient.executeQuery(query, authenticationMetadata); 9 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/rest/curl_get_set_data.sh: -------------------------------------------------------------------------------- 1 | curl -s -L -G {base_rest_url}{base_rest_api}/{rkeyspace}/{rtable} \ 2 | -H "X-Cassandra-Token: {auth_token}" \ 3 | -H "Content-Type: application/json" \ 4 | -H "Accept: application/json" \ 5 | --data-urlencode 'where={ 6 | "firstname": {"$eq": "Janesha"}, 7 | "lastname": {"$eq": "Doesha"}, 8 | "favorite_books": {"$contains": "Emma"} 9 | }' 10 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/examples/result/rest_curl_get_primKey.result: -------------------------------------------------------------------------------- 1 | { 2 | "count": 1, 3 | "data": [ 4 | { 5 | "firstname": "Mookie", 6 | "evaluations": [], 7 | "top_three_tv_shows": [], 8 | "favorite color": "blue", 9 | "current_country": null, 10 | "email": "mookie.betts.new-email@email.com", 11 | "lastname": "Betts", 12 | "favorite_books": [] 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /docs-src/stargate-develop/modules/develop/partials/grpc-prereqs.adoc: -------------------------------------------------------------------------------- 1 | === Prerequisites 2 | 3 | * xref:manage:authnz.adoc[Get an application token] 4 | * Create a table in your keyspace (optional): xref:api-rest/rest-creating-keyspace.adoc[(REST)] xref:api-graphql-cql-first/gql-creating-keyspace.adoc[(GraphQL)] 5 | * xref:manage:start-stargate.adoc[Start Stargate (optional)] 6 | * xref:gRPC-using.adoc#_using_bloomrpc[bloomrpc] installed to test queries 7 | --------------------------------------------------------------------------------