Skip to content

Commit 02ac171

Browse files
committed
chore: docs and wrap
1 parent 8a99a96 commit 02ac171

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/schema/define.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,19 @@ export const column = {
167167
options?: { notNull?: NotNull },
168168
) => parse(DataType.blob, options as any) as ColumnBuilder<TDataType['blob'], T, NotNull>,
169169
/**
170-
* Column type: text (serialize with `JSON.parse` and `JSON.stringify`)
170+
* Column type: INTEGER
171171
*/
172172
boolean: <T extends BooleanColumnType, DefaultTo extends T | RawBuilder<unknown> | null, NotNull extends boolean | null>(
173173
options?: Options<T, DefaultTo, NotNull>,
174174
) => parse(DataType.boolean, options as any) as ColumnBuilder<TDataType['boolean'], T, NotNull>,
175175
/**
176-
* Column type: text (serialize with `JSON.parse` and `JSON.stringify`)
176+
* Column type: TEXT (serialize with `JSON.parse` and `JSON.stringify`)
177177
*/
178178
date: <T extends Date, DefaultTo extends T | RawBuilder<unknown> | null, NotNull extends boolean | null>(
179179
options?: Options<T, DefaultTo, NotNull>,
180180
) => parse(DataType.date, options as any) as ColumnBuilder<TDataType['date'], T, NotNull>,
181181
/**
182-
* Column type: text (serialize with `JSON.parse` and `JSON.stringify`)
182+
* Column type: TEXT (serialize with `JSON.parse` and `JSON.stringify`)
183183
*/
184184
object: <T extends object, DefaultTo extends T | RawBuilder<unknown> | null, NotNull extends boolean | null>(
185185
options?: Options<T, DefaultTo, NotNull>,

src/schema/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ export type { ColumnFallbackInfo, SchemaSyncOptions } from './core'
1111
export { column, defineTable } from './define'
1212
export { parseExistSchema } from './parse-exist'
1313
export { migrateWholeTable, parseColumnType, type RestoreColumnList } from './run'
14-
export type { ColumnProperty, Columns, InferDatabase, InferTable, Schema, Table, TableProperty } from './types'
14+
export type {
15+
ColumnProperty,
16+
Columns,
17+
InferDatabase,
18+
InferTable,
19+
Schema,
20+
Table,
21+
TableProperty,
22+
} from './types'
1523

1624
/**
1725
* Auto sync table using schema, only sync table/index/trigger

0 commit comments

Comments
 (0)