Skip to content

Commit

Permalink
Fix links on custom types page
Browse files Browse the repository at this point in the history
Closes #3349
  • Loading branch information
simolus3 committed Nov 21, 2024
1 parent 7fcd816 commit 06fdbd7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/docs/sql_api/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ in the core `drift` package and don't work with all databases.

!!! note "When to use custom types - summary"


Custom types are a good tool when extending drift support to new database engines
with their own types not already covered by drift.

Unless you're extending drift to work with a new database package (which is awesome,
please reach out!), you probably don't need to implement custom types yourself.
Packages like `drift_postgres` already define relevant custom types for you.




## Defining a type
Expand Down Expand Up @@ -110,4 +108,7 @@ while falling back to an integer type on sqlite3 and other databases:
```dart
Column<Duration> get frequency => customType(durationType)
.clientDefault(() => Duration(minutes: 15))();
```
```

[types]: ../dart_api/tables.md#column-types
[type converters]: ../type_converters.md

0 comments on commit 06fdbd7

Please sign in to comment.