mysql-native: API Refresh RC

Nick Sabalausky via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Feb 2 14:48:07 PST 2017


On 02/02/2017 04:33 AM, Suliman wrote:
> ResultSet querySet(Connection conn, string sql, ColumnSpecialization[]
> csa = null)
>
> Could you explain last parameter?
>
> `ColumnSpecialization[] csa = null`. I can't understand how to use it.
>

The vast majority of the time, you don't need to worry about that 
parameter, just omit it. It's just for if the fields you're pulling from 
the DB are very, very large and you want to handle the data as it comes 
in, rather than waiting for all the data to download. If you want to 
know more, it's in the documentation here:

http://semitwist.com/mysql-native-docs/v0.2.0-preview1/mysql/protocol/extra_types/ColumnSpecialization.html

>
> Also I think it's better to remove old deprecated methods at all,
> because it's add only mess.

They're still there for new just for backwards compatibility. But they 
are deprecated and will be removed in a later release.


More information about the Digitalmars-d-announce mailing list