aliasing proposal (OCI)
| From: | Cynic | Date: | Wed, 14 Feb 2001 07:26:09 +0000 |
| Subject: | aliasing proposal (OCI) | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-2384@lists.php.net to get a copy of this message | ||
Remarks:
I don't see why there should be ocinewdescriptor and
ocifreedesc (insert underscores as desired). Both should be
either desc or descriptor. I vote for descriptor.
Generally db: I think we should try and make all the RDBMS
extensions as similar as possible. What I mean by this is
field should be field and not column, row should be row and
not tuple etc. Of course, this is based on the mysql_*
functions, IMO they base a suitable model.
Also, we should agree on things like whether to promote e. g.
oci_field_type_raw as opposed to oci_raw_field_type. This has
far-reaching consequences (assuming we will decide to go that
far): should we alias e. g. ifx_get_blob to match
ibase_blob_get, or the other way around? Remember, once we
start aliasing, we don't have to limit ourselves to sprinkling
underscores over the function names. I don't have an opinion
on this (yet - but I would prefer what would require less
changes if we decided to enforce one of the patterns across
the language), but ocisavelob could be aliased as
oci_lob_save as well (as opposed to oci_save_lob).
Proposed aliases:
=================
ocibindbyname
oci_bind_by_name
ocicancel
oci_cancel
ocicolumnisnull
oci_field_is_null
ocicolumnname
oci_field_name
ocicolumnprecision
oci_field_precision
ocicolumnscale
oci_field_scale
ocicolumnsize
oci_field_size
ocicolumntype
oci_field_type
ocicolumntyperaw
oci_field_type_raw
ocicommit
oci_commit
ocidefinebyname
oci_define_by_name
ocierror
oci_error
ociexecute
oci_execute
ocifetch
oci_fetch
ocifetchinto
oci_fetch_into
ocifetchstatement
oci_fetch_statement
ocifreedesc
oci_free_descriptor
ocifreestatement
oci_free_statement
ociinternaldebug
oci_internal_debug
ociloadlob
oci_load_lob
ocilogoff
oci_logoff
ocilogon
oci_logon
ocinewcursor
oci_new_cursor
ocinewdescriptor
oci_new_descriptor
ocinlogon
oci_nlogon
ocinumcols
oci_num_fields
ociparse
oci_parse
ociplogon
oci_plogon
ociresult
oci_result
ocirollback
oci_rollback
ocirowcount
oci_affected_rows
ocisavelob
oci_save_lob
ocisavelobfile
oci_save_lob_file
ociserverversion
oci_server_version
ocisetprefetch
oci_set_prefetch
ocistatementtype
oci_statement_type
ociwritelobtofile
oci_write_lobtofile
OR oci_write_lob_to_file
OR oci_write_lob2file
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz