x2 New DB options:
autoCleanupOnClose:
Automatically cleans up expired keys when the database is closed (default: false)
autoCloseOnExit:
Automatically closes the database when the process exits (default: true).
const db = new MiftahDB("database.db", {
journalMode: "DELETE",
synchronousMode: "FULL",
tempStoreMode: "FILE",
cacheSize: -128000,
mmapSize: 50000000000,
lockingMode: "EXCLUSIVE",
autoVacuumMode: "INCREMENTAL",
// New Options 🔽
// default: false
autoCleanupOnClose: true,
// default: true
autoCloseOnExit: true,
});
صارت الداتا بيس تغلق تلقائي بس البروسيس يوقف او يطلع بدون ما تسوي close بنفسك
https://github.com/miftahDB/miftahdb
autoCleanupOnClose:
Automatically cleans up expired keys when the database is closed (default: false)
autoCloseOnExit:
Automatically closes the database when the process exits (default: true).
const db = new MiftahDB("database.db", {
journalMode: "DELETE",
synchronousMode: "FULL",
tempStoreMode: "FILE",
cacheSize: -128000,
mmapSize: 50000000000,
lockingMode: "EXCLUSIVE",
autoVacuumMode: "INCREMENTAL",
// New Options 🔽
// default: false
autoCleanupOnClose: true,
// default: true
autoCloseOnExit: true,
});
صارت الداتا بيس تغلق تلقائي بس البروسيس يوقف او يطلع بدون ما تسوي close بنفسك
https://github.com/miftahDB/miftahdb