postgresql :: ExecStatusType :: copy_in
postgresql :: ExecStatusType :: copy_out
postgresql :: ExecStatusType :: empty
postgresql :: ExecStatusType :: is_ok
postgresql $ ExecStatusType :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
postgresql :: ExecStatusType :: copy_in
postgresql :: ExecStatusType :: copy_out
core :: Object :: defaultinit
core :: Pointer :: defaultinit
postgresql :: ExecStatusType :: empty
postgresql :: ExecStatusType :: is_ok
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).
extern class ExecStatusType `{int`}
new empty `{ return PGRES_EMPTY_QUERY; `}
new command_ok `{ return PGRES_COMMAND_OK; `}
new tuples_ok `{ return PGRES_TUPLES_OK; `}
new copy_out `{ return PGRES_COPY_OUT; `}
new copy_in `{ return PGRES_COPY_IN; `}
new bad_response `{ return PGRES_BAD_RESPONSE; `}
new nonfatal_error `{ return PGRES_NONFATAL_ERROR; `}
new fatal_error `{ return PGRES_FATAL_ERROR; `}
fun is_ok: Bool `{
return !(self == PGRES_BAD_RESPONSE || self == PGRES_NONFATAL_ERROR || self == PGRES_FATAL_ERROR);
`}
redef fun to_s import CString.to_s `{
char * err = PQresStatus(self);
if(err == NULL) err = "";
return CString_to_s(err);
`}
end
lib/postgresql/native_postgres.nit:24,1--43,3