mgo - Related information

  • The problem of using mongodb in golang gin

    Hello, everyone. I use the ginweb framework as a service and use mgo to connect to mongo,. There is a timestamp in my database that I wrote when I created statuct user: CreatedTime float64 bson:created_time here I tried time.Time,int, float64, but the...

    Nov.14,2021
  • Can mgo register some functions and execute them automatically before or after the query is executed?

    similar to GORM, execute some functions before and after executing the query by registering them db.Callback().Create().Before("gorm:create").Register("update_created_at", updateCreated) db.Callback().Create().After("gorm:creat...

    Mar.02,2021
  • MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
    MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9e6b6-19db.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
    MySQL Errno : 1021
    Message : Disk full (/tmp/#sql-temptable-64f5-1e9e6b6-19db.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
    Need Help?