<commit_before><commit_msg>Sync upsert example<commit_after>extern crate gauc;
extern crate env_logger;

use gauc::client::*;

fn main() {
    env_logger::init().unwrap();

    let mut client = Client::new("couchbase://korczis.com/default");

    let res = client.upsert_sync("hello_world_upsert_sync", "{{\"msg\": \"This is sync upsert!\"}}");
    println!("{:?}", res);

    let res = client.get_sync("hello_world_upsert_sync");
    println!("{:?}", res);
}
{'fraction_non_alphanumeric': 0.20043572984749455, 'fraction_numerical': 0.0, 'mean_word_length': 4.974025974025974, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5918648', 'n_tokens_mistral': 163, 'n_tokens_neox': 159, 'n_words': 32}