database.limits
- 类型:<Object>
用于在运行时获取和设置 SQLite 数据库限制的对象。每个属性对应一个 SQLite 限制,可以读取或写入。
🌐 An object for getting and setting SQLite database limits at runtime. Each property corresponds to an SQLite limit and can be read or written.
const db = new DatabaseSync(':memory:');
// Read current limit
console.log(db.limits.length);
// Set a new limit
db.limits.sqlLength = 100000;
// Reset a limit to its compile-time maximum
db.limits.sqlLength = Infinity; 可用属性:length、sqlLength、column、exprDepth、compoundSelect、vdbeOp、functionArg、attach、likePatternLength、variableNumber、triggerDepth。
🌐 Available properties: length, sqlLength, column, exprDepth,
compoundSelect, vdbeOp, functionArg, attach, likePatternLength,
variableNumber, triggerDepth.
将属性设置为 Infinity 会将限制重置为其编译时的最大值。
🌐 Setting a property to Infinity resets the limit to its compile-time maximum value.