aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PostgresKit/Source/FLXConstants.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-09-11 09:35:40 +0000
committerstuconnolly <stuart02@gmail.com>2012-09-11 09:35:40 +0000
commitab9c87af48c8831a5bbd4b924e9200df92a78e0e (patch)
tree8de310cb838d579f12091820b061a2bfb24ac0ce /Frameworks/PostgresKit/Source/FLXConstants.m
parent7dd33a85a537c410cd3b31d661731b1f8d1e7d59 (diff)
downloadsequelpro-ab9c87af48c8831a5bbd4b924e9200df92a78e0e.tar.gz
sequelpro-ab9c87af48c8831a5bbd4b924e9200df92a78e0e.tar.bz2
sequelpro-ab9c87af48c8831a5bbd4b924e9200df92a78e0e.zip
Add the ability for the client application to set the PostgreSQL application name when connecting.
Diffstat (limited to 'Frameworks/PostgresKit/Source/FLXConstants.m')
-rw-r--r--Frameworks/PostgresKit/Source/FLXConstants.m23
1 files changed, 21 insertions, 2 deletions
diff --git a/Frameworks/PostgresKit/Source/FLXConstants.m b/Frameworks/PostgresKit/Source/FLXConstants.m
index 14771072..4f82bef8 100644
--- a/Frameworks/PostgresKit/Source/FLXConstants.m
+++ b/Frameworks/PostgresKit/Source/FLXConstants.m
@@ -20,16 +20,23 @@
// License for the specific language governing permissions and limitations under
// the License.
-NSString *FLXPostgresConnectionDefaultEncoding = @"UNICODE";
-NSString *FLXPostgresConnectionErrorDomain = @"FLXPostgresConnectionError";
+// Connection defaults
+const NSUInteger FLXPostgresConnectionDefaultTimeout = 30;
+const NSUInteger FLXPostgresConnectionDefaultServerPort = 5432;
+const NSUInteger FLXPostgresConnectionDefaultKeepAlive = 60;
+
+NSString *FLXPostgresConnectionDefaultEncoding = @"UNICODE";
+NSString *FLXPostgresConnectionErrorDomain = @"FLXPostgresConnectionError";
NSStringEncoding FLXPostgresConnectionDefaultStringEncoding = NSUTF8StringEncoding;
+// Server parameters
NSString *FLXPostgresParameterServerEncoding = @"server_encoding";
NSString *FLXPostgresParameterClientEncoding = @"client_encoding";
NSString *FLXPostgresParameterSuperUser = @"is_superuser";
NSString *FLXPostgresParameterTimeZone = @"TimeZone";
NSString *FLXPostgresParameterIntegerDateTimes = @"integer_datetimes";
+// Result value specifiers
const char *FLXPostgresResultValueMacAddr = "%macaddr";
const char *FLXPostgresResultValueInet = "%inet";
const char *FLXPostgresResultValueCidr = "%cidr";
@@ -39,3 +46,15 @@ const char *FLXPostgresResultValueTimeTZ = "%timetz";
const char *FLXPostgresResultValueTimestamp = "%timestamp";
const char *FLXPostgresResultValueTimestmpTZ = "%timestamptz";
const char *FLXPostgresResultValueInterval = "%interval";
+
+// Connection parameters
+const char *FLXPostgresKitApplicationName = "PostgresKit";
+const char *FLXPostgresApplicationParam = "application_name";
+const char *FLXPostgresUserParam = "user";
+const char *FLXPostgresHostParam = "host";
+const char *FLXPostgresPasswordParam = "password";
+const char *FLXPostgresPortParam = "port";
+const char *FLXPostgresDatabaseParam = "dbname";
+const char *FLXPostgresClientEncodingParam = "client_encoding";
+const char *FLXPostgresKeepAliveParam = "keepalives";
+const char *FLXPostgresKeepAliveIntervalParam = "keepalives_interval";