Initial commit

This commit is contained in:
2025-07-11 13:52:19 +00:00
commit e0c489f625
362 changed files with 27286 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
def create_database(db_name):
return f"CREATE DATABASE `{db_name}` IF NOT EXISTS"
def stop_database(db_name):
return f"STOP DATABASE `{db_name}`"
def drop_database(db_name):
return f"DROP DATABASE `{db_name}`"
show_constraints = "SHOW CONSTRAINTS"
show_indexes = "SHOW INDEXES"
def drop_index(index_name):
f"DROP INDEX {index_name}"
def drop_constraint(constraint_name):
f"DROP CONSTRAINT {constraint_name}"
delete_batch = """
MATCH (n)
WITH n LIMIT $batch_size
DETACH DELETE n
RETURN count(*)
"""