new(delim, subtype) Class Public methods delim corresponds to the `typdelim` column in the pg_types table. subtype is derived from the `typelem` column in the pg_types table.
type_cast(value) Instance Public methods FIXME: this should probably split on delim and use subtype to cast the values. Unfortunately, the current Rails behavior is to just return the string.
alias_type(new, old) Class Public methods Alias the old type to the new type.
register_type(name, type) Class Public methods Register an OID type named name with a typecasting object in type. name should correspond to the `typname` column in the `pg_type` table.
registered_type?(name) Class Public methods Is name a registered type?
escape_bytea(value) Instance Public methods Escapes binary strings for bytea input to the database.
quote_table_name(name) Instance Public methods Checks the following cases: table_name âtable.nameâ schema_name.table_name schema_name.âtable.nameâ âschema.nameâ.table_name âschema.nameâ.âtable.nameâ
quote_table_name_for_assignment(table, attr) Instance Public methods
type_cast(value, column, array_member = false) Instance Public methods
unescape_bytea(value) Instance Public methods Unescapes bytea output from a database to the binary string it represents. NOTE: This is NOT an inverse of #escape_bytea! This is only to be used on escaped binary output from database drive.
Page 2098 of 11844