change LICENSE to MPL-2.0

main
Ziyang Hu 2 years ago
parent 12d2806fd2
commit deb360ae43

@ -4,7 +4,7 @@ version = "0.1.5"
edition = "2021"
description = "A general-purpose, transactional, relational database that uses Datalog and focuses on graph data and algorithms"
authors = ["Ziyang Hu"]
license = "LGPL-3.0-or-later"
license = "MPL-2.0"
homepage = "https://github.com/cozodb/cozo"
repository = "https://github.com/cozodb/cozo"
documentation = "https://cozodb.github.io/current/manual"

@ -425,5 +425,5 @@ We manually wrote the C++/Rust bindings for RocksDB with [cxx](https://cxx.rs/).
## Licensing
The contents of this project are licensed under LGPL-3.0 or later, except
The contents of this project are licensed under MPL-2.0 or later, except
files under `cozorocks/`, which are licensed under MIT, or Apache-2.0, or BSD-3-Clause.

@ -2,7 +2,7 @@
name = "cozo_c"
version = "0.1.3"
edition = "2021"
license = "AGPL-3.0-or-later"
license = "MPL-2.0"
homepage = "https://github.com/cozodb/cozo"
repository = "https://github.com/cozodb/cozo"
documentation = "https://cozodb.github.io/current/manual"

@ -2,7 +2,7 @@
name = "cozo_java"
version = "0.1.3"
edition = "2021"
license = "AGPL-3.0-or-later"
license = "MPL-2.0"
homepage = "https://github.com/cozodb/cozo"
repository = "https://github.com/cozodb/cozo"
documentation = "https://cozodb.github.io/current/manual"

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::cmp::Reverse;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::cmp::Reverse;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::{BTreeMap, BTreeSet, VecDeque};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::{BTreeMap, BTreeSet};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::cmp::Reverse;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::{BTreeMap, BTreeSet};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::cmp::Reverse;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::cmp::{Ordering, Reverse};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::cmp::min;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::{BTreeMap, BTreeSet};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::{BTreeMap, BTreeSet};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::fmt::Debug;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
script = _{sys_script | multi_script | query_script}

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::{BTreeMap, BTreeSet};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::cmp::{max, min};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeSet;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use serde_json::json;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeSet;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
pub(crate) mod json;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::btree_map::Entry;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::fmt::{Display, Formatter};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::cmp::Ordering;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use approx::AbsDiffEq;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use approx::AbsDiffEq;
@ -1325,7 +1325,10 @@ fn test_uuid() {
assert!(op_is_uuid(&[v4]).unwrap().get_bool().unwrap());
assert!(op_uuid_timestamp(&[v1]).unwrap().get_float().is_some());
assert!(op_to_uuid(&[DataValue::Str(SmartString::from(""))]).is_err());
assert!(op_to_uuid(&[DataValue::Str(SmartString::from("f3b4958c-52a1-11e7-802a-010203040506"))]).is_ok());
assert!(op_to_uuid(&[DataValue::Str(SmartString::from(
"f3b4958c-52a1-11e7-802a-010203040506"
))])
.is_ok());
}
#[test]
@ -1335,3 +1338,8 @@ fn test_now() {
let s = op_format_timestamp(&[now]).unwrap();
let _dt = op_parse_timestamp(&[s]).unwrap();
}
#[test]
fn test_to_bool() {
todo!()
}

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
mod functions;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::fmt::{Debug, Formatter};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::cmp::Ordering;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
//! This crate provides the core functionalities of [CozoDB](https://github.com/cozodb/cozo).

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::cmp::{max, min};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::btree_map::Entry;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeSet;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::{BTreeMap, BTreeSet};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::{BTreeMap, BTreeSet};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::{BTreeMap, BTreeSet};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeSet;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeSet;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
pub(crate) mod compile;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::{BTreeMap, BTreeSet};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeSet;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::cmp::Ordering;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::btree_map::Entry;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::collections::BTreeMap;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::borrow::BorrowMut;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
pub(crate) mod db;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::fmt::{Debug, Display, Formatter};

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
use std::sync::Arc;

@ -1,5 +1,5 @@
/*
* Copyright 2022, The Cozo Project Authors. Licensed under AGPL-3 or later.
* Copyright 2022, The Cozo Project Authors. Licensed under MPL-2.0.
*/
#[inline(always)]

Loading…
Cancel
Save