Documentation
¶
Overview ¶
Package migrate provides internal utilities for database schema migrations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SQLType ¶
SQLType maps Go types to SQL types for the given dialect name.
When isPK is true the column DDL includes the PRIMARY KEY constraint. The exact type depends on the Go field kind:
- int / int64 → dialect-native auto-increment (SERIAL, AUTO_INCREMENT, IDENTITY…)
- string → VARCHAR(36) PRIMARY KEY — UUID-friendly; no auto-increment
- anything else → its natural SQL type + PRIMARY KEY (no auto-increment)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.