PGResult
public final class PGResult
result object
-
Result Status enum
See moreDeclaration
Swift
public enum StatusType
-
close result object
Declaration
Swift
public func close()
-
clear and disconnect result object
Declaration
Swift
public func clear()
-
Result Status number as Int
Declaration
Swift
public func statusInt() -> Int
-
Result Status Value
Declaration
Swift
public func status() -> StatusType
-
Result Status Message
Declaration
Swift
public func errorMessage() -> String
-
Result field count
Declaration
Swift
public func numFields() -> Int
-
Field name for index value
Declaration
Swift
public func fieldName(index: Int) -> String?
-
Field type for index value
Declaration
Swift
public func fieldType(index: Int) -> Oid?
-
number of rows (Tuples) returned in result
Declaration
Swift
public func numTuples() -> Int
-
test null field at row index for field index
Declaration
Swift
public func fieldIsNull(tupleIndex: Int, fieldIndex: Int) -> Bool
-
return value for String field type with row and field indexes provided
Declaration
Swift
public func getFieldString(tupleIndex: Int, fieldIndex: Int) -> String
-
return value for Int field type with row and field indexes provided
Declaration
Swift
public func getFieldInt(tupleIndex: Int, fieldIndex: Int) -> Int
-
return value for Bool field type with row and field indexes provided
Declaration
Swift
public func getFieldBool(tupleIndex: Int, fieldIndex: Int) -> Bool
-
return value for Int8 field type with row and field indexes provided
Declaration
Swift
public func getFieldInt8(tupleIndex: Int, fieldIndex: Int) -> Int8
-
return value for Int16 field type with row and field indexes provided
Declaration
Swift
public func getFieldInt16(tupleIndex: Int, fieldIndex: Int) -> Int16
-
return value for Int32 field type with row and field indexes provided
Declaration
Swift
public func getFieldInt32(tupleIndex: Int, fieldIndex: Int) -> Int32
-
return value for Int64 field type with row and field indexes provided
Declaration
Swift
public func getFieldInt64(tupleIndex: Int, fieldIndex: Int) -> Int64
-
return value for Double field type with row and field indexes provided
Declaration
Swift
public func getFieldDouble(tupleIndex: Int, fieldIndex: Int) -> Double
-
return value for Float field type with row and field indexes provided
Declaration
Swift
public func getFieldFloat(tupleIndex: Int, fieldIndex: Int) -> Float
-
return value for Blob field type with row and field indexes provided
Declaration
Swift
public func getFieldBlob(tupleIndex: Int, fieldIndex: Int) -> [Int8]