当前位置: 首页>>代码示例>>Python>>正文


Python Database.remove方法代码示例

本文整理汇总了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)
开发者ID:garym,项目名称:ArangoPy,代码行数:11,代码来源:tests.py

示例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)
开发者ID:garym,项目名称:ArangoPy,代码行数:13,代码来源:tests.py

示例3: tearDown

# 需要导入模块: from arangodb.api import Database [as 别名]
# 或者: from arangodb.api.Database import remove [as 别名]
 def tearDown(self):
     Database.remove(name=self.database_name)
开发者ID:morsdatum,项目名称:ArangoPy,代码行数:4,代码来源:model.py

示例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)
开发者ID:saeschdivara,项目名称:ArangoPy,代码行数:8,代码来源:escaping.py

示例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)
开发者ID:morsdatum,项目名称:ArangoPy,代码行数:5,代码来源:transaction.py

示例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)
开发者ID:morsdatum,项目名称:ArangoPy,代码行数:32,代码来源:arangopy-speed-tests.py

示例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)
开发者ID:morsdatum,项目名称:ArangoPy,代码行数:8,代码来源:integerdoc.py


注:本文中的arangodb.api.Database.remove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。