acs::db::nsdb-postgresql method call content_type create_type (public)

 <instance of acs::db::nsdb-postgresql[i]> call content_type create_type \
    [ -dbn dbn ] -content_type content_type  [ -supertype supertype ] \
    -pretty_name pretty_name  -pretty_plural pretty_plural  \
    -table_name table_name  [ -id_column id_column ] \
    [ -name_method name_method ]

Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl

Automatically generated method TYPES: {character varying} {character varying} {character varying} {character varying} {character varying} {character varying} {character varying}

Switches:
-dbn (optional)
-content_type (required)
-supertype (optional, defaults to "content_revision")
-pretty_name (required)
-pretty_plural (required)
-table_name (required)
-id_column (optional, defaults to "XXX")
-name_method (optional, accept empty)

Testcases:
No testcase defined.
Source code:
db_with_handle -dbn $dbn __DB {
   set s [ns_pg_bind 0or1row $__DB {select content_type__create_type(:content_type,:supertype,:pretty_name,:pretty_plural,:table_name,:id_column,:name_method)}]
   return [ns_set value $s 0]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: