gormt icon indicating copy to clipboard operation
gormt copied to clipboard

database to golang struct

Results 61 gormt issues
Sort by recently updated
recently updated
newest added

如题。现在都是使用一个新的context,不是很方便

![image](https://github.com/xxjwxc/gormt/assets/30225668/38150e29-7f28-44a9-87ae-63264467493f)

Hi, if I implement PostgreSQL support, will you accept PR?

Can you make the GUI version cross platform? You could use the Fyne framework (written in go). Single page destop app. Checkout https://fyne.io

生成出的结构体 Type bool `gorm:"column:type;type:tinyint(1);not null;default:0"` // 0增加,1减少 以下是表结构 CREATE TABLE `account_log` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `admin_id` int(11) unsigned NOT NULL COMMENT '管理员ID', `user_id` int(11) unsigned NOT NULL...

Cannot use 'db' (type *"api/vendor/github.com/jinzhu/gorm".DB) as the type *"api/vendor/gorm.io/gorm".DB

生成的struct无论是否使用gorm.Model,再次用gorm迁移生成的新数据表都不会在id这个字段设置自增,然后插入时报错,`Error 1364: Field 'id' doesn't have a default value`,就是说自增没有设置到 以下是我的数据表结构和生成的结构体 ```sql CREATE TABLE IF NOT EXISTS `users` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,...

怎么创建成 指针的model?