0
Developing with Couchbase          Server                            1
2
Easy to          2
Easy toEasy to Get              2
Easy to   Easy to Get(Building on) Open                     2
LANGUAGE           3
LANGUAGERuby, Java, PHP, C#, Python,                               3
LANGUAGERuby, Java, PHP, C#, Python,        More soon!                               3
SUPPORT ALL COUCHBASE 2.0                        4
SUPPORT ALL COUCHBASE 2.0      get, set, add, replace,                                4
SUPPORT ALL COUCHBASE 2.0      get, set, add, replace,         touch, gat, getl,                                4
SUPPORT ALL COUCHBASE 2.0      get, set, add, replace,         touch, gat, getl,              views                       ...
BEST PRACTICES ARE                     5
BEST PRACTICES ARE     Data Access                     5
BEST PRACTICES ARE     Data Access      Paginatio                     5
BEST PRACTICES ARE            Data Access             PaginatioAccess to Development and Production                       ...
THE SERVER             6
THE SERVER(BUCKETS AND VIEWS)                      6
THE DATA           7
THE DATA(PRESIDENTS AND U.S. EVENTS)                               7
THE VIEWS            8
THE VIEWS(PRESIDENT_NAMES, BY_STATE,                              8
QUICK RUBY EXAMPLE                     9
QUICK RUBY EXAMPLE (COUCHBASE GEM IN IRB)                          9
10
require couchbaserequire uuidDEFAULT_BUCKET_URL = http://localhost:8091/pools/defaultcouchbase = Couchbase.new(DEFAULT_BUC...
require couchbaserequire uuidDEFAULT_BUCKET_URL = http://localhost:8091/pools/defaultcouchbase = Couchbase.new(DEFAULT_BUC...
require couchbaserequire uuidDEFAULT_BUCKET_URL = http://localhost:8091/pools/defaultcouchbase = Couchbase.new(DEFAULT_BUC...
QUICK JAVA EXAMPLE                     11
QUICK JAVA EXAMPLE(SPYMEMCACHED IN GROOVYSH)                             11
CONNECTING TO THEimport net.spy.memcached.CouchbaseClientimport net.spy.memcached.protocol.couch.Queryimport java.util.Lin...
A QUERYquery = new Query()query.setReduce(false)view = couchbase.getView("design_doc", "president_names")future = couchbas...
QUICK PHP EXAMPLE                    14
QUICK PHP EXAMPLE(PHP-COUCHBASE IN PHPSH)                           14
include "Couchbase.php";$couchbase = new Couchbase;$couchbase->addCouchbaseServer("localhost");$view = $couchbase->getView...
GET STARTED!               16
GET STARTED!http://github.com/couchbaselabs/php-                                   16
GET STARTED!        gem install couchbasehttp://github.com/couchbaselabs/php-                                   16
GET STARTED!          gem install couchbasehttp://www.couchbase.org/code/couchbase/  http://github.com/couchbaselabs/php- ...
HTTP://          17
HTTP://Downloads            17
HTTP:// DownloadsGetting Started                  17
HTTP://  Downloads Getting StartedIn-Depth Tutorials                     17
HTTP://  Downloads Getting StartedIn-Depth Tutorials   Screencasts                     17
QUESTION           18
Upcoming SlideShare
Loading in...5
×

CouchConf-Bangalore-Developing-with-Couchbase

1,014

Published on

Published in: Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,014
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript of "CouchConf-Bangalore-Developing-with-Couchbase"

    1. 1. Developing with Couchbase Server 1
    2. 2. 2
    3. 3. Easy to 2
    4. 4. Easy toEasy to Get 2
    5. 5. Easy to Easy to Get(Building on) Open 2
    6. 6. LANGUAGE 3
    7. 7. LANGUAGERuby, Java, PHP, C#, Python, 3
    8. 8. LANGUAGERuby, Java, PHP, C#, Python, More soon! 3
    9. 9. SUPPORT ALL COUCHBASE 2.0 4
    10. 10. SUPPORT ALL COUCHBASE 2.0 get, set, add, replace, 4
    11. 11. SUPPORT ALL COUCHBASE 2.0 get, set, add, replace, touch, gat, getl, 4
    12. 12. SUPPORT ALL COUCHBASE 2.0 get, set, add, replace, touch, gat, getl, views 4
    13. 13. BEST PRACTICES ARE 5
    14. 14. BEST PRACTICES ARE Data Access 5
    15. 15. BEST PRACTICES ARE Data Access Paginatio 5
    16. 16. BEST PRACTICES ARE Data Access PaginatioAccess to Development and Production 5
    17. 17. THE SERVER 6
    18. 18. THE SERVER(BUCKETS AND VIEWS) 6
    19. 19. THE DATA 7
    20. 20. THE DATA(PRESIDENTS AND U.S. EVENTS) 7
    21. 21. THE VIEWS 8
    22. 22. THE VIEWS(PRESIDENT_NAMES, BY_STATE, 8
    23. 23. QUICK RUBY EXAMPLE 9
    24. 24. QUICK RUBY EXAMPLE (COUCHBASE GEM IN IRB) 9
    25. 25. 10
    26. 26. require couchbaserequire uuidDEFAULT_BUCKET_URL = http://localhost:8091/pools/defaultcouchbase = Couchbase.new(DEFAULT_BUCKET_URL) 10
    27. 27. require couchbaserequire uuidDEFAULT_BUCKET_URL = http://localhost:8091/pools/defaultcouchbase = Couchbase.new(DEFAULT_BUCKET_URL)design_doc = couchbase.design_docs[‘design_doc’]design_doc.views[‘president_names’, ‘president_events’, ‘by_party’, ‘by_state’] 10
    28. 28. require couchbaserequire uuidDEFAULT_BUCKET_URL = http://localhost:8091/pools/defaultcouchbase = Couchbase.new(DEFAULT_BUCKET_URL)design_doc = couchbase.design_docs[‘design_doc’]design_doc.views[‘president_names’, ‘president_events’, ‘by_party’, ‘by_state’]design_doc.president_names(:reduce => false).each { |doc| puts "#{doc[key]}: #{doc[value]}"} 10
    29. 29. QUICK JAVA EXAMPLE 11
    30. 30. QUICK JAVA EXAMPLE(SPYMEMCACHED IN GROOVYSH) 11
    31. 31. CONNECTING TO THEimport net.spy.memcached.CouchbaseClientimport net.spy.memcached.protocol.couch.Queryimport java.util.LinkedListSERVER_URI = "http://127.0.0.1:8091/pools"uris = new LinkedList()uris.add(URI.create(SERVER_URI))couchbase = new CouchbaseClient(uris, "default", "") 12
    32. 32. A QUERYquery = new Query()query.setReduce(false)view = couchbase.getView("design_doc", "president_names")future = couchbase.asyncQuery(view, query)viewResponse = future.get()iterator = viewResponse.iterator()while (iterator.hasNext()) { viewRow = iterator.next() println("Key: " + viewRow.key + ", Value:" + viewRow.value)} 13
    33. 33. QUICK PHP EXAMPLE 14
    34. 34. QUICK PHP EXAMPLE(PHP-COUCHBASE IN PHPSH) 14
    35. 35. include "Couchbase.php";$couchbase = new Couchbase;$couchbase->addCouchbaseServer("localhost");$view = $couchbase->getView("design_doc", "by_state");$result = $view->getResult();foreach($result AS $row) { echo $row->value;} 15
    36. 36. GET STARTED! 16
    37. 37. GET STARTED!http://github.com/couchbaselabs/php- 16
    38. 38. GET STARTED! gem install couchbasehttp://github.com/couchbaselabs/php- 16
    39. 39. GET STARTED! gem install couchbasehttp://www.couchbase.org/code/couchbase/ http://github.com/couchbaselabs/php- 16
    40. 40. HTTP:// 17
    41. 41. HTTP://Downloads 17
    42. 42. HTTP:// DownloadsGetting Started 17
    43. 43. HTTP:// Downloads Getting StartedIn-Depth Tutorials 17
    44. 44. HTTP:// Downloads Getting StartedIn-Depth Tutorials Screencasts 17
    45. 45. QUESTION 18
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×