How to set different table name on calling sync()? #1882

Closed
opened 2021-03-29 03:46:40 +00:00 by gepeng · 0 comments

type Log struct {
Time: time.Now(),
Group: group,
Tag: tag,
Text: v,
Data: data,
}
tableName = "20210321" // create a new log table
???
x.Sync(&Log{})

type Log struct { Time: time.Now(), Group: group, Tag: tag, Text: v, Data: data, } tableName = "20210321" // create a new log table ??? x.Sync(&Log{})
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#1882
No description provided.