Documentation
¶
Overview ¶
Package draft reads and checks an app's schema-change draft, .aicoded/migration.sql, for aicoded check.
Index ¶
Constants ¶
View Source
const File = ".aicoded/migration.sql"
File is where an app keeps its draft, relative to its folder.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check reads the draft of the app in dir, whose permission list is m, and checks it with migrate.Check. It returns the draft's statements, or nil when the app has none, and the notes of migrate.Notes: E-MIG-003 at the line of each destructive statement. Its error joins every problem, each at the draft's line or at the draft: those of Read and migrate.Check, and E-MIG-006 for a draft of an app that declares no sqldb.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.