forgebase_sdk 0.0.2 copy "forgebase_sdk: ^0.0.2" to clipboard
forgebase_sdk: ^0.0.2 copied to clipboard

The Forgebase Dart/Flutter Client SDK

0.0.1 #

Initial release of the ForgeBase Dart/Flutter Client SDK

  • Basic database SDK functionality
  • Query builder implementation
  • Model system support
  • Dio-based HTTP client integration
  • Utility functions for database operations

0.0.2 #

ForgeBase SDK for Dart - Changes #

This document outlines the changes made to align the Dart SDK with the TypeScript version.

Added Features #

Authentication Support #

  • Added DatabaseSDK.withDio constructor to support custom Dio instances for authentication
  • Added getDio() method to access the Dio instance
  • Added setBaseUrl() method to change the API endpoint at runtime

Cache Configuration #

  • Added CacheConfig class for query caching
  • Added cache parameter to getRecords method
  • Implemented TTL, key, and tags for cache invalidation

Query Validation #

  • Added QueryValidation and ValidationRules classes
  • Added validation parameter to getRecords method
  • Implemented maxLimit, requiredFields, disallowedFields, and maxComplexity validation

Transform Implementation #

  • Enhanced _applyTransformations method to properly apply transformations
  • Implemented _groupResults and _pivotResults methods
  • Added detailed documentation for transform methods

Variable Arguments Support #

  • Updated select method to accept both list and variable arguments
  • Updated groupBy method to accept both list and variable arguments

Query Explanation #

  • Added ExplainFormat enum for EXPLAIN query results
  • Added explain method to QueryBuilder for query analysis

Error Handling #

  • Improved error handling with more detailed error messages
  • Added catch blocks for non-Dio exceptions

Documentation Improvements #

  • Added comprehensive examples for all new features
  • Updated README with new features and examples
  • Added detailed method documentation

Type Safety Improvements #

  • Made deleteRecord method generic to match TypeScript version
  • Fixed type issues in transformation methods

Other Improvements #

  • Added getParams() method to QueryBuilder
  • Enhanced method documentation with more examples
  • Improved code organization and readability
0
likes
150
points
30
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

The Forgebase Dart/Flutter Client SDK

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio, flutter, meta

More

Packages that depend on forgebase_sdk