summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-01-13 08:31:24 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-01-13 15:09:01 +0100
commitcbb1457d62e60e6860320951e08b24b2c1b4d4c8 (patch)
tree1e23030f76a5eff1aaeedfd89de0bc6d55472963 /src/db
parent1c02cf5fa44f4813c919b8d7bca1d8b80af4046b (diff)
Add LICENSE file and license headers
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/db')
-rw-r--r--src/db/connection.rs10
-rw-r--r--src/db/mod.rs10
-rw-r--r--src/db/models/artifact.rs10
-rw-r--r--src/db/models/endpoint.rs10
-rw-r--r--src/db/models/envvar.rs10
-rw-r--r--src/db/models/githash.rs10
-rw-r--r--src/db/models/image.rs10
-rw-r--r--src/db/models/job.rs10
-rw-r--r--src/db/models/job_env.rs10
-rw-r--r--src/db/models/mod.rs10
-rw-r--r--src/db/models/package.rs10
-rw-r--r--src/db/models/submit.rs10
12 files changed, 120 insertions, 0 deletions
diff --git a/src/db/connection.rs b/src/db/connection.rs
index 98c24ce..ae1422d 100644
--- a/src/db/connection.rs
+++ b/src/db/connection.rs
@@ -1,3 +1,13 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
use anyhow::Error;
use anyhow::Result;
use clap::ArgMatches;
diff --git a/src/db/mod.rs b/src/db/mod.rs
index 8134951..961a547 100644
--- a/src/db/mod.rs
+++ b/src/db/mod.rs
@@ -1,3 +1,13 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
mod connection;
pub use connection::*;
diff --git a/src/db/models/artifact.rs b/src/db/models/artifact.rs
index 4faf7c4..01de301 100644
--- a/src/db/models/artifact.rs
+++ b/src/db/models/artifact.rs
@@ -1,3 +1,13 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
use std::path::PathBuf;
use crate::filestore::path::ArtifactPath;
diff --git a/src/db/models/endpoint.rs b/src/db/models/endpoint.rs
index d81fbfd..9c0e090 100644
--- a/src/db/models/endpoint.rs
+++ b/src/db/models/endpoint.rs
@@ -1,3 +1,13 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
use anyhow::Error;
use anyhow::Result;
use diesel::PgConnection;
diff --git a/src/db/models/envvar.rs b/src/db/models/envvar.rs
index 7e5ac7d..c1c6437 100644
--- a/src/db/models/envvar.rs
+++ b/src/db/models/envvar.rs
@@ -1,3 +1,13 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
use anyhow::Error;
use anyhow::Result;
use diesel::PgConnection;
diff --git a/src/db/models/githash.rs b/src/db/models/githash.rs
index df7937c..7415c88 100644
--- a/src/db/models/githash.rs
+++ b/src/db/models/githash.rs
@@ -1,3 +1,13 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
use anyhow::Error;
use anyhow::Result;
use diesel::PgConnection;
diff --git a/src/db/models/image.rs b/src/db/models/image.rs
index 5032039..2295187 100644
--- a/src/db/models/image.rs
+++ b/src/db/models/image.rs
@@ -1,3 +1,13 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
use anyhow::Error;
use anyhow::Result;
use diesel::PgConnection;
diff --git a/src/db/models/job.rs b/src/db/models/job.rs
index d1cbd3a..070e830 100644
--- a/src/db/models/job.rs
+++ b/src/db/models/job.rs
@@ -1,3 +1,13 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
use anyhow::Error;
use anyhow::Result;
use diesel::PgConnection;
diff --git a/src/db/models/job_env.rs b/src/db/models/job_env.rs
index f2c5fb1..1fa6c03 100644
--- a/src/db/models/job_env.rs
+++ b/src/db/models/job_env.rs
@@ -1,3 +1,13 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
use anyhow::Result;
use diesel::PgConnection;
use diesel::prelude::*;
diff --git a/src/db/models/mod.rs b/src/db/models/mod.rs
index 8e1eb8e..cd7aa72 100644
--- a/src/db/models/mod.rs
+++ b/src/db/models/mod.rs
@@ -1,3 +1,13 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
mod artifact;
pub use artifact::*;
diff --git a/src/db/models/package.rs b/src/db/models/package.rs
index 328efcc..a1fd01b 100644
--- a/src/db/models/package.rs
+++ b/src/db/models/package.rs
@@ -1,3 +1,13 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
use std::ops::Deref;
use anyhow::Error;
diff --git a/src/db/models/submit.rs b/src/db/models/submit.rs
index 731012a..e6bc8af 100644
--- a/src/db/models/submit.rs
+++ b/src/db/models/submit.rs
@@ -1,3 +1,13 @@
+//
+// Copyright (c) 2020-2021 science+computing ag and other contributors
+//
+// This program and the accompanying materials are made
+// available under the terms of the Eclipse Public License 2.0
+// which is available at https://www.eclipse.org/legal/epl-2.0/
+//
+// SPDX-License-Identifier: EPL-2.0
+//
+
use anyhow::anyhow;
use anyhow::Context;
use anyhow::Error;