Couchbase help

12 views
Skip to first unread message

Anderson Scherdovski

unread,
Dec 11, 2017, 1:40:52 PM12/11/17
to Couchbase Mobile


Do I must create for each table a new database or a new document?
Message has been deleted

James Nocentini

unread,
Dec 11, 2017, 1:51:37 PM12/11/17
to Couchbase Mobile

Anderson Scherdovski

unread,
Dec 11, 2017, 2:12:03 PM12/11/17
to Couchbase Mobile
More like saving more data if I do this, does it overwrite the already saved data? 
Map<String, Object> properties = new HashMap<String, Object>(); properties.put("title", "Little, Big"); properties.put("author", "John Crowley"); properties.put("published", 1982); Document document = database.getDocument("978-0061120053"); try { document.putProperties(properties); } catch (CouchbaseLiteException e) { Log.e(TAG, "Cannot save document", e); }

James Nocentini

unread,
Dec 11, 2017, 2:47:46 PM12/11/17
to Couchbase Mobile

Anderson Scherdovski

unread,
Dec 12, 2017, 5:40:15 AM12/12/17
to Couchbase Mobile
thank you!!
Reply all
Reply to author
Forward
0 new messages