Skip to content

Core\Db\Column

Describes one column of a query result: its name, its type, and whether it can contain null.

Members

3 members.

MemberSignature
namename(): string
typetype(): Core\Db\Column::Type
isNullableisNullable(): bool

Enums

  • TypeThe type a result column was declared with. It describes the column, not the value you get when you read it. For example, a JSON column and a TEXT column both read as tainted string. This type tells them apart, if the database has a separate type for each.

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.