User-defined conversions

本文介绍了C++中用户定义转换的概念,包括转换构造函数与转换函数两种类型。文章通过实例展示了如何使用这些转换,并讨论了在不同场景下编译器如何选择合适的转换方式。

 今天才发现operator的关于转换函数的用法,真是土鳖了~~~

从IBM上转篇文章来记录一下

 

User-defined conversions allow you to specify object conversions with constructors or with conversion functions. User-defined conversions are implicitly used in addition to standard conversions for conversion of initializers, functions arguments, function return values, expression operands, expressions controlling iteration, selection statements, and explicit type conversions.

There are two types of user-defined conversions:

  • Conversion constructors
  • Conversion functions

The compiler can use only one user-defined conversion (either a conversion constructor or a conversion function) when implicitly converting a single value. The following example demonstrates this:

  1. class A {
  2.   int x;
  3. public:
  4.   operator int() { return x; };
  5. };
  6. class B {
  7.   A y;
  8. public:
  9.   operator A() { return y; };
  10. };
  11. int main () {
  12.   B b_obj;
  13. //  int i = b_obj;
  14.   int j = A(b_obj);
  15. }

The compiler would not allow the statement int i = b_obj. The compiler would have to implicitly convert b_obj into an object of type A (with B::operator A()), then implicitly convert that object to an integer (with A::operator int()). The statement int j = A(b_obj) explicitly converts b_obj into an object of type A, then implicitly converts that object to an integer.

User-defined conversions must be unambiguous, or they are not called. A conversion function in a derived class does not hide another conversion function in a base class unless both conversion functions convert to the same type. Function overload resolution selects the most appropriate conversion function. The following example demonstrates this:

  1. class A {
  2.   int a_int;
  3.   char* a_carp;
  4. public:
  5.   operator int() { return a_int; }
  6.   operator char*() { return a_carp; }
  7. };
  8. class B : public A {
  9.   float b_float;
  10.   char* b_carp;
  11. public:
  12.   operator float() { return b_float; }
  13.   operator char*() { return b_carp; }
  14. };
  15. int main () {
  16.   B b_obj;
  17. //  long a = b_obj;
  18.   char* c_p = b_obj;
  19. }

The compiler would not allow the statement long a = b_obj. The compiler could either use A::operator int() or B::operator float() to convert b_obj into a long. The statement char* c_p = b_obj uses B::operator char*() to convert b_obj into a char* because B::operator char*() hides A::operator char*().

When you call a constructor with an argument and you have not defined a constructor accepting that argument type, only standard conversions are used to convert the argument to another argument type acceptable to a constructor for that class. No other constructors or conversions functions are called to convert the argument to a type acceptable to a constructor defined for that class. The following example demonstrates this:

 

  1. class A {
  2. public:
  3.   A() { }
  4.   A(int) { }
  5. };
  6. int main() {
  7.    A a1 = 1.234;
  8. //   A moocow = "text string";
  9. }

The compiler allows the statement A a1 = 1.234. The compiler uses the standard conversion of converting 1.234 into an int, then implicitly calls the converting constructor A(int). The compiler would not allow the statement A moocow = "text string"; converting a text string to an integer is not a standard conversion.

