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
fa2e829c
Commit
fa2e829c
authored
Feb 28, 2020
by
Robert Czechowski
Browse files
Remove old sqlite database provider
parent
a19e113e
Pipeline
#442
passed with stages
Changes
6
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Cargo.toml
View file @
fa2e829c
...
...
@@ -11,12 +11,10 @@ license = "AGPL-3.0-or-later"
maintenance
=
{
status
=
"active-developed"
}
[features]
rusqlite_old
=
["rusqlite"]
rusqlite_new
=
["rusqlite"]
default
=
["rusqlite_new"]
complete
=
[
"rusqlite_new"
,
"postgres"
,
"webbrowser"
]
server
=
[
"rusqlite_new"
,
"postgres"
]
desktop
=
[
"rusqlite_new"
,
"webbrowser"
]
default
=
["rusqlite"]
complete
=
[
"rusqlite"
,
"postgres"
,
"webbrowser"
]
server
=
[
"rusqlite"
,
"postgres"
]
desktop
=
[
"rusqlite"
,
"webbrowser"
]
watch
=
["handlebars-iron/watch"]
strict
=
[]
# Treat warnings as a build error
debug
=
[]
...
...
src/db_conn_postgres.rs
View file @
fa2e829c
...
...
@@ -1182,7 +1182,8 @@ impl MedalConnection for Connection {
'teachers': {},
'participations': {},
'submissions': {}
}}"
,
}}
"
,
now
.sec
,
n_asession
,
n_apart
,
n_session
,
n_user
,
n_pmsuser
,
n_teacher
,
n_part
,
n_sub
)
}
...
...
src/db_conn_sqlite.rs
deleted
100644 → 0
View file @
a19e113e
This diff is collapsed.
Click to expand it.
src/db_conn_sqlite_new.header.rs
View file @
fa2e829c
#![cfg(feature
=
"rusqlite
_new
"
)]
#![cfg(feature
=
"rusqlite"
)]
extern
crate
rusqlite
;
...
...
src/db_conn_sqlite_new.rs
View file @
fa2e829c
...
...
@@ -11,7 +11,7 @@
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#![cfg(feature
=
"rusqlite
_new
"
)]
#![cfg(feature
=
"rusqlite"
)]
extern
crate
rusqlite
;
...
...
@@ -1182,7 +1182,8 @@ impl MedalConnection for Connection {
'teachers': {},
'participations': {},
'submissions': {}
}}"
,
}}
"
,
now
.sec
,
n_asession
,
n_apart
,
n_session
,
n_user
,
n_pmsuser
,
n_teacher
,
n_part
,
n_sub
)
}
...
...
src/main.rs
View file @
fa2e829c
...
...
@@ -23,9 +23,7 @@ extern crate urlencoded;
#[cfg(feature
=
"postgres"
)]
extern
crate
postgres
;
#[cfg(feature
=
"rusqlite_old"
)]
extern
crate
rusqlite
;
#[cfg(feature
=
"rusqlite_new"
)]
#[cfg(feature
=
"rusqlite"
)]
extern
crate
rusqlite
;
#[cfg(feature
=
"webbrowser"
)]
extern
crate
webbrowser
;
...
...
@@ -39,7 +37,6 @@ pub mod oauth_provider;
mod
db_apply_migrations
;
mod
db_conn_postgres
;
mod
db_conn_sqlite
;
mod
db_conn_sqlite_new
;
mod
db_objects
;
mod
webfw_iron
;
...
...
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