class ReadyForQuery extends PGMessage {

    public static ReadyForQuery loadFromPacket(byte[] packet) {
        byte status = packet[packet.length - 1];
        switch (status) {
            case IDLE_BYTE:
                return IDLE;
            case IN_TX_BYTE:
                return IN_TX;
            case IN_FAILED_TX_BYTE:
                return IN_FAILED_TX;
            default:
                throw new IllegalArgumentException(
                    "illegal ReadyForQuery packet " + Arrays.toString(packet));
        }
    }

      ReadyForQuery(byte status);

}