Skip to content
#

gorm

Here are 498 public repositories matching this topic...

medyagh
medyagh commented Jan 4, 2020

followed the docs for has manyhttp://gorm.io/docs/has_many.html for sqlilite

package main

import (
	"fmt"

	"github.com/jinzhu/gorm"
	_ "github.com/mattn/go-sqlite3"
)


type User struct {
	Id          string
	Name        string
	CreditCards []CreditCard `gorm:"FOREIGNKEY:user_id;ASSOCIATION_FOREIGNKEY:id"`
}

type CreditCard struct {
	Id     int
	Number string
	UserID 
hutu1st
hutu1st commented Apr 30, 2020

以下为程序生成的日志:
(/Users/jianghongchao/Downloads/gormt-master/data/view/model/genmysql/genmysql.go:113) [2020-04-30 15:59:20] [Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match' at line 1]
goroutine 18 [running]:
runtime/debug.Stack(0xc0000119a0, 0xc0002ac6c0, 0x116)
/usr/local/go/src/runtime/d

zoladkow
zoladkow commented Dec 5, 2018

Task List

  • Steps to reproduce provided
  • Stacktrace (if present) provided
  • Example that reproduces the problem uploaded to Github
  • Full description of the issue provided (see below)

Steps to Reproduce

  1. Create a grails service with @Transactional annotation
  2. Create a method on that service called setSystemConfiguration(List<...> configuration) which s
AdamEr8
AdamEr8 commented May 8, 2018

https://github.com/onrik/logrus/blob/6a64e23a4923a8d0d4db2806dcf3e55af1e48f61/filename/filename.go#L32-L33

Hi,
Although the function name is now available, the formatter doesn't use it.
Would be nice if it did 👍
(if some users feel like it is too cumbersome and prefer only file+line, maybe should introduce a separate one that is identical to filename.go except for including the func name

Improve this page

Add a description, image, and links to the gorm topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the gorm topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.