Core\Db\Row
One row of a query result. Its methods read a column by name and return it as a given type.
Members
14 members.
| Member | Signature |
|---|---|
has | has(string $name): bool |
get | get(string $name): mixed |
toArray | toArray(): array<mixed> |
string | string(string $name): ?tainted string |
bytes | bytes(string $name): ?tainted bytes |
int | int(string $name): ?int |
uint | uint(string $name): ?uint |
float | float(string $name): ?float |
bool | bool(string $name): ?bool |
decimal | decimal(string $name): ?decimal |
instant | instant(string $name): ?Core\Time\Instant |
date | date(string $name): ?Core\Time\Date |
time | time(string $name): ?Core\Time\TimeOfDay |
uuid | uuid(string $name): ?Core\Uuid |
Example apps
These complete apps use this class. You can download and run each one.
- Chat: A chat app with rooms, WebSockets and SQLite. One Novis server sends the pages and runs every connection, with no separate WebSocket server and no library.
- Notes: A small notes app with SQLite, HTML pages, a JSON API, form checks and tests. Download it, run it and start your own app from it.
- Poll: A live poll with SQLite and server-sent events. Every open page shows each new vote at once, with no extra server and no library.
