| Crates.io | surrealkit |
| lib.rs | surrealkit |
| version | 0.1.8 |
| created_at | 2025-09-19 22:11:14.426781+00 |
| updated_at | 2025-12-06 10:07:28.897695+00 |
| description | Manage migrations, seeding and tests for your SurrealDB via CLI |
| homepage | |
| repository | https://github.com/ForetagInc/surrealkit |
| max_upload_size | |
| id | 1847175 |
| size | 133,399 |
NOT FOR PRODUCTION USE | For SurrealDB v3
Manage SurrealDB migrations, seeding, and testing with ease. Inspired by Eloquent ORM's migration pattern.
This project is designed to manage SurrealDB migrations, seed, testing, and database management. It is not intended for production use and is specifically tailored for SurrealDB version 3.
If and when SurrealDB implements first-class tooling to manage migrations, seeding, and testing, SurrealKit will be deprecated in favour of the official SurrealDB tooling but intends to provide seamless transition.
Install via Cargo:
cargo install surrealkit
Initialise a new project:
surrealkit init
This creates a directory /database with the necessary scaffolding
The following ENV variables will be picked up for your .env file, SurrealKit assumes you're using SurrealDB as a Web Database.
PUBLIC_DATABASE_HOSTPUBLIC_DATABASE_NAMESPACEPUBLIC_DATABASE_DATABASEDATABASE_USERNAMEDATABASE_PASSWORDA table (_migration) is generated and managed by SurrealKit on your configured database.
Seeding will automatically run when you apply migrations. If you would like to reapply migrations, please re-apply your migrations.
surrealkit seed