From ae08828ac408f4e42515f8a412d0bbe3257db26b Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sat, 19 Feb 2022 13:34:43 +0530 Subject: [PATCH] chore: add license header --- database/db-core/src/errors.rs | 16 ++++++++++++++++ database/db-core/src/lib.rs | 16 ++++++++++++++++ database/db-core/src/ops.rs | 16 ++++++++++++++++ database/db-core/src/tests.rs | 16 ++++++++++++++++ database/db-sqlx-postgres/src/errors.rs | 16 ++++++++++++++++ database/db-sqlx-postgres/src/lib.rs | 16 ++++++++++++++++ database/db-sqlx-postgres/src/tests.rs | 16 ++++++++++++++++ database/db-sqlx-sqlite/src/errors.rs | 16 ++++++++++++++++ database/db-sqlx-sqlite/src/lib.rs | 16 ++++++++++++++++ database/db-sqlx-sqlite/src/tests.rs | 16 ++++++++++++++++ 10 files changed, 160 insertions(+) diff --git a/database/db-core/src/errors.rs b/database/db-core/src/errors.rs index 955d064..bc269d1 100644 --- a/database/db-core/src/errors.rs +++ b/database/db-core/src/errors.rs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ //! represents all the ways a trait can fail using this crate use std::error::Error as StdError; diff --git a/database/db-core/src/lib.rs b/database/db-core/src/lib.rs index b3d428b..6e28297 100644 --- a/database/db-core/src/lib.rs +++ b/database/db-core/src/lib.rs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ #![warn(missing_docs)] //! # `gists` database operations //! diff --git a/database/db-core/src/ops.rs b/database/db-core/src/ops.rs index 4a807a0..635f343 100644 --- a/database/db-core/src/ops.rs +++ b/database/db-core/src/ops.rs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ //! meta operations like migration and connecting to a database use crate::dev::*; diff --git a/database/db-core/src/tests.rs b/database/db-core/src/tests.rs index d26d440..03745a0 100644 --- a/database/db-core/src/tests.rs +++ b/database/db-core/src/tests.rs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ //! Test utilities use crate::prelude::*; diff --git a/database/db-sqlx-postgres/src/errors.rs b/database/db-sqlx-postgres/src/errors.rs index e2000f2..307ea0d 100644 --- a/database/db-sqlx-postgres/src/errors.rs +++ b/database/db-sqlx-postgres/src/errors.rs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ //! Error-handling utilities use std::borrow::Cow; diff --git a/database/db-sqlx-postgres/src/lib.rs b/database/db-sqlx-postgres/src/lib.rs index 044d8a1..8991f16 100644 --- a/database/db-sqlx-postgres/src/lib.rs +++ b/database/db-sqlx-postgres/src/lib.rs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ #![deny(missing_docs)] //! # `libadmin` database operations implemented using sqlx postgres //! diff --git a/database/db-sqlx-postgres/src/tests.rs b/database/db-sqlx-postgres/src/tests.rs index 95bd05a..c93e1c5 100644 --- a/database/db-sqlx-postgres/src/tests.rs +++ b/database/db-sqlx-postgres/src/tests.rs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use sqlx::postgres::PgPoolOptions; use std::env; diff --git a/database/db-sqlx-sqlite/src/errors.rs b/database/db-sqlx-sqlite/src/errors.rs index b0b1128..76ccb6c 100644 --- a/database/db-sqlx-sqlite/src/errors.rs +++ b/database/db-sqlx-sqlite/src/errors.rs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use std::borrow::Cow; use db_core::dev::*; diff --git a/database/db-sqlx-sqlite/src/lib.rs b/database/db-sqlx-sqlite/src/lib.rs index 3a67d79..42fe23e 100644 --- a/database/db-sqlx-sqlite/src/lib.rs +++ b/database/db-sqlx-sqlite/src/lib.rs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use db_core::dev::*; use std::str::FromStr; diff --git a/database/db-sqlx-sqlite/src/tests.rs b/database/db-sqlx-sqlite/src/tests.rs index caf7568..a36b45d 100644 --- a/database/db-sqlx-sqlite/src/tests.rs +++ b/database/db-sqlx-sqlite/src/tests.rs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use sqlx::sqlite::SqlitePoolOptions; use std::env;