[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: user defined function

> > 	Hi!
> > 
> > 	How I can check function crated by "relation -t funcname" is really
> >     exist?
> Do you mean if the relation knows about DB type 'funcname' ?
>    relation -T -t dbtype dummy || echo "No such database type: dbtype"
> The '-T' option exists since  2.99.50-s2

On the other hand, if you really want to know wether or not some database
has been defined at all, following might be it:

   case "$(type relationname)" in
	*"not found")
		# Not defined
		# Defined!

See  proto/db/aliases-new.cf  file for some examples.

> > 	CU, Victor Gamov

/Matti Aarnio