Join 4,000+ others and never miss out on new tips, tutorials, and more.
Latest version:
pecl install openswoole-25.2.0 | composer require openswoole/core:22.1.5
<?php OpenSwoole\Coroutine\PostgreSQL->prepare(string $name, string $sql): void
The name of the query, must be a unique name you can use to refer to query that is being prepared.
The actual SQL query you want to prepare and then later execute.
None
Prepare a SQL statement and later execute it. This helps prevent SQL inject attacks, you should never trust data from unknown sources like a user, always prepare a statement and bind data to it.
When you prepare a statement you then use execute()
to run the query, it's definition looks like this: