{"id":203970,"date":"2013-11-28T12:56:03","date_gmt":"2013-11-28T08:56:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=203970"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=203970","title":{"rendered":"<span class=\"post_title\">\u042d\u043c\u0443\u043b\u044f\u0446\u0438\u044f LINQ for SQL \u043d\u0430 Delphi<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438.<br \/>  \u0418\u043c\u0435\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u041a\u043b\u0438\u0435\u043d\u0442-\u0421\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0435\u043a\u0442. \u041a\u043b\u0438\u0435\u043d\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 SQL \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0430 SQL \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0417\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043c\u043d\u043e\u0433\u043e, \u043b\u043e\u0433\u0438\u043a\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043c\u0430\u0437\u0430\u043d\u0430 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u043c\u0443 \u043a\u043e\u0434\u0443. \u041f\u0440\u043e\u0435\u043a\u0442 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u041a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u043c\u0435\u0441\u0442\u0430, \u0433\u0434\u0435 \u0432 \u043a\u043e\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0443\u0436\u0435 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u044f? \u041a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044e \u043d\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440? \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0430\u0441\u043a\u0430\u043b\u0435\u0432\u0441\u043a\u0438\u0439 \u043a\u043e\u0434 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d \u043a SQL \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0443.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440.<br \/>  \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0438\u043c\u0435\u0435\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u0432\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b:  <\/p>\n<pre><code class=\"sql\">CREATE TABLE PERSON (     ID          INTEGER NOT NULL,     SURNAME VARCHAR(100) NOT NULL,     EMPLOYMENT  INTEGER,     MOTHER      INTEGER,     FATHER      INTEGER );  CREATE TABLE EMPLOYMENT (     ID           INTEGER NOT NULL,     DESCRIPTION  VARCHAR(100) NOT NULL ); <\/code><\/pre>\n<p>  \u041e\u0447\u0435\u043d\u044c \u0445\u043e\u0447\u0435\u043c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c SQL \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u0430\u0441\u043a\u0430\u043b\u0435 (\u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0432 \u043d\u0451\u043c \u0438\u0441\u043a\u0430\u0442\u044c \u043b\u043e\u0433\u0438\u043a\u0443):  <\/p>\n<pre><code class=\"sql\">select  P.ID,P.SURNAME  from Person P,Person F,Employment E  where P.FATHER=F.ID    and P.EMPLOYMENT=E.ID    and (F.SURNAME&lt;&gt;P.SURNAME or E.Description='U.S. President')    and P.MOTHER&lt;&gt;20 <\/code><\/pre>\n<p>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435.<br \/>  \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430 Delphi 2007. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f SQL \u0437\u0430\u043f\u0440\u043e\u0441\u0430:  <\/p>\n<pre><code class=\"delphi\">function GetTestSql: String; var   aBulder: TSuperBaseSqlBulder;   P: TPersonTable;   F: TPersonTable;   E: TEmploymentTable; begin   aBulder := TSuperBaseSqlBulder.Create;   try     P := aBulder.AddPersonTable('P');     F := aBulder.AddPersonTable('F');     E := aBulder.AddEmploymentTable('E');     Result :=       (         (P.Father = F.ID)         and (P.Employment = E.ID)         and ( (F.Surname &lt;&gt; P.Surname) or (E.Description = 'U.S. President') )         and (P.Mother &lt;&gt; 20)       ).Select([P.ID, P.Surname]);   finally     aBulder.Free;   end; end; <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043f\u043e\u043b\u0435 \u00abResult :=\u00bb \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 LINQ. \u041a\u0430\u043a \u0443\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0435\u0440\u0435\u0432\u0430\u0440\u0438\u0442\u044c \u044d\u0442\u043e? \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0430\u043c \u043d\u0430\u0434\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u0430\u0448\u0435\u0439 \u0431\u0430\u0437\u044b. \u0412 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0432\u044b \u043d\u0430\u043f\u0438\u0448\u0435\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0411\u0414 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0442\u0430\u043a\u043e\u0435:  <\/p>\n<pre><code class=\"delphi\">uses   UKSqlBulder;  type   TPersonTable = class(TSqlTable)     property ID: TCondField_Integer          index 0 read GetCondFields_Integer;     property Surname: TCondField_String      index 1 read GetCondFields_String;     property Employment: TCondField_Integer  index 2 read GetCondFields_Integer;     property Mother: TCondField_Integer      index 3 read GetCondFields_Integer;     property Father: TCondField_Integer      index 4 read GetCondFields_Integer;   end;    TEmploymentTable = class(TSqlTable)     property ID: TCondField_Integer          index 0 read GetCondFields_Integer;     property Description: TCondField_String  index 1 read GetCondFields_String;   end;    TSuperBaseSqlBulder = class(TSqlBulder)     function AddPersonTable(const aAlias: String = ''): TPersonTable;     function AddEmploymentTable(const aAlias: String = ''): TEmploymentTable;   end;  implementation  { TSuperBaseSqlBulder }  function TSuperBaseSqlBulder.AddPersonTable(const aAlias: String = ''): TPersonTable; begin   Result := TPersonTable.Create;   Result.Name := 'Person';   Result.Alias := aAlias;   Result.Add(TSqlField_Integer.Create('ID'));   Result.Add(TSqlField_String.Create('SURNAME'));   Result.Add(TSqlField_Integer.Create('EMPLOYMENT'));   Result.Add(TSqlField_Integer.Create('MOTHER'));   Result.Add(TSqlField_Integer.Create('FATHER'));   Add(Result); end;  function TSuperBaseSqlBulder.AddEmploymentTable(const aAlias: String = ''): TEmploymentTable; begin   Result := TEmploymentTable.Create;   Result.Name := 'Employment';   Result.Alias := aAlias;   Result.Add(TSqlField_Integer.Create('ID'));   Result.Add(TSqlField_String.Create('Description'));   Add(Result); end; <\/code><\/pre>\n<p>  \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 UKSqlBulder:  <\/p>\n<pre><code class=\"delphi\">unit UKSqlBulder;  interface  uses   Contnrs;  type   TSqlBulder = class;   TSqlTable = class;   TSqlField = class;   TSqlField_Integer = class;   TSqlField_String = class;    TRCondition = record   private     AsSql: String;   public     class operator LogicalAnd(const A, B: TRCondition): TRCondition;     class operator LogicalOr(const A, B: TRCondition): TRCondition;     function Select(const aFields: array of TSqlField): String;   end;   TCondField_Integer = record     Field: TSqlField_Integer;     class operator Equal(const A, B: TCondField_Integer): TRCondition;     class operator NotEqual(const A, B: TCondField_Integer): TRCondition;     class operator Equal(const A: TCondField_Integer; const aArg: Integer): TRCondition;     class operator NotEqual(const A: TCondField_Integer; const aArg: Integer): TRCondition;      class operator Implicit(A: TCondField_Integer): TSqlField;   end;    TCondField_String = record     Field: TSqlField_String;     class operator Equal(const A, B: TCondField_String): TRCondition;     class operator NotEqual(const A, B: TCondField_String): TRCondition;     class operator Equal(const A: TCondField_String; const aArg: String): TRCondition;     class operator NotEqual(const A: TCondField_String; const aArg: String): TRCondition;      class operator Implicit(A: TCondField_String): TSqlField;   end;   PRField_Integer = ^TCondField_Integer;   PRField_String = ^TCondField_String;    TSqlBulder = class(TObjectList)   private     function GetTables(aIndex: Integer): TSqlTable;   protected     procedure Add(aTable: TSqlTable);   public     property Tables[aIndex: Integer]: TSqlTable read GetTables; default;   end;    TSqlField = class     Table: TSqlTable;     Name: String;     function FullName: String;     constructor Create(const aName: String);   end;    TSqlField_Integer = class(TSqlField)   end;   TSqlField_String = class(TSqlField)     Length: String;   end;    TSqlTable = class(TObjectList)   private     Bulder: TSqlBulder;     function GetFields(aIndex: Integer): TSqlField;   protected     Alias: String;     Name: String;     function GetCondFields_Integer(aIndex: Integer): TCondField_Integer;     function GetCondFields_String(aIndex: Integer): TCondField_String;     procedure Add(aField: TSqlField);   public     property Fields[aIndex: Integer]: TSqlField read GetFields; default;   end;  implementation  uses   SysUtils;  { TSqlTable }  procedure TSqlTable.Add(aField: TSqlField); begin   inherited Add(aField);   aField.Table := self; end;  function TSqlTable.GetFields(aIndex: Integer): TSqlField; begin   Result := TSqlField(inherited Items[aIndex]); end;  function TSqlTable.GetCondFields_Integer(aIndex: Integer): TCondField_Integer; begin   Result.Field := Fields[aIndex] as TSqlField_Integer; end;  function TSqlTable.GetCondFields_String(aIndex: Integer): TCondField_String; begin   Result.Field := Fields[aIndex] as TSqlField_String; end;  { TSqlField }  constructor TSqlField.Create(const aName: String); begin   inherited Create;   Name := aName; end;  function TSqlField.FullName: String; begin   Result := Table.Alias + '.' + Name; end;  { TCondField_Integer }  class operator TCondField_Integer.Implicit(A: TCondField_Integer): TSqlField; begin   Result := A.Field; end;  class operator TCondField_Integer.Equal(const A, B: TCondField_Integer): TRCondition; begin   Result.AsSql := A.Field.FullName + '=' + B.Field.FullName; end;  class operator TCondField_Integer.NotEqual(const A, B: TCondField_Integer): TRCondition; begin   Result.AsSql := A.Field.FullName + '&lt;&gt;' + B.Field.FullName; end;  class operator TCondField_Integer.Equal(const A: TCondField_Integer; const aArg: Integer): TRCondition; begin   Result.AsSql := A.Field.FullName + '=' + IntToStr(aArg); end;  class operator TCondField_Integer.NotEqual(const A: TCondField_Integer; const aArg: Integer): TRCondition; begin   Result.AsSql := A.Field.FullName + '&lt;&gt;' + IntToStr(aArg); end;  { TCondField_String }  class operator TCondField_String.Implicit(A: TCondField_String): TSqlField; begin   Result := A.Field; end;  class operator TCondField_String.Equal(const A, B: TCondField_String): TRCondition; begin   Result.AsSql := A.Field.FullName + '=' + B.Field.FullName; end;  class operator TCondField_String.NotEqual(const A, B: TCondField_String): TRCondition; begin   Result.AsSql := A.Field.FullName + '&lt;&gt;' + B.Field.FullName; end;  class operator TCondField_String.Equal(const A: TCondField_String; const aArg: String): TRCondition; begin   Result.AsSql := A.Field.FullName + '=''' + aArg + ''''; end;  class operator TCondField_String.NotEqual(const A: TCondField_String; const aArg: String): TRCondition; begin   Result.AsSql := A.Field.FullName + '&lt;&gt;''' + aArg + ''''; end;  { TRCondition }  function TRCondition.Select(const aFields: array of TSqlField): String; var   i: Integer;   aSelect, aFrom: String;   aBulder: TSqlBulder;   aTable: TSqlTable; begin   if Length(aFields) &lt;= 0 then     raise Exception.Create('Invalid argument');    aBulder := aFields[0].Table.Bulder;   aFrom := '';   for i := 0 to aBulder.Count - 1 do   begin     aTable := aBulder[i];     aFrom := aFrom + aTable.Name + ' ' + aTable.Alias + ',';   end;   aFrom[Length(aFrom)] := ' ';    aSelect := '';   for i := 0 to Length(aFields) - 1 do   begin     aSelect := aSelect + aFields[i].FullName + ',';   end;   aSelect[Length(aSelect)] := ' ';    Result := Format('select %sfrom %swhere %s', [aSelect, aFrom, AsSql]); end;  class operator TRCondition.LogicalAnd(const A, B: TRCondition): TRCondition; begin   Result.AsSql := A.AsSql + ' and ' + B.AsSql; end;  class operator TRCondition.LogicalOr(const A, B: TRCondition): TRCondition; begin   Result.AsSql := '(' + A.AsSql + ' or ' + B.AsSql + ')'; end;  { TSqlBulder }  procedure TSqlBulder.Add(aTable: TSqlTable); var   aPrefix: String; begin   if aTable.Alias = '' then   begin     if Count &gt; 0 then       aPrefix := 'T' + IntToStr(Count + 1) + '_'     else       aPrefix := 'T_';     aTable.Alias := aPrefix + aTable.Name;   end;   aTable.Bulder := self;   inherited Add(aTable); end;  function TSqlBulder.GetTables(aIndex: Integer): TSqlTable; begin   Result := TSqlTable(inherited Items[aIndex]); end;  end. <\/code><\/pre>\n<p>   \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/203970\/\"> http:\/\/habrahabr.ru\/post\/203970\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438.<br \/>  \u0418\u043c\u0435\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u041a\u043b\u0438\u0435\u043d\u0442-\u0421\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0435\u043a\u0442. \u041a\u043b\u0438\u0435\u043d\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 SQL \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0430 SQL \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0417\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043c\u043d\u043e\u0433\u043e, \u043b\u043e\u0433\u0438\u043a\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043c\u0430\u0437\u0430\u043d\u0430 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u043c\u0443 \u043a\u043e\u0434\u0443. \u041f\u0440\u043e\u0435\u043a\u0442 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u041a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u043c\u0435\u0441\u0442\u0430, \u0433\u0434\u0435 \u0432 \u043a\u043e\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0443\u0436\u0435 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u044f? \u041a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044e \u043d\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440? \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0430\u0441\u043a\u0430\u043b\u0435\u0432\u0441\u043a\u0438\u0439 \u043a\u043e\u0434 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d \u043a SQL \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0443.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-203970","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/203970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=203970"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/203970\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=203970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=203970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=203970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}