Project

General

Profile

« Previous | Next » 

Revision 9083

lib/sh/db.sh: renamed pg_copy_to() to pg_export() because it is also a general-purpose export command, which could have an analogous counterpart for MySQL

View differences:

db.sh
67 67

  
68 68
### PostgreSQL
69 69

  
70
pg_copy_to()
70
pg_export()
71 71
{
72 72
	echo_func
73 73
	if test ! "$source"; then
......
85 85
{
86 86
	echo_func
87 87
	local pg_copy_format="CSV HEADER" limit=0
88
	pg_copy_to "$@"|echo_stdout
88
	pg_export "$@"|echo_stdout
89 89
}
90 90

  
91 91
pg_export_table_no_header()
92 92
{
93 93
	echo_func
94 94
	local pg_copy_format="CSV"
95
	pg_copy_to "$@"
95
	pg_export "$@"
96 96
}
97 97

  
98 98
pg_export_table_to_dir_no_header()

Also available in: Unified diff