从数据库 "WES" 备份服务器上的对象 "PostgreSQL 15 (localhost:5432)" 执行命令: C:\Program Files\PostgreSQL\17\pgAdmin 4\runtime\pg_dump.exe --file "F:\\WCQ\\WES\\WES0731.sql" --host "localhost" --port "5432" --username "postgres" --no-password --role "postgres" --format=t --blobs --encoding "UTF8" --verbose "WES" 起始时间: Thu Jul 31 2025 19:08:19 GMT+0800 (中國標準時間) pg_dump: last built-in OID is 16383 pg_dump: reading extensions pg_dump: identifying extension members pg_dump: reading schemas pg_dump: reading user-defined tables pg_dump: reading user-defined functions pg_dump: reading user-defined types pg_dump: reading procedural languages pg_dump: reading user-defined aggregate functions pg_dump: reading user-defined operators pg_dump: reading user-defined access methods pg_dump: reading user-defined operator classes pg_dump: reading user-defined operator families pg_dump: reading user-defined text search parsers pg_dump: reading user-defined text search templates pg_dump: reading user-defined text search dictionaries pg_dump: reading user-defined text search configurations pg_dump: reading user-defined foreign-data wrappers pg_dump: reading user-defined foreign servers pg_dump: reading default privileges pg_dump: reading user-defined collations pg_dump: reading user-defined conversions pg_dump: reading type casts pg_dump: reading transforms pg_dump: reading table inheritance information pg_dump: reading event triggers pg_dump: finding extension tables pg_dump: finding inheritance relationships pg_dump: reading column info for interesting tables pg_dump: finding table default expressions pg_dump: flagging inherited columns in subtables pg_dump: reading partitioning data pg_dump: reading indexes pg_dump: flagging indexes in partitioned tables pg_dump: reading extended statistics pg_dump: reading constraints pg_dump: reading triggers pg_dump: reading rewrite rules pg_dump: reading policies pg_dump: reading row-level security policies pg_dump: reading publications pg_dump: reading publication membership of tables pg_dump: reading publication membership of schemas pg_dump: reading subscriptions pg_dump: reading subscription membership of tables pg_dump: reading large objects pg_dump: reading dependency data pg_dump: saving encoding = UTF8 pg_dump: saving "standard_conforming_strings = on" pg_dump: saving "search_path = " pg_dump: saving database definition pg_dump: dumping contents of table "public.App_Appointment" pg_dump: dumping contents of table "public.App_Expert" pg_dump: dumping contents of table "public.App_News" pg_dump: dumping contents of table "public.App_ReportPrice" pg_dump: dumping contents of table "public.App_Transaction" pg_dump: dumping contents of table "public.App_TransactionAvgPrice" pg_dump: dumping contents of table "public.Demo_Catalog" pg_dump: dumping contents of table "public.Demo_Customer" pg_dump: dumping contents of table "public.Demo_Goods" pg_dump: dumping contents of table "public.Demo_Order" pg_dump: dumping contents of table "public.Demo_OrderList" pg_dump: dumping contents of table "public.Demo_Product" pg_dump: dumping contents of table "public.Demo_ProductColor" pg_dump: dumping contents of table "public.Demo_ProductSize" pg_dump: dumping contents of table "public.FormCollectionObject" pg_dump: dumping contents of table "public.FormDesignOptions" pg_dump: dumping contents of table "public.SellOrder" pg_dump: dumping contents of table "public.SellOrderList" pg_dump: dumping contents of table "public.Sys_City" pg_dump: dumping contents of table "public.Sys_Department" pg_dump: dumping contents of table "public.Sys_Dictionary" pg_dump: dumping contents of table "public.Sys_DictionaryList" pg_dump: dumping contents of table "public.Sys_Log" pg_dump: dumping contents of table "public.Sys_Menu" pg_dump: dumping contents of table "public.Sys_Province" pg_dump: dumping contents of table "public.Sys_QuartzLog" pg_dump: dumping contents of table "public.Sys_QuartzOptions" pg_dump: dumping contents of table "public.Sys_Role" pg_dump: dumping contents of table "public.Sys_RoleAuth" pg_dump: dumping contents of table "public.Sys_TableColumn" pg_dump: dumping contents of table "public.Sys_TableInfo" pg_dump: dumping contents of table "public.Sys_User" pg_dump: dumping contents of table "public.Sys_UserDepartment" pg_dump: dumping contents of table "public.Sys_WorkFlow" pg_dump: dumping contents of table "public.Sys_WorkFlowStep" pg_dump: dumping contents of table "public.Sys_WorkFlowTable" pg_dump: dumping contents of table "public.Sys_WorkFlowTableAuditLog" pg_dump: dumping contents of table "public.Sys_WorkFlowTableStep" pg_dump: dumping contents of table "public.VSCode_AGVModel" pg_dump: dumping contents of table "public.VSCode_Catalog" pg_dump: dumping contents of table "public.VSCode_Customer" pg_dump: dumping contents of table "public.VSCode_Goods" pg_dump: dumping contents of table "public.VSCode_Order" pg_dump: dumping contents of table "public.VSCode_OrderList" pg_dump: dumping contents of table "public.VSCode_Product" pg_dump: dumping contents of table "public.VSCode_ProductColor" pg_dump: dumping contents of table "public.VSCode_ProductSize" pg_dump: dumping contents of table "public.View_OrderInfo" pg_dump: dropping DATABASE WES pg_dump: creating DATABASE "WES" pg_dump: connecting to new database "WES" pg_dump: creating TABLE "public.App_Appointment" pg_dump: creating SEQUENCE "public.app_expert_id_seq" pg_dump: creating TABLE "public.App_Expert" pg_dump: creating SEQUENCE "public.app_news_id_seq" pg_dump: creating TABLE "public.App_News" pg_dump: creating SEQUENCE "public.app_reportprice_id_seq" pg_dump: creating TABLE "public.App_ReportPrice" pg_dump: creating SEQUENCE "public.app_transaction_id_seq" pg_dump: creating TABLE "public.App_Transaction" pg_dump: creating SEQUENCE "public.app_transactionavgprice_id_seq" pg_dump: creating TABLE "public.App_TransactionAvgPrice" pg_dump: creating TABLE "public.Demo_Catalog" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."CatalogId"" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."CatalogCode"" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."CatalogName"" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."ParentId"" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."Img"" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."Enable"" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."Remark"" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."CreateID"" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."Creator"" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."CreateDate"" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."ModifyID"" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."Modifier"" pg_dump: creating COMMENT "public.COLUMN "Demo_Catalog"."ModifyDate"" pg_dump: creating TABLE "public.Demo_Customer" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."Customer_Id"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."Customer"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."PhoneNo"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."Province"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."City"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."County"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."DetailAddress"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."Remark"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."CreateID"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."Creator"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."CreateDate"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."ModifyID"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."Modifier"" pg_dump: creating COMMENT "public.COLUMN "Demo_Customer"."ModifyDate"" pg_dump: creating TABLE "public.Demo_Goods" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."GoodsId"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."GoodsName"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."CatalogId"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."GoodsCode"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."Img"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."Specs"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."Price"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."Enable"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."Remark"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."CreateID"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."Creator"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."CreateDate"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."ModifyID"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."Modifier"" pg_dump: creating COMMENT "public.COLUMN "Demo_Goods"."ModifyDate"" pg_dump: creating TABLE "public.Demo_Order" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."Order_Id"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."OrderNo"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."OrderType"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."TotalPrice"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."TotalQty"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."OrderDate"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."CustomerId"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."Customer"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."PhoneNo"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."OrderStatus"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."Remark"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."CreateID"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."Creator"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."CreateDate"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."ModifyID"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."Modifier"" pg_dump: creating COMMENT "public.COLUMN "Demo_Order"."ModifyDate"" pg_dump: creating TABLE "public.Demo_OrderList" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."OrderList_Id"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."Order_Id"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."GoodsId"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."GoodsCode"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."GoodsName"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."Img"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."Specs"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."Price"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."Qty"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."Remark"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."CreateID"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."Creator"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."CreateDate"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."ModifyID"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."Modifier"" pg_dump: creating COMMENT "public.COLUMN "Demo_OrderList"."ModifyDate"" pg_dump: creating TABLE "public.Demo_Product" pg_dump: creating COMMENT "public.COLUMN "Demo_Product"."ProductId"" pg_dump: creating COMMENT "public.COLUMN "Demo_Product"."ProductName"" pg_dump: creating COMMENT "public.COLUMN "Demo_Product"."ProductCode"" pg_dump: creating COMMENT "public.COLUMN "Demo_Product"."Price"" pg_dump: creating COMMENT "public.COLUMN "Demo_Product"."AuditStatus"" pg_dump: creating COMMENT "public.COLUMN "Demo_Product"."Remark"" pg_dump: creating COMMENT "public.COLUMN "Demo_Product"."CreateID"" pg_dump: creating COMMENT "public.COLUMN "Demo_Product"."Creator"" pg_dump: creating COMMENT "public.COLUMN "Demo_Product"."CreateDate"" pg_dump: creating COMMENT "public.COLUMN "Demo_Product"."ModifyID"" pg_dump: creating COMMENT "public.COLUMN "Demo_Product"."Modifier"" pg_dump: creating COMMENT "public.COLUMN "Demo_Product"."ModifyDate"" pg_dump: creating TABLE "public.Demo_ProductColor" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."ProductColorId"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."ProductId"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."Color"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."Qty"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."Unit"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."Img"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."Remark"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."CreateID"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."Creator"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."CreateDate"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."ModifyID"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."Modifier"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductColor"."ModifyDate"" pg_dump: creating TABLE "public.Demo_ProductSize" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductSize"."ProductSizeId"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductSize"."ProductId"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductSize"."Size"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductSize"."Unit"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductSize"."Remark"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductSize"."CreateID"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductSize"."Creator"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductSize"."CreateDate"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductSize"."ModifyID"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductSize"."Modifier"" pg_dump: creating COMMENT "public.COLUMN "Demo_ProductSize"."ModifyDate"" pg_dump: creating TABLE "public.FormCollectionObject" pg_dump: creating TABLE "public.FormDesignOptions" pg_dump: creating TABLE "public.SellOrder" pg_dump: creating TABLE "public.SellOrderList" pg_dump: creating SEQUENCE "public.sys_city_id_seq" pg_dump: creating TABLE "public.Sys_City" pg_dump: creating TABLE "public.Sys_Department" pg_dump: creating SEQUENCE "public.sys_dictionary_id_seq" pg_dump: creating TABLE "public.Sys_Dictionary" pg_dump: creating SEQUENCE "public.sys_dictionarylist_id_seq" pg_dump: creating TABLE "public.Sys_DictionaryList" pg_dump: creating SEQUENCE "public.sys_log_id_seq" pg_dump: creating TABLE "public.Sys_Log" pg_dump: creating SEQUENCE "public.sys_menu_id_seq" pg_dump: creating TABLE "public.Sys_Menu" pg_dump: creating SEQUENCE "public.sys_province_id_seq" pg_dump: creating TABLE "public.Sys_Province" pg_dump: creating TABLE "public.Sys_QuartzLog" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzLog"."TaskName"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzLog"."ElapsedTime"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzLog"."StratDate"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzLog"."EndDate"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzLog"."Result"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzLog"."ResponseContent"" pg_dump: creating TABLE "public.Sys_QuartzOptions" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzOptions"."TaskName"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzOptions"."GroupName"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzOptions"."CronExpression"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzOptions"."Method"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzOptions"."ApiUrl"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzOptions"."Describe"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzOptions"."LastRunTime"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzOptions"."Status"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzOptions"."PostData"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzOptions"."TimeOut"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzOptions"."CreateDate"" pg_dump: creating COMMENT "public.COLUMN "Sys_QuartzOptions"."ModifyDate"" pg_dump: creating SEQUENCE "public.sys_role_id_seq" pg_dump: creating TABLE "public.Sys_Role" pg_dump: creating SEQUENCE "public.sys_roleauth_id_seq" pg_dump: creating TABLE "public.Sys_RoleAuth" pg_dump: creating SEQUENCE "public.sys_tablecolumn_id_seq" pg_dump: creating TABLE "public.Sys_TableColumn" pg_dump: creating SEQUENCE "public.sys_tableinfo_id_seq" pg_dump: creating TABLE "public.Sys_TableInfo" pg_dump: creating SEQUENCE "public.sys_user_id_seq" pg_dump: creating TABLE "public.Sys_User" pg_dump: creating TABLE "public.Sys_UserDepartment" pg_dump: creating TABLE "public.Sys_WorkFlow" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlow"."WorkName"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlow"."WorkTable"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlow"."WorkTableName"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlow"."NodeConfig"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlow"."LineConfig"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlow"."Remark"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlow"."Weight"" pg_dump: creating TABLE "public.Sys_WorkFlowStep" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlowStep"."WorkFlow_Id"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlowStep"."StepId"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlowStep"."StepName"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlowStep"."StepType"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlowStep"."StepValue"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlowStep"."Remark"" pg_dump: creating TABLE "public.Sys_WorkFlowTable" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlowTable"."WorkTableKey"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlowTable"."WorkTable"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlowTable"."WorkTableName"" pg_dump: creating TABLE "public.Sys_WorkFlowTableAuditLog" pg_dump: creating TABLE "public.Sys_WorkFlowTableStep" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlowTableStep"."AuditId"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlowTableStep"."Auditor"" pg_dump: creating COMMENT "public.COLUMN "Sys_WorkFlowTableStep"."AuditStatus"" pg_dump: creating TABLE "public.VSCode_AGVModel" pg_dump: creating TABLE "public.VSCode_Catalog" pg_dump: creating TABLE "public.VSCode_Customer" pg_dump: creating TABLE "public.VSCode_Goods" pg_dump: creating TABLE "public.VSCode_Order" pg_dump: creating TABLE "public.VSCode_OrderList" pg_dump: creating TABLE "public.VSCode_Product" pg_dump: creating TABLE "public.VSCode_ProductColor" pg_dump: creating TABLE "public.VSCode_ProductSize" pg_dump: creating TABLE "public.View_OrderInfo" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."Order_Id"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."OrderNo"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."OrderType"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."TotalQty"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."TotalPrice"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."GoodsId"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."GoodsCode"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."GoodsName"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."Specs"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."Price"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."Qty"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."Img"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."OrderDate"" pg_dump: creating COMMENT "public.COLUMN "View_OrderInfo"."Creator"" pg_dump: processing data for table "public.App_Appointment" pg_dump: processing data for table "public.App_Expert" pg_dump: processing data for table "public.App_News" pg_dump: processing data for table "public.App_ReportPrice" pg_dump: processing data for table "public.App_Transaction" pg_dump: processing data for table "public.App_TransactionAvgPrice" pg_dump: processing data for table "public.Demo_Catalog" pg_dump: processing data for table "public.Demo_Customer" pg_dump: processing data for table "public.Demo_Goods" pg_dump: processing data for table "public.Demo_Order" pg_dump: processing data for table "public.Demo_OrderList" pg_dump: processing data for table "public.Demo_Product" pg_dump: processing data for table "public.Demo_ProductColor" pg_dump: processing data for table "public.Demo_ProductSize" pg_dump: processing data for table "public.FormCollectionObject" pg_dump: processing data for table "public.FormDesignOptions" pg_dump: processing data for table "public.SellOrder" pg_dump: processing data for table "public.SellOrderList" pg_dump: processing data for table "public.Sys_City" pg_dump: processing data for table "public.Sys_Department" pg_dump: processing data for table "public.Sys_Dictionary" pg_dump: processing data for table "public.Sys_DictionaryList" pg_dump: processing data for table "public.Sys_Log" pg_dump: processing data for table "public.Sys_Menu" pg_dump: processing data for table "public.Sys_Province" pg_dump: processing data for table "public.Sys_QuartzLog" pg_dump: processing data for table "public.Sys_QuartzOptions" pg_dump: processing data for table "public.Sys_Role" pg_dump: processing data for table "public.Sys_RoleAuth" pg_dump: processing data for table "public.Sys_TableColumn" pg_dump: processing data for table "public.Sys_TableInfo" pg_dump: processing data for table "public.Sys_User" pg_dump: processing data for table "public.Sys_UserDepartment" pg_dump: processing data for table "public.Sys_WorkFlow" pg_dump: processing data for table "public.Sys_WorkFlowStep" pg_dump: processing data for table "public.Sys_WorkFlowTable" pg_dump: processing data for table "public.Sys_WorkFlowTableAuditLog" pg_dump: processing data for table "public.Sys_WorkFlowTableStep" pg_dump: processing data for table "public.VSCode_AGVModel" pg_dump: processing data for table "public.VSCode_Catalog" pg_dump: processing data for table "public.VSCode_Customer" pg_dump: processing data for table "public.VSCode_Goods" pg_dump: processing data for table "public.VSCode_Order" pg_dump: processing data for table "public.VSCode_OrderList" pg_dump: processing data for table "public.VSCode_Product" pg_dump: processing data for table "public.VSCode_ProductColor" pg_dump: processing data for table "public.VSCode_ProductSize" pg_dump: processing data for table "public.View_OrderInfo" pg_dump: executing SEQUENCE SET app_expert_id_seq pg_dump: executing SEQUENCE SET app_news_id_seq pg_dump: executing SEQUENCE SET app_reportprice_id_seq pg_dump: executing SEQUENCE SET app_transaction_id_seq pg_dump: executing SEQUENCE SET app_transactionavgprice_id_seq pg_dump: executing SEQUENCE SET sys_city_id_seq pg_dump: executing SEQUENCE SET sys_dictionary_id_seq pg_dump: executing SEQUENCE SET sys_dictionarylist_id_seq pg_dump: executing SEQUENCE SET sys_log_id_seq pg_dump: executing SEQUENCE SET sys_menu_id_seq pg_dump: executing SEQUENCE SET sys_province_id_seq pg_dump: executing SEQUENCE SET sys_role_id_seq pg_dump: executing SEQUENCE SET sys_roleauth_id_seq pg_dump: executing SEQUENCE SET sys_tablecolumn_id_seq pg_dump: executing SEQUENCE SET sys_tableinfo_id_seq pg_dump: executing SEQUENCE SET sys_user_id_seq pg_dump: creating CONSTRAINT "public.App_Expert App_Expert_pkey" pg_dump: creating CONSTRAINT "public.App_News App_News_pkey" pg_dump: creating CONSTRAINT "public.App_ReportPrice App_ReportPrice_pkey" pg_dump: creating CONSTRAINT "public.App_TransactionAvgPrice App_TransactionAvgPrice_pkey" pg_dump: creating CONSTRAINT "public.App_Transaction App_Transaction_pkey" pg_dump: creating CONSTRAINT "public.FormCollectionObject FormCollectionObject_pkey" pg_dump: creating CONSTRAINT "public.FormDesignOptions FormDesignOptions_pkey" pg_dump: creating CONSTRAINT "public.SellOrderList SellOrderList_pkey" pg_dump: creating CONSTRAINT "public.SellOrder SellOrder_pkey" pg_dump: creating CONSTRAINT "public.Sys_City Sys_City_pkey" pg_dump: creating CONSTRAINT "public.Sys_Department Sys_Department_pkey" pg_dump: creating CONSTRAINT "public.Sys_DictionaryList Sys_DictionaryList_pkey" pg_dump: creating CONSTRAINT "public.Sys_Dictionary Sys_Dictionary_pkey" pg_dump: creating CONSTRAINT "public.Sys_Log Sys_Log_pkey" pg_dump: creating CONSTRAINT "public.Sys_Menu Sys_Menu_pkey" pg_dump: creating CONSTRAINT "public.Sys_Province Sys_Province_pkey" pg_dump: creating CONSTRAINT "public.Sys_QuartzLog Sys_QuartzLog_pkey" pg_dump: creating CONSTRAINT "public.Sys_QuartzOptions Sys_QuartzOptions_pkey" pg_dump: creating CONSTRAINT "public.Sys_RoleAuth Sys_RoleAuth_pkey" pg_dump: creating CONSTRAINT "public.Sys_Role Sys_Role_pkey" pg_dump: creating CONSTRAINT "public.Sys_TableColumn Sys_TableColumn_pkey" pg_dump: creating CONSTRAINT "public.Sys_TableInfo Sys_TableInfo_pkey" pg_dump: creating CONSTRAINT "public.Sys_UserDepartment Sys_UserDepartment_pkey" pg_dump: creating CONSTRAINT "public.Sys_User Sys_User_pkey" pg_dump: creating CONSTRAINT "public.Sys_WorkFlowStep Sys_WorkFlowStep_pkey" pg_dump: creating CONSTRAINT "public.Sys_WorkFlowTableAuditLog Sys_WorkFlowTableAuditLog_pkey" pg_dump: creating CONSTRAINT "public.Sys_WorkFlowTableStep Sys_WorkFlowTableStep_pkey" pg_dump: creating CONSTRAINT "public.Sys_WorkFlowTable Sys_WorkFlowTable_pkey" pg_dump: creating CONSTRAINT "public.Sys_WorkFlow Sys_WorkFlow_pkey" pg_dump: creating CONSTRAINT "public.VSCode_Catalog pk_demo_catalog" pg_dump: creating CONSTRAINT "public.VSCode_Customer pk_demo_customer" pg_dump: creating CONSTRAINT "public.VSCode_Goods pk_demo_goods" pg_dump: creating CONSTRAINT "public.VSCode_Order pk_demo_order" pg_dump: creating CONSTRAINT "public.VSCode_OrderList pk_demo_orderlist" pg_dump: creating CONSTRAINT "public.VSCode_Product pk_demo_product" pg_dump: creating CONSTRAINT "public.VSCode_ProductColor pk_demo_productcolor" pg_dump: creating CONSTRAINT "public.VSCode_ProductSize pk_demo_productsize" pg_dump: creating CONSTRAINT "public.Demo_Catalog public_Demo_Catalog_pkey" pg_dump: creating CONSTRAINT "public.Demo_Customer public_Demo_Customer_pkey" pg_dump: creating CONSTRAINT "public.Demo_Goods public_Demo_Goods_pkey" pg_dump: creating CONSTRAINT "public.Demo_OrderList public_Demo_OrderList_pkey" pg_dump: creating CONSTRAINT "public.Demo_Order public_Demo_Order_pkey" pg_dump: creating CONSTRAINT "public.Demo_ProductColor public_Demo_ProductColor_pkey" pg_dump: creating CONSTRAINT "public.Demo_ProductSize public_Demo_ProductSize_pkey" pg_dump: creating CONSTRAINT "public.Demo_Product public_Demo_Product_pkey" pg_dump: creating CONSTRAINT "public.View_OrderInfo public_View_OrderInfo_pkey"
最新发布
08-01
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值