Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
and update tests
  • Loading branch information
andrewmbenton committed Aug 11, 2025
commit 5611a92e21ec15474c1b25f1f11432b28d22f91c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CREATE TABLE foo (
other text NOT NULL,
tagged text NOT NULL
tagged text NOT NULL,
nulltext text
);

CREATE TABLE bar (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
},
{
"db_type": "text",
"go_struct_tag": "utype:\"text\""
"go_struct_tag": "utype:\"notnull_text\""
},
{
"db_type": "text",
"go_type": "string",
"nullable": true,
"go_struct_tag": "utype:\"nullable_text\""
}
]
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ CREATE TABLE foo (
id text,
other_id text,
about text,
other text
other text,
notnulltext text not null
);

CREATE TABLE bar (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@
},
{
"db_type": "text",
"go_struct_tag": "utype:\"text\""
"go_struct_tag": "utype:\"notnull_text\""
},
{
"db_type": "text",
"go_type": "string",
"nullable": true,
"go_struct_tag": "utype:\"nullable_text\""
}
]
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ CREATE TABLE foo (
id text,
other_id text,
about text,
other text
other text,
notnulltext text not null
);

CREATE TABLE bar (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@
},
{
"db_type": "text",
"go_struct_tag": "utype:\"text\""
"go_struct_tag": "utype:\"notnull_text\""
},
{
"db_type": "text",
"go_type": "string",
"nullable": true,
"go_struct_tag": "utype:\"nullable_text\""
}
]
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CREATE TABLE foo (
id text,
other_id text
other_id text,
notnulltext text not null
);
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
},
{
"db_type": "text",
"go_struct_tag": "utype:\"text\""
"go_struct_tag": "utype:\"notnull_text\""
},
{
"db_type": "text",
"go_type": "string",
"nullable": true,
"go_struct_tag": "utype:\"nullable_text\""
}
]
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
CREATE TABLE foo (
other text NOT NULL,
tagged text NOT NULL,
tag3 text NOT NULL
tag3 text NOT NULL,
nulltext text
);

CREATE TABLE bar (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
},
{
"db_type": "text",
"go_struct_tag": "utype:\"text\""
"go_struct_tag": "utype:\"notnull_text\""
},
{
"db_type": "text",
"go_type": "string",
"nullable": true,
"go_struct_tag": "utype:\"nullable_text\""
}
]
}
Expand Down
Loading