Mercurial > urweb
comparison src/postgres.sml @ 1464:969b90b1f2f9
Configuration detects proper header files for database dev libraries
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 29 May 2011 13:31:53 -0400 |
parents | 4a6f84092399 |
children | daf71c76707e |
comparison
equal
deleted
inserted
replaced
1463:607657eb2865 | 1464:969b90b1f2f9 |
---|---|
1024 fun p_cast (s, t) = s ^ "::" ^ p_sql_type t | 1024 fun p_cast (s, t) = s ^ "::" ^ p_sql_type t |
1025 | 1025 |
1026 fun p_blank (n, t) = p_cast ("$" ^ Int.toString n, t) | 1026 fun p_blank (n, t) = p_cast ("$" ^ Int.toString n, t) |
1027 | 1027 |
1028 val () = addDbms {name = "postgres", | 1028 val () = addDbms {name = "postgres", |
1029 header = "postgresql/libpq-fe.h", | 1029 header = Config.pgheader, |
1030 link = "-lpq", | 1030 link = "-lpq", |
1031 p_sql_type = p_sql_type, | 1031 p_sql_type = p_sql_type, |
1032 init = init, | 1032 init = init, |
1033 query = query, | 1033 query = query, |
1034 queryPrepared = queryPrepared, | 1034 queryPrepared = queryPrepared, |