How insert one-to-many

Start server
Google chrome > localhost:8000
Click button > Create recipe
I fill in the data
Click > save
Error

I can’t reproduce that error message on my linux machine, but as I said, that doesn’t mean it had worked :wink:

From the fat window decorations and its colors I have to assume that you are using windows vista. Maybe either libsql or go-libsql are behaving different this way on the different systems?

For several days of my attempts, I also created an empty string. But that code is gone.
I have a file called recipe.db-journal, which means something happens to the database. I understand so

I reinstalled:

  • Go

  • MinGW

  • echo

  • go-sqlite3

Now empty string are created. No error. Most likely vuejs does not transmit data.I’m working on this

All earned. But how to add while at least one flavor?
Github - new working code

I had a look at the current playground code but I see no code that inserts flavors. I would have expected to find something like a models.PutFlavor() method that executes the SQL query that you removed from PutRecipe. (This one: sql2 := "INSERT INTO flavor(name, drops, recipeid) VALUES(?,?,?);")

1 Like

Problem solved.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.