Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
@astrojs_db@0.17.0 source code.tar.gz | 2025-08-08 | 43.0 MB | |
@astrojs_db@0.17.0 source code.zip | 2025-08-08 | 45.8 MB | |
README.md | 2025-08-08 | 763 Bytes | |
Totals: 3 Items | 88.7 MB | 0 |
Minor Changes
-
#14190
438adab
Thanks @Adammatthiesen! - Adds support for enum support for text columns in Astro DB tables.```ts import { column, defineTable } from 'astro:db';
// Table definition const UserTable = defineTable({ columns: { id: column.number({ primaryKey: true }), name: column.text(), rank: column.text({ enum: ['user', 'mod', 'admin'] }), }, });
// Resulting type definition type UserTableInferInsert = { id: string; name: string; rank: 'user' | 'mod' | 'admin'; }; ```