db icon indicating copy to clipboard operation
db copied to clipboard

No more rows in this result set for SQLite

Open BrendanThompson opened this issue 5 years ago • 1 comments

The following code gives me back no more rows in this result set


type Entries []Entry

type Entry struct {
  Id int
  Title string
  ...
}

func ReadAll(session sqlbuilder.Database) {
	entryCollection := session.Collection(tableName)
	var entries Entries

	err := entryCollection.Find().All(&entries)
	if err != nil {
		panic(err)
	}

	for _, entry := range entries {
		fmt.Printf("%d - %s\n", entry.ID, entry.Title)
	}

}

Have played around with a few things to no avail.

BrendanThompson avatar Feb 23 '20 09:02 BrendanThompson

Hello @BrendanThompson ,

Could you try running UPPERIO_DB_DEBUG=1 ./program and share the output?

xiam avatar Mar 21 '20 12:03 xiam