Project

General

Profile

« Previous | Next » 

Revision 11768

lib/sh/db.sh: added pg_table_exists()

View differences:

db.sh
357 357
	)
358 358
}
359 359

  
360
pg_table_exists() # usage: [schema=...] [table=...] pg_table_exists
361
{
362
	echo_func; : "${table:?}"; mk_table_esc
363
	psql <<<"SELECT * FROM $table_esc LIMIT 0"
364
}
365

  
360 366
fi

Also available in: Unified diff