Expand description
Core types and traits for FeatherDB
This crate provides the fundamental types used throughout FeatherDB:
Value: The core data type for storing valuesError: Error types for all database operationsPageId,TransactionId: Type-safe identifiersToRow,FromRow: Traits for type-safe row conversionWalSyncMode,WalGroupCommitConfig: WAL configuration for group commitTransactionConfig: Transaction timeout configurationPermissions: Table-level permission flags for authorization
Modules§
- constants
- Constants for the database file format
Structs§
- Column
Def - Column definition for schema generation
- Compression
Config - Compression configuration for the storage engine
- Config
- Database configuration options
- Lsn
- Log Sequence Number - identifies a position in the WAL
- PageId
- Page identifier - uniquely identifies a page in the database file
- Permissions
- Permission flags for table-level access control.
- Query
Context - Query context for tracking position in SQL
- Query
Error - Rich query error with context and suggestions
- Storage
Limits Config - Configuration for database storage limits
- Transaction
Config - Configuration for transaction behavior
- Transaction
Id - Transaction identifier
- WalGroup
Commit Config - WAL group commit configuration
Enums§
- Column
Type - Column type definition
- Compression
Type - Compression algorithm type for page compression
- Config
Error - Configuration error type
- Encryption
Config - Encryption configuration
- Error
- Main error type for FeatherDB operations
- Eviction
Policy Type - Buffer pool eviction policy type
- Value
- A database value
- WalSync
Mode - WAL synchronization mode
Traits§
- FromRow
- Trait for types that can be constructed from a database row
- From
Value - Trait for types that can be created from a database Value
- Table
Schema - Trait for types that have a table schema
- ToRow
- Trait for types that represent a database row
- ToValue
- Trait for types that can be converted to a database Value
Functions§
- find_
best_ match - Find the best match from a list of candidates
- levenshtein_
distance - Calculate Levenshtein distance between two strings
- suggest_
keyword - Common SQL keyword typos and their corrections
Type Aliases§
- Result
- Result type alias using FeatherDB’s Error