-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
What do you want to ask?
The database is sqlite3, and the struct fields generated by the make dao command are empty.
gf -vv2.9.8
Welcome to GoFrame!
Env Detail:
Go Version: go1.22.2 linux/amd64
GF Version(go.mod): cannot find go.mod
CLI Detail:
Installed At: /home/jz/go/bin/gf
Built Go Version: go1.25.5
Built GF Version: v2.9.8
Git Commit: 2026-01-16 16:05:07 c9641ea1159c86f369b226071984e3097967acc5
Built Time: 2026-01-16 16:07:12
Others Detail:
Docs: https://goframe.org
Now : 2026-01-21T22:33:22+08:00
/*
Navicat Premium Data Transfer
Source Server : demo
Source Server Type : SQLite
Source Server Version : 3030001
Source Schema : main
Target Server Type : SQLite
Target Server Version : 3030001
File Encoding : 65001
Date: 21/01/2026 22:35:35
*/
PRAGMA foreign_keys = false;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS " user ";
CREATE TABLE " user " (
" id " integer NOT NULL PRIMARY KEY AUTOINCREMENT,
" name " text(45) DEFAULT NULL,
" status " integer DEFAULT NULL,
" age " integer DEFAULT NULL
);
-- ----------------------------
-- Table structure for sqlite_sequence
-- ----------------------------
DROP TABLE IF EXISTS "sqlite_sequence";
CREATE TABLE "sqlite_sequence" (
"name" ,
"seq"
);
-- ----------------------------
-- Auto increment value for user
-- ----------------------------
UPDATE "sqlite_sequence" SET seq = 1 WHERE name = ' user ';
PRAGMA foreign_keys = true;// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// User is the golang structure for table user .
type User struct {
}// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// SqliteSequence is the golang structure for table sqlite_sequence.
type SqliteSequence struct {
Name string `json:"name" orm:"name" description:""` //
Seq string `json:"seq" orm:"seq" description:""` //
}