Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 372 Bytes

goose.md

File metadata and controls

27 lines (22 loc) · 372 Bytes

Goose

DinoSQL will ignore rollback statements when parsing Goose migrations.

-- +goose Up
CREATE TABLE post (
    id    int NOT NULL,
    title text,
    body  text,
    PRIMARY KEY(id)
);

-- +goose Down
DROP TABLE post;
package db

type Post struct {
	ID    int
	Title sql.NullString
	Body  sql.NullString
}