@@ -42,8 +42,7 @@ Database Management
42
42
43
43
``` python
44
44
# List databases
45
- a.databases[" user" ]
46
- a.databases[" all" ]
45
+ a.databases(user_only = True )
47
46
48
47
# Create a new database
49
48
a.create_database(" my_db" )
@@ -105,17 +104,9 @@ my_db.delete_collection("my_col")
105
104
# Retrieve collection information
106
105
my_col = a.db(" my_db" ).col(" my_col" )
107
106
len (my_col)
108
- my_col.properties
109
- my_col.id
110
- my_col.status
111
- my_col.key_options
112
- my_col.wait_for_sync
113
- my_col.journal_size
114
- my_col.is_system
115
- my_col.is_edge
116
- my_col.is_compacted
117
- my_col.statistics
118
- my_col.revision
107
+ my_col.properties()
108
+ my_col.statistics()
109
+ my_col.revision()
119
110
120
111
# Update collection properties (only the modifiable ones)
121
112
my_col.wait_for_sync = False
@@ -305,7 +296,7 @@ my_graph.create_edge_definition(
305
296
)
306
297
307
298
# Retrieve graph information
308
- my_graph.properties
299
+ my_graph.properties()
309
300
my_graph.id
310
301
my_graph.revision
311
302
my_graph.edge_definitions
@@ -459,7 +450,7 @@ User Management
459
450
``` python
460
451
461
452
# List all users
462
- a.users
453
+ a.list_users()
463
454
464
455
# Create a new user
465
456
a.create_user(" username" , " password" )
@@ -485,13 +476,10 @@ a.get_log(level="debug")
485
476
a.reload_routing()
486
477
487
478
# Return the server statistics
488
- a.statistics
489
-
490
- # Return the server statistics description
491
- a.statistics_description
479
+ a.statistics()
492
480
493
481
# Return the role of the server in the cluster (if applicable)
494
- a.server_role
482
+ a.role()
495
483
```
496
484
497
485
Miscellaneous Functions
@@ -502,7 +490,7 @@ Miscellaneous Functions
502
490
a.version
503
491
504
492
# Retrieve the required database version
505
- a.database_version
493
+ a.required_database
506
494
507
495
# Retrieve the server time
508
496
a.server_time
0 commit comments