@@ -42,8 +42,7 @@ Database Management
4242
4343``` python
4444# List databases
45- a.databases[" user" ]
46- a.databases[" all" ]
45+ a.databases(user_only = True )
4746
4847# Create a new database
4948a.create_database(" my_db" )
@@ -105,17 +104,9 @@ my_db.delete_collection("my_col")
105104# Retrieve collection information
106105my_col = a.db(" my_db" ).col(" my_col" )
107106len (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()
119110
120111# Update collection properties (only the modifiable ones)
121112my_col.wait_for_sync = False
@@ -305,7 +296,7 @@ my_graph.create_edge_definition(
305296)
306297
307298# Retrieve graph information
308- my_graph.properties
299+ my_graph.properties()
309300my_graph.id
310301my_graph.revision
311302my_graph.edge_definitions
@@ -459,7 +450,7 @@ User Management
459450``` python
460451
461452# List all users
462- a.users
453+ a.list_users()
463454
464455# Create a new user
465456a.create_user(" username" , " password" )
@@ -485,13 +476,10 @@ a.get_log(level="debug")
485476a.reload_routing()
486477
487478# Return the server statistics
488- a.statistics
489-
490- # Return the server statistics description
491- a.statistics_description
479+ a.statistics()
492480
493481# Return the role of the server in the cluster (if applicable)
494- a.server_role
482+ a.role()
495483```
496484
497485Miscellaneous Functions
@@ -502,7 +490,7 @@ Miscellaneous Functions
502490a.version
503491
504492# Retrieve the required database version
505- a.database_version
493+ a.required_database
506494
507495# Retrieve the server time
508496a.server_time
0 commit comments