@@ -550,6 +550,23 @@ of the current context for "commits" "meta" "branch" and "ref" special resources
550
550
const branch_resource = client .resource (" branch" )
551
551
` ` `
552
552
553
+ ## module_WOQLClient..WOQLClient+updateDatabase
554
+ ##### woqlClient.updateDatabase(dbId, dbDetails, [orgId]) ⇒ <code>Promise</code>
555
+ Update a database in TerminusDB server
556
+
557
+ **Returns**: <code>Promise</code> - A promise that returns the call response object, or an Error if rejected.
558
+
559
+ | Param | Type | Description |
560
+ | --- | --- | --- |
561
+ | dbId | <code>string</code> | The id of the database to be updated |
562
+ | dbDetails | <code>typedef.DbDetails</code> | object containing details about the database to be updated |
563
+ | [orgId] | <code>string</code> | optional organization id - if absent default local organization id is used |
564
+
565
+ **Example**
566
+ ` ` ` javascript
567
+ client .updateDatabase ({id: " mydb" , label: " My Database" , comment: " Testing" })
568
+ ` ` `
569
+
553
570
## module_WOQLClient..WOQLClient+insertTriples
554
571
##### woqlClient.insertTriples(graphType, turtle, commitMsg) ⇒ <code>Promise</code>
555
572
Appends the passed turtle to the contents of a graph
@@ -702,17 +719,6 @@ Adds an author string (from the user object returned by connect) to the commit m
702
719
| [rc_args] | <code>object</code> |
703
720
704
721
705
- ## module_WOQLClient..WOQLClient+updateDatabase
706
- ##### woqlClient.updateDatabase(dbDoc) ⇒ <code>Promise</code>
707
- update the database details
708
-
709
- **Returns**: <code>Promise</code> - A promise that returns the call response object, or an Error if rejected.
710
-
711
- | Param | Type | Description |
712
- | --- | --- | --- |
713
- | dbDoc | <code>object</code> | an object that describe the database details |
714
-
715
-
716
722
## module_WOQLClient..WOQLClient+addDocument
717
723
##### woqlClient.addDocument(json, [params], [dbId], [string], [lastDataVersion], [getDataVersion]) ⇒ <code>Promise</code>
718
724
to add a new document or a list of new documents into the instance or the schema graph.
0 commit comments