本文整理汇总了Python中arangodb.api.Database.remove方法的典型用法代码示例。如果您正苦于以下问题:Python Database.remove方法的具体用法?Python Database.remove怎么用?Python Database.remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类arangodb.api.Database
的用法示例。
在下文中一共展示了Database.remove方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_create_and_delete_database
# 需要导入模块: from arangodb.api import Database [as 别名]
# 或者: from arangodb.api.Database import remove [as 别名]
def test_create_and_delete_database(self):
database_name = 'test_foo_123'
db = Database.create(name=database_name)
self.assertIsNotNone(db)
Database.remove(name=database_name)
示例2: tearDown
# 需要导入模块: from arangodb.api import Database [as 别名]
# 或者: from arangodb.api.Database import remove [as 别名]
def tearDown(self):
# Delete index
self.geo_index.delete()
self.hash_index.delete()
self.fulltext_index.delete()
self.skiplist_index.delete()
# They need to be deleted
Collection.remove(name=self.test_1_col.name)
Database.remove(name=self.database_name)
示例3: tearDown
# 需要导入模块: from arangodb.api import Database [as 别名]
# 或者: from arangodb.api.Database import remove [as 别名]
def tearDown(self):
Database.remove(name=self.database_name)
示例4: tearDown
# 需要导入模块: from arangodb.api import Database [as 别名]
# 或者: from arangodb.api.Database import remove [as 别名]
def tearDown(self):
# They need to be deleted
Collection.remove(name=self.test_1_col.name)
Collection.remove(name=self.test_2_col.name)
Database.remove(name=self.database_name)
示例5: tearDown
# 需要导入模块: from arangodb.api import Database [as 别名]
# 或者: from arangodb.api.Database import remove [as 别名]
def tearDown(self):
Collection.remove(name=self.operating_collection)
Database.remove(name=self.database_name)
示例6: print
# 需要导入模块: from arangodb.api import Database [as 别名]
# 或者: from arangodb.api.Database import remove [as 别名]
all_aql_query.execute()
# Everything needs to be in one try-catch so we can clean up afterwards
try:
big_collection_name = 'big_collection'
big_collection = Collection.create(big_collection_name)
print('All tests are using either %s documents, edges or models' % document_number)
# Create first all documents
create_big_number_of_documents(big_collection)
# Get all documents normally
retrieve_normally_documents(big_collection)
# Get documents with simple query
retrieve_simply_documents(big_collection)
# Get documents with aql
retrieve_aql_documents(big_collection)
# Delete all documents
Collection.remove(big_collection_name)
except Exception as err:
print(err)
# Destroy at the end the database
Database.remove(database_name)
示例7: tearDown
# 需要导入模块: from arangodb.api import Database [as 别名]
# 或者: from arangodb.api.Database import remove [as 别名]
def tearDown(self):
Collection.remove(name=self.collection1_name)
Collection.remove(name=self.collection2_name)
Collection.remove(name=self.coll3_name)
Collection.remove(name=self.coll4_name)
Database.remove(name=self.database_name)