Overview
Comment: | update regexp to include uppercase letters |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f721596292856c2d47a6a81140edb04f |
User & Date: | arcade on 2018-10-28 13:32:16.302 |
Other Links: | branch diff | manifest | tags |
Context
2018-10-28
| ||
13:32 | update regexp to include uppercase letters Leaf check-in: f721596292 user: arcade tags: master, trunk | |
2018-06-01
| ||
10:35 | update script, multiple schemas, rust offloader check-in: b33171b487 user: arcade@b1t.name tags: master, trunk | |
Changes
Modified offload/src/main.rs
from [1e0198fa61]
to [f70755a4b3].
︙ | |||
14 15 16 17 18 19 20 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | - + | loop { let mut settings = config::Config::default(); settings.merge(config::File::with_name("offload")).expect("Can't read configuration file"); let reddb = redis::Client::open("redis://127.0.0.1/").expect("Can't connect to the database"); let red = reddb.get_connection().expect("Can't initialize new connection"); |
︙ | |||
37 38 39 40 41 42 43 | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | - + | //println!("# {:?}", stats); let trans = conn.transaction().expect("Can't start transaction"); let stmt = trans.prepare(&format!("select {}.merge_counter($1::text, $2::text, ($3::text)::inet, $4::smallint);", &schema)).expect("Can't prepare statement"); for (client, count) in stats { //println!("# {:?}: {:?}", &client, &count); |