mysql_stmt_fetch_column(3)

πŸ“¦
version 13.0.2 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ mysql_stmt_fetch_column β€” the MariaDB Connector/C glow-up πŸ’…

okay bestie, quick vibe check: this is a page from the MariaDB Connector/C manual, and we're talking about mysql_stmt_fetch_column. it's giving ✨precision snacking✨ β€” you don't have to eat the whole column in one bite.


πŸŽ€ NAME πŸŽ€

mysql_stmt_fetch_column β€” fetches a single column into a bind buffer 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <mysql.h>

int mysql_stmt_fetch_column(MYSQL_STMT * stmt,
                            MYSQL_BIND * bind_arg,
                            unsigned int column,
                            unsigned long offset);

🌸 DESCRIPTION 🌸

so like. sometimes a column is huge. like, unreasonably big. and this function is the answer to that, no cap: you can use mysql_stmt_fetch_column to fetch large data of a single column in pieces. little bites. tiny sips. one chunk at a time, on your terms πŸ’–


🌈 PARAMETER 🌈

  • stmt β€” a statement handle, which was previously allocated by mysql_stmt_init(3). your main character, basically πŸ‘‘
  • bind_arg β€” a pointer to a MYSQL_BIND structure.
  • column β€” number of column, first column is numbered zero. yes bestie, zero-indexed, we start counting at 0 πŸ’€
  • offset β€” offset at which to begin retrieving data.

⭐ RETURN VALUE ⭐

Returns zero on success, non-zero on failure. that's it, that's the tea πŸ“


πŸ’œ NOTES πŸ’œ

  • The size of the buffer is specified within MYSQL_BIND structure. so like, the MYSQL_BIND is holding the bag on how much room you've got πŸŽ€

πŸ”₯ SEE ALSO πŸ”₯


and that's a wrap, bestie!! this was Version 3.4 of the MariaDB Connector/C manual, mysql_stmt_fetch_column(3) β€” go forth and fetch in pieces, you icon πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from