database.limits


新增于: v25.8.0

用于在运行时获取和设置 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; 

可用属性:lengthsqlLengthcolumnexprDepthcompoundSelectvdbeOpfunctionArgattachlikePatternLengthvariableNumbertriggerDepth

🌐 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.

AltStyle によって変換されたページ (->オリジナル) /