[英]How do I disable automatic class creation in OrientDB?
How do I disable automatic class creation in OrientDB? 如何禁用OrientDB中的自动类创建? I mean, suppose I create an edge like this:
我的意思是,假设我创建了一个这样的边:
sourceVertex.addEdge("PointsTo", targetVertex);
OrientDB will create a class PointsTo
if it not already exists. OrientDB将创建一个类
PointsTo
如果不是已经存在。 Is it possible to configure OrientDB to throw an exception when a non-existent class is given? 当给出不存在的类时,是否可以配置OrientDB引发异常?
Execute this SQL command against OrientDB database: 针对OrientDB数据库执行以下SQL命令:
alter database custom useClassForEdgeLabel=false
For more information look at OrientDB Documentation . 有关更多信息,请参见OrientDB文档 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.