@onurege3467/zerohelper 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/test_db.sqlite +0 -0
- package/data/test_db_cached.sqlite +0 -0
- package/database/mysql.js +1 -1
- package/database/sqlite.js +1 -1
- package/package.json +1 -1
package/data/test_db.sqlite
CHANGED
|
Binary file
|
|
Binary file
|
package/database/mysql.js
CHANGED
|
@@ -80,7 +80,7 @@ class MySQLDatabase extends IDatabase{
|
|
|
80
80
|
|
|
81
81
|
async ensureTable(table, data = {}) {
|
|
82
82
|
return this._queueRequest(async () => {
|
|
83
|
-
|
|
83
|
+
|
|
84
84
|
|
|
85
85
|
const escapedTable = mysql.escape(table);
|
|
86
86
|
const tables = await this.query(`SHOW TABLES LIKE ${escapedTable}`);
|
package/database/sqlite.js
CHANGED
|
@@ -62,7 +62,7 @@ class SQLiteDatabase extends IDatabase{
|
|
|
62
62
|
* @param {object} data - Tablo oluşturulurken sütunları belirlemek için örnek veri.
|
|
63
63
|
*/
|
|
64
64
|
async ensureTable(table, data = {}) {
|
|
65
|
-
|
|
65
|
+
|
|
66
66
|
|
|
67
67
|
try {
|
|
68
68
|
await this.query(`SELECT 1 FROM \`${table}\` LIMIT 1`);
|