mysql-native v1.2.0

API Reference Home: [This Version] [Latest Version] [Other Versions]


Function PreparedImpl.querySet

Execute a prepared SQL SELECT command where you expect the entire result set all at once.

deprecated ResultSet querySet (
  ColumnSpecialization[] csa = null
);

This is deprecated because the same thing can be achieved via query(). array().

If the SQL command does not produce a result set (such as INSERT/CREATE/etc), then MYXNoResultRecieved will be thrown. Use exec instead for such commands.

If there are long data items among the expected result columns you can use the csa param to specify that they are to be subject to chunked transfer via a delegate.

Type Mappings

See the MySQL/D Type Mappings tables

Parameters

NameDescription
csa An optional array of ColumnSpecialization structs.

Returns

A (possibly empty) ResultSet.

Example

// Do this instead of using querySet:
Row[] allAtOnce = myPrepared.query("SELECT * from myTable").array;