Releases: tr1ckydev/great.db
Releases · tr1ckydev/great.db
great.db v3.0.0
v3.0.0 brings some big changes
New
- Now supports bun, deno and node.js using runtimey.
- Added
deleteTable()to delete tables from the database. - Added
pragma()->.get()/.set()to edit or fetch pragma values. - Added
getSqliteVersion()to fetch the version of SQLite being used by the underlying library. table#filter()now supports both fetching and deleting data.- New logos and artwork for the README.md.
Breaking
GreatDB.Type.Diskhas been renamed toGreatDB.Type.File.GreatDB.Type.Filerequiresfilenameproperty with name of database file along with the extension.table#get()now returns result ornullonly.table#set()now accepts multiple objects as parameter instead of an array of objects.table#fetch()now requires a paramter of"Select"or"Delete"instead of usingSelectby default.
Bugfixes
- Uses
join()fromnode:pathto join the paths improving compatibility innew GreatDB.Database.
great.db v2.3.0
- New
serialize,backupandclonefunctions forGreatDB.Database. Check out the docs to learn more about it. - Added new Type.Serialized to support opening of serialized database.
- Improved and simplified internal runtime detection.
- Updated docs for new api.
- Added tests for few functions. Can be run using
bun run test. - Bumped bun-types to
v0.2.2.
great.db v2.2.0
- Added executeQuery function to run SQL code directly. Learn more.
- Added new
patternfield to filter function to support SQLLIKE. - Database#close function is now asynchronous.
- Added a new live shell to execute SQL code in a shell based environment on an in-memory database (run
bun run shellto try it). - Internal refactor of type inference.
- Updated docs for the above changes.
great.db v2.1.0
great.db v2.0.0
v2 brings some big changes to great.db
- great.db now works both with node.js and bun using better-sqlite3 and bun:sqlite respectively
- Schemas now can only be created through DataType imported from great.db
- 3 new datatypes are added -
AutoIncrement,Buffer,Uint8Array - Typescript types are now automagically inferred from the schema created using DataType
- Some internal code refactors to maintain cross-compatibility between both libraries
- table#set() now also supports array of inputs
- Improved examples to support the new API
- Improved README.md, DOCUMENTATION.md
- Removed db readonly feature temporarily
- Bump bun-types to
0.1.11
great.db v1.0.0
Initial release.

