From 15a621c7f0b79ebbfe02b62d5f5a4eae3e24799f Mon Sep 17 00:00:00 2001 From: Ziyang Hu Date: Mon, 31 Oct 2022 18:13:53 +0800 Subject: [PATCH] use nbviewer for tutorial --- Cargo.toml | 2 +- README.md | 6 +++--- docs/source/setup.rst | 2 +- src/lib.rs | 7 ------- 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9112a963..2642b531 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "cozo" version = "0.1.1" edition = "2021" -description = "A general-purpose, transactional, relational database that uses Datalog and focuses on graph data" +description = "A general-purpose, transactional, relational database that uses Datalog and focuses on graph data and algorithms" authors = ["Ziyang Hu"] license = "AGPL-3.0-or-later" homepage = "https://github.com/cozodb/cozo" diff --git a/README.md b/README.md index 1829a21c..d8016d1b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ # `cozo` A general-purpose, transactional, relational database -that uses Datalog for query and focuses on graph data. +that uses Datalog for query and focuses on graph data and algorithms. ## Features @@ -60,7 +60,7 @@ starting[airport] := airport = 'FRA' ## Learning Cozo -* Start with the [Tutorial](https://cozodb.github.io/current/tutorial.html) to learn the basics; +* Start with the [Tutorial](https://nbviewer.org/github/cozodb/cozo/blob/main/docs/tutorial/tutorial.ipynb) to learn the basics; * Continue with the [Manual](https://cozodb.github.io/current/manual/) to understand the fine points. ## Bug reports, discussions @@ -103,7 +103,7 @@ in specific situations: Furthermore, the deterministic evaluation order makes identifying and solving performance problems easier. * Your data may be simple, even a single table, but it is inherently a graph. - * We have seen an example in the [Tutorial](https://cozodb.github.io/current/tutorial.html): + * We have seen an example in the [Tutorial](https://nbviewer.org/github/cozodb/cozo/blob/main/docs/tutorial/tutorial.ipynb): the air route dataset, where the key relation contains the routes connecting airports. * In traditional databases, when you are given a new relation, you try to understand it by running aggregations on it to collect statistics: diff --git a/docs/source/setup.rst b/docs/source/setup.rst index be7ab0b1..5dbed6ba 100644 --- a/docs/source/setup.rst +++ b/docs/source/setup.rst @@ -9,7 +9,7 @@ This manual touches upon all features currently implemented in Cozo, though the coverage of some topics may be sketchy at this stage. This manual assumes that you already know the basics of the Cozo database, -at the level of the `Tutorial `_. +at the level of the `Tutorial `_. ------------------------ Downloading Cozo diff --git a/src/lib.rs b/src/lib.rs index 23e7b0f7..ade915c8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,13 +14,6 @@ pub use miette::Error; pub use runtime::db::Db; -// #[cfg(not(target_env = "msvc"))] -// use tikv_jemallocator::Jemalloc; - -// #[cfg(not(target_env = "msvc"))] -// #[global_allocator] -// static GLOBAL: Jemalloc = Jemalloc; - pub(crate) mod algo; pub(crate) mod data; pub(crate) mod parse;