Added some test code to see what is happening under the hood
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
0348df3c60
commit
a086277c3a
|
@ -1,4 +1,5 @@
|
|||
use rusqlite::Connection;
|
||||
use std::error::Error;
|
||||
|
||||
use application::configuration::VcsType;
|
||||
use application::register_current::models::Current;
|
||||
|
@ -66,12 +67,13 @@ pub fn insert_current(name: String, version: String, vcs_type: String, connectio
|
|||
}
|
||||
|
||||
pub fn insert_origin(name: String, url: String, vcs_type: String, connection: &Connection) {
|
||||
connection
|
||||
.execute(
|
||||
"INSERT INTO Origins (name, url, vcs_type) VALUES(?1, ?2, ?3)",
|
||||
[&name, &url, &vcs_type],
|
||||
)
|
||||
.unwrap();
|
||||
match connection.execute(
|
||||
"INSERT INTO Origins (name, url, vcs_type) VALUES(?1, ?2, ?3)",
|
||||
[&name, &url, &vcs_type],
|
||||
) {
|
||||
Ok(x) => println!("good"),
|
||||
Err(e) => println!("{}", e),
|
||||
};
|
||||
}
|
||||
|
||||
pub mod database {
|
||||
|
|
Loading…
Reference in New Issue