Skip to content

feat: add optional Ecto type support for database integration#8

Open
chenzihui222 wants to merge 1 commit into
knowecon:mainfrom
chenzihui222:feat/ecto-types-support
Open

feat: add optional Ecto type support for database integration#8
chenzihui222 wants to merge 1 commit into
knowecon:mainfrom
chenzihui222:feat/ecto-types-support

Conversation

@chenzihui222

Copy link
Copy Markdown

添加可选的 Ecto.Type 实现,方便与 Phoenix 应用集成。\n\n## Types\n- Fsrs.Ecto.CardType - 存储卡片状态\n- Fsrs.Ecto.SchedulerType - 存储调度器配置\n\n## Notes\n- Ecto 是可选依赖\n- 不影响无Ecto用户\n- 包含完整文档和示例

Add Ecto.Type implementations for seamless database integration:

- Fsrs.Ecto.CardType - Store card states in database
- Fsrs.Ecto.SchedulerType - Store scheduler configurations
- Fsrs.Ecto module with usage documentation
- Comprehensive tests (only run if Ecto is available)

These types are optional and only loaded if Ecto is present,
maintaining zero dependencies for users who don't need database support.

Includes complete documentation with schema and migration examples.
@chenzihui222 chenzihui222 marked this pull request as ready for review March 9, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant