Skip to content

Handle NAME Type in PropertyData.string Property

Pre-release
Pre-release
Compare
Choose a tag to compare
@tanner0101 tanner0101 released this 18 Feb 19:34
79da46b

Allows data that is contained as the .name type to be accessed through the PostgresData.string property.

var buffer = ByteBufferAllocator().buffer(capacity: 13)
buffer.writeString("password_hash")

let data = PostgresData(.name, value: buffer)
let string = data.string

// string == "password_hash"