cancel
Showing results for 
Search instead for 
Did you mean: 

Create and drop database from python app

Amal
Node

Hello everyone
I want to create/drop a database from my python app. How can I do it?
I tried the following but it fails to do.

with driver.session(database='system') as session_1:
    t_1 = session_1.begin_transaction()
    result = t_1.run('''CREATE DATABASE myname''')
0 REPLIES 0
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.