pg: remove printf
parent
baa537bfd5
commit
6002511052
|
@ -91,7 +91,7 @@ ${obj_gen.str()}
|
||||||
p.cgen.insert_before('
|
p.cgen.insert_before('
|
||||||
|
|
||||||
array_pg__Row rows = pg__DB_exec(db, tos2("$q"));
|
array_pg__Row rows = pg__DB_exec(db, tos2("$q"));
|
||||||
printf("ROWS LEN=%d\\n", rows.len);
|
//printf("ROWS LEN=%d\\n", rows.len);
|
||||||
// TODO preallocate
|
// TODO preallocate
|
||||||
array arr_$tmp = new_array(0, 0, sizeof($table_name));
|
array arr_$tmp = new_array(0, 0, sizeof($table_name));
|
||||||
for (int i = 0; i < rows.len; i++) {
|
for (int i = 0; i < rows.len; i++) {
|
||||||
|
|
|
@ -23,11 +23,9 @@ pub fn (app mut App) json_endpoint() {
|
||||||
app.vweb.json('{"a": 3}')
|
app.vweb.json('{"a": 3}')
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
pub fn (app mut App) index() {
|
pub fn (app mut App) index() {
|
||||||
$vweb.html()
|
$vweb.html()
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
pub fn (app mut App) text() {
|
pub fn (app mut App) text() {
|
||||||
app.vweb.text('hello world')
|
app.vweb.text('hello world')
|
||||||
|
|
Loading…
Reference in New Issue