Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
44b83aad
Commit
44b83aad
authored
Jun 09, 2020
by
Robert Czechowski
Browse files
License headers added to generated files
parent
31d73bc3
Pipeline
#676
passed with stages
in 15 minutes and 42 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/db_conn_postgres.rs
View file @
44b83aad
...
...
@@ -11,6 +11,20 @@
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* medal *\
* Copyright (C) 2020 Bundesweite Informatikwettbewerbe *
* *
* 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 *
\* <http://www.gnu.org/licenses/>. */
#![cfg(feature
=
"postgres"
)]
extern
crate
postgres
;
...
...
@@ -94,6 +108,20 @@ impl MedalObject<Connection> for Grade {
conn
.execute
(
query
,
&
[
&
self
.taskgroup
,
&
self
.user
,
&
self
.grade
,
&
self
.validated
])
.unwrap
();
}
}
/* medal *\
* Copyright (C) 2020 Bundesweite Informatikwettbewerbe *
* *
* 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 *
\* <http://www.gnu.org/licenses/>. */
impl
MedalObject
<
Connection
>
for
Participation
{
fn
save
(
&
mut
self
,
conn
:
&
Connection
)
{
let
query
=
"INSERT INTO participation (contest, session, start_date)
...
...
src/db_conn_sqlite_new.rs
View file @
44b83aad
...
...
@@ -11,6 +11,20 @@
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* medal *\
* Copyright (C) 2020 Bundesweite Informatikwettbewerbe *
* *
* 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 *
\* <http://www.gnu.org/licenses/>. */
#![cfg(feature
=
"rusqlite"
)]
extern
crate
rusqlite
;
...
...
@@ -94,6 +108,20 @@ impl MedalObject<Connection> for Grade {
conn
.execute
(
query
,
&
[
&
self
.taskgroup
,
&
self
.user
,
&
self
.grade
,
&
self
.validated
])
.unwrap
();
}
}
/* medal *\
* Copyright (C) 2020 Bundesweite Informatikwettbewerbe *
* *
* 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 *
\* <http://www.gnu.org/licenses/>. */
impl
MedalObject
<
Connection
>
for
Participation
{
fn
save
(
&
mut
self
,
conn
:
&
Connection
)
{
let
query
=
"INSERT INTO participation (contest, session, start_date)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment