Skip to content

great.db v3.0.0

Latest
Compare
Choose a tag to compare
@tr1ckydev tr1ckydev released this 04 Jul 12:01

multiruntime

v3.0.0 brings some big changes

New

  1. Now supports bun, deno and node.js using runtimey.
  2. Added deleteTable() to delete tables from the database.
  3. Added pragma() -> .get()/.set() to edit or fetch pragma values.
  4. Added getSqliteVersion() to fetch the version of SQLite being used by the underlying library.
  5. table#filter() now supports both fetching and deleting data.
  6. New logos and artwork for the README.md.

Breaking

  1. GreatDB.Type.Disk has been renamed to GreatDB.Type.File.
  2. GreatDB.Type.File requires filename property with name of database file along with the extension.
  3. table#get() now returns result or null only.
  4. table#set() now accepts multiple objects as parameter instead of an array of objects.
  5. table#fetch() now requires a paramter of "Select" or "Delete" instead of using Select by default.

Bugfixes

  1. Uses join() from node:path to join the paths improving compatibility in new GreatDB.Database.