method getCreateKeys documentation in bbn\Db\Languages\Sqlite

function(string $table, array $model = NULL) { $st = ''; if (!$model) { $model = $this->modelize($table); } if ($model && !empty($model['keys'])) { foreach ($model['keys'] as $name => $key) { if ($name === 'PRIMARY') { continue; } $st .= 'CREATE '; if (!empty($key['unique'])) { $st .= 'UNIQUE '; } $st .= 'INDEX \''.Str::escapeSquotes($name).'\' ON ' . $this->escape($table); $st .= ' ('.X::join( array_map( function ($a) { return $this->escape($a); }, $key['columns'] ), ', ' ).')'; $st .= ';' . PHP_EOL; } } return $st; }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.