runtime error: invalid memory address or nil pointer dereference
when executing sqlboiler command
#1129
-
I got error I have done a lot of research and read the source code for sqlboiler, but I need help because I couldn't figure it out on my own. 🙇 assumptionI use docker for execute sqlboiler. version: '3'
services:
db:
image: mysql:8.0
platform: linux/amd64
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: portfolio
app:
image: golang:1.18
volumes:
- .:/app
- gomod:/go/pkg/mod
working_dir: /app
depends_on:
- db
volumes:
gomod: I use golang-migrate for migration. migration fileCREATE TABLE IF NOT EXISTS blogs (
id VARCHAR(36) NOT NULL,
title VARCHAR(255) NOT NULL,
posted_at DATE NOT NULL,
site_url VARCHAR(255) NOT NULL,
thumbnail_url VARCHAR(255) NOT NULL
); $ docker compose app ./bin/migrate -path migrations/ -database "mysql://root:root@tcp(db:3306)/portfolio" up
20220429141011/u create_blogs_table (49.475834ms) What version of SQLBoiler are you using (
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
This is the implementation in problem. |
Beta Was this translation helpful? Give feedback.
-
It has worked in v4.10.0, not v4.11.0. |
Beta Was this translation helpful? Give feedback.
-
Is this a bug in v4.11.0? |
Beta Was this translation helpful? Give feedback.
It has worked in v4.10.0, not v4.11.0.