This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Gautham Banasandra on 03/02/17. | |
// | |
#include <iostream> | |
#include <libcouchbase/couchbase.h> | |
#include <libcouchbase/n1ql.h> | |
static void end(lcb_t, const char *, lcb_error_t); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Gautham Banasandra on 13/02/17. | |
// | |
#include <iostream> | |
#include <libcouchbase/couchbase.h> | |
#include <libcouchbase/n1ql.h> | |
static void end(lcb_t, const char *, lcb_error_t); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by gautham on 04/05/17. | |
*/ | |
let process = require('process'); | |
function run(size) { | |
function generate_data(size) { | |
let data = []; | |
for (let i = 0; i < size; ++i) { | |
data.push(i); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// nested_iter.cpp | |
// libcb | |
// | |
// Created by Gautham Banasandra on 17/05/17. | |
// Copyright © 2017 Couchbase. All rights reserved. | |
// | |
#include <libcouchbase/couchbase.h> | |
#include <libcouchbase/n1ql.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
first query: "21st Amendment Brewery Cafe" | |
second query: "(512) Whiskey Barrel Aged Double Pecan Porter" | |
second query: "(512) Wit" | |
second query: "One" | |
second query: metadata { | |
"requestID": "04f2af25-ecd3-44d4-9db4-c763d3bd19fa", | |
"signature": { | |
"*": "*" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// User code | |
function query() { | |
for (var r of res) { | |
return r; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <ios> | |
#include <algorithm> | |
#include <string> | |
#define MAX_ALPHA 200 | |
char alphabets[MAX_ALPHA]; | |
typedef unsigned long long big_int; | |
bool Compare(char x, char y) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// pos_param.cpp | |
// libcb | |
// | |
// Created by Gautham Banasandra on 04/10/17. | |
// Copyright © 2017 Couchbase. All rights reserved. | |
// | |
#include <iostream> | |
#include <string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// auth-change | |
// | |
// Created by Gautham Banasandra on 07/12/17. | |
// Copyright © 2017 Couchbase. All rights reserved. | |
// | |
#include <chrono> | |
#include <fstream> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function OnUpdate(doc, meta) { | |
var abv = 2, | |
count = 0, | |
lim = 10; | |
var q = SELECT * FROM `beer-sample` | |
WHERE abv >: abv LIMIT: lim; | |
for (var row of q) { | |
var id = meta.id + (++count); | |
sample[id] = row; | |
} |
OlderNewer