From 7dd33a85a537c410cd3b31d661731b1f8d1e7d59 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 10 Sep 2012 11:09:56 +0000 Subject: Rework type handling; reducing the number of paremeters being passed around as well as libpq calls. --- Frameworks/PostgresKit/Source/FLXConstants.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'Frameworks/PostgresKit/Source/FLXConstants.h') diff --git a/Frameworks/PostgresKit/Source/FLXConstants.h b/Frameworks/PostgresKit/Source/FLXConstants.h index 95ab17f6..b3aeaed9 100644 --- a/Frameworks/PostgresKit/Source/FLXConstants.h +++ b/Frameworks/PostgresKit/Source/FLXConstants.h @@ -20,14 +20,6 @@ // License for the specific language governing permissions and limitations under // the License. -// Result set row types -typedef enum -{ - FLXPostgresResultRowAsArray = 1, - FLXPostgresResultRowAsDictionary = 2 -} -FLXPostgresResultRowType; - // Defaults extern NSString *FLXPostgresConnectionDefaultEncoding; extern NSString *FLXPostgresConnectionErrorDomain; @@ -39,3 +31,14 @@ extern NSString *FLXPostgresParameterClientEncoding; extern NSString *FLXPostgresParameterSuperUser; extern NSString *FLXPostgresParameterTimeZone; extern NSString *FLXPostgresParameterIntegerDateTimes; + +// Value specifiers +extern const char *FLXPostgresResultValueMacAddr; +extern const char *FLXPostgresResultValueInet; +extern const char *FLXPostgresResultValueCidr; +extern const char *FLXPostgresResultValueDate; +extern const char *FLXPostgresResultValueTime; +extern const char *FLXPostgresResultValueTimeTZ; +extern const char *FLXPostgresResultValueTimestamp; +extern const char *FLXPostgresResultValueTimestmpTZ; +extern const char *FLXPostgresResultValueInterval; -- cgit v1.2.3