1
-----------------------------------------------------------------------
4
-- Copyright (C) 2005-2008, AdaCore --
6
-- GPS is free software; you can redistribute it and/or modify it --
7
-- under the terms of the GNU General Public License as published by --
8
-- the Free Software Foundation; either version 2 of the License, or --
9
-- (at your option) any later version. --
11
-- This program is distributed in the hope that it will be useful, --
12
-- but WITHOUT ANY WARRANTY; without even the implied warranty of --
13
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
14
-- General Public License for more details. You should have received --
15
-- a copy of the GNU General Public License along with this program; --
16
-- if not, write to the Free Software Foundation, Inc., 59 Temple --
17
-- Place - Suite 330, Boston, MA 02111-1307, USA. --
18
-----------------------------------------------------------------------
20
with GNATCOLL.SQL.Postgres.Builder;
22
package body GNATCOLL.SQL.Postgres is
24
N_OID : aliased constant String := "OID";
26
-------------------------------
27
-- Build_Postgres_Connection --
28
-------------------------------
30
function Build_Postgres_Connection return Database_Connection is
32
return GNATCOLL.SQL.Postgres.Builder.Build_Postgres_Connection;
33
end Build_Postgres_Connection;
39
function OID_Field (Table : SQL_Table'Class) return SQL_Field_Integer is
41
return SQL_Field_Integer'
42
(Table => Table.Table_Name,
43
Instance => Table.Instance,
44
Name => N_OID'Access);
47
end GNATCOLL.SQL.Postgres;