Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

MEJS-v1.2.3

Compare
Choose a tag to compare
@MiaowFISH MiaowFISH released this 13 Mar 15:29
· 66 commits to main since this release
  1. 新增 SQLite 数据库操作.
   import { SQLiteDatabase } from './extensions/sqlite.js'
   let db = SQLiteDatabase.openOrCreateDatabase('/sdcard/DIC/hdic.db', null)
   let query = 'select sqlite_version() AS sqlite_version'
   let cursor = db.rawQuery(query, null)
   let sqliteVersion
   if (cursor.moveToNext()) {
     sqliteVersion = cursor.getString(0)
   }
   console.log(sqliteVersion)

其它方法:
update()
insert()
query()
rawQuery()
getPath()
getVersion()
delete()
...

其余未列出, 完整用法请查看文档: https://developer.android.google.cn/reference/android/database/sqlite/SQLiteDatabase?hl=zh-cn

What's Changed

  • SQLite by @Miaow233 in #4

Full Changelog: 1.2.2...1.2.3