laravel-db-portable
The driver requires laravel-db-portable, and its query builder implements that package's contracts:
HistoricalReads:asOfTime($time)reads thefromtable as XTDB had stored it then (FOR SYSTEM_TIME AS OF; a DateTimeInterface, a timestamp or'-10s'),readCurrent()undoes it,readStale()reads current data (reads do not contend with writes).SearchBox:whereStartsWith(),whereContains()andsuggest()comparelower()values withposition(); XTDB has no full-text search, sosearchFullText()and*FullTextRelevance()throwUnsupportedFeatureException.
php
Order::query()->asOfTime(now()->subHour())->sum('total'); // the totals as they were an hour ago
Word::suggest('word', $search)->limit(10)->get();