Closed yoonghm closed 8 years ago
Items = new PG.Table("items");
var records = Items.select('id', 'task').orderBy('id').fetch();
for (var x in records) {
console.log(records[x]);
}
or
Items = new PG.Table("items");
var records = Items.select('id', 'task').orderBy('id').fetch();
_.each(records, (row) => {
console.log(row);
}
thanks will try out. should be updated to the document.
I have a table
It has the following records
How to you print out all records, all columns from the table? I did that but it is not correct:
which gives