for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Staudenmeir\EloquentJsonRelations\Grammars;
use Illuminate\Database\ConnectionInterface;
use Illuminate\Database\Query\Grammars\SQLiteGrammar as Base;
use RuntimeException;
class SqliteGrammar extends Base implements JsonGrammar
{
/**
* Compile a "JSON array" statement into SQL.
*
* @param string $column
* @return string
*/
public function compileJsonArray($column)
return $this->wrap($column);
}
* Compile a "JSON object" statement into SQL.
* @param int $levels
public function compileJsonObject($column, $levels)
throw new RuntimeException('This database is not supported.'); // @codeCoverageIgnore
* Compile a "JSON value select" statement into SQL.
public function compileJsonValueSelect(string $column): string
* Determine whether the database supports the "member of" operator.
* @param \Illuminate\Database\ConnectionInterface $connection
* @return bool
public function supportsMemberOf(ConnectionInterface $connection): bool
return false;
* Compile a "member of" statement into SQL.
* @param string|null $objectKey
* @param mixed $value
public function compileMemberOf(string $column, ?string $objectKey, mixed $value): string
* Prepare the bindings for a "member of" statement.
* @return array
public function prepareBindingsForMemberOf(mixed $value): array