// Use this skill when working with the SurrealDartB package in Dart/Flutter projects. This includes creating embedded SurrealDB databases, performing CRUD operations, managing schemas with code generation, working with vector embeddings for AI/ML applications, building type-safe queries with ORM features, and handling migrations. Invoke when user mentions SurrealDB, embedded databases, vector search, semantic similarity, or asks to implement database features in Dart/Flutter.
| name | surrealdartb |
| description | Use this skill when working with the SurrealDartB package in Dart/Flutter projects. This includes creating embedded SurrealDB databases, performing CRUD operations, managing schemas with code generation, working with vector embeddings for AI/ML applications, building type-safe queries with ORM features, and handling migrations. Invoke when user mentions SurrealDB, embedded databases, vector search, semantic similarity, or asks to implement database features in Dart/Flutter. |
SurrealDartB is a Dart package providing embedded SurrealDB capabilities with comprehensive ORM, code generation, and AI/ML vector search features. The package enables local-first database applications with ACID transactions, schema migrations, and production-ready vector similarity search.
Package Location: lib/
Test Location: test/
Examples: example/scenarios/
Invoke this skill when:
Reference: references/connection-crud.md
Basic database lifecycle and CRUD operations including connection management, storage backends (memory/RocksDB), and core query methods.
Reference: references/schema-tables.md
TableStructure system, FieldDefinition, SurrealDB type system, and schema validation.
Reference: references/vectors.md
Vector data types (F32/F64/I8/I16/I32/I64), indexing (HNSW/M-Tree/FLAT), similarity search, and distance metrics for AI/ML applications.
Reference: references/orm-where.md
WhereCondition system, field builders, and type-safe query construction.
Reference: references/migrations.md
Migration engine, introspection, DDL generation, and migration safety.
Reference: references/orm-relationships.md
Graph relations, edges, includes, FETCH/RELATE patterns.
Reference: references/annotations.md
@SurrealTable, @SurrealField, @SurrealRecord, @SurrealRelation and other annotation types.
Reference: references/authentication.md
Credential types, signin/signup/authenticate methods (limited in embedded mode).
Reference: references/transactions.md
Transaction support with known rollback limitation.
Reference: references/parameters-functions.md
Parameter management (set/unset) and function execution (run, built-in functions).
Reference: references/types-exceptions.md
RecordId, Datetime, Duration, and exception hierarchy.
Reference: references/troubleshooting.md
Known issues, gotchas, and workarounds including:
When helping users with SurrealDartB:
References are organized by usage frequency to optimize context:
Load references into context as needed based on the user's specific request.