mirror of
https://github.com/edu4rdshl/rusnapshot.git
synced 2026-07-17 23:24:55 +00:00
Indentation.
This commit is contained in:
parent
890666e9bc
commit
8f3c794631
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ pub fn return_all_data(connection: &Connection) -> Result<Vec<Database>> {
|
||||||
pub fn return_only_x_items(connection: &Connection, args: &Args) -> Result<Vec<Database>> {
|
pub fn return_only_x_items(connection: &Connection, args: &Args) -> Result<Vec<Database>> {
|
||||||
let mut snapshots_data: Vec<Database> = Vec::new();
|
let mut snapshots_data: Vec<Database> = Vec::new();
|
||||||
|
|
||||||
let mut statement = connection.prepare(&format!("SELECT name,snap_id,source,destination,date FROM (SELECT row_number() over(ORDER BY date DESC) n,* from snapshots WHERE name like '{}%') WHERE n > {}", args.snapshot_prefix, args.keep_only))?;
|
let mut statement = connection.prepare(&format!("SELECT name,snap_id,source,destination,date FROM (SELECT row_number() over(ORDER BY date DESC) n,* from snapshots WHERE name like '{}%') WHERE n > {}", args.snapshot_prefix, args.keep_only))?;
|
||||||
|
|
||||||
while let State::Row = statement.next()? {
|
while let State::Row = statement.next()? {
|
||||||
let mut db_struct = Database::default();
|
let mut db_struct = Database::default();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue