<commit_before><?php
/**
 * This file is part of morpho-os/framework
 * It is distributed under the 'Apache License Version 2.0' license.
 * See the https://github.com/morpho-os/framework/blob/master/LICENSE for the full license text.
 */
namespace Morpho\Db\Sql\Sqlite;

use Morpho\Base\NotImplementedException;
use Morpho\Db\Sql\Result;
use Morpho\Db\Sql\Schema as BaseSchema;

class Schema extends BaseSchema {
    /**
     * This function uses slightly changed getListTablesSQL() method from the doctrine/dbal package
     * (https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php)
     */
    public function tableNames(): Result {
        return $this->db->select("name
            FROM sqlite_master
            WHERE type = 'table' AND name != 'sqlite_sequence' AND name != 'geometry_columns' AND name != 'spatial_ref_sys'
            UNION ALL
            SELECT name
            FROM sqlite_temp_master
            WHERE type = 'table'
            ORDER BY name");
    }

    public function tableExists(string $tableName): bool {
        throw new NotImplementedException();
    }

    public function deleteTable(string $tableName)/*: void */ {
        throw new NotImplementedException();
    }

    public function tableDefinitionToSql(string $tableName, array $tableDefinition): array {
        throw new NotImplementedException();
    }

    public function deleteTableIfExists(string $tableName)/*: void */ {
        throw new NotImplementedException();
    }
}<commit_msg>Fixed return types, added missing methods<commit_after><?php
/**
 * This file is part of morpho-os/framework
 * It is distributed under the 'Apache License Version 2.0' license.
 * See the https://github.com/morpho-os/framework/blob/master/LICENSE for the full license text.
 */
namespace Morpho\Db\Sql\Sqlite;

use Morpho\Base\NotImplementedException;
use Morpho\Db\Sql\Schema as BaseSchema;

class Schema extends BaseSchema {
    /**
     * This function uses slightly changed getListTablesSQL() method from the doctrine/dbal package
     * (https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php)
     */
    public function tableNames(): iterable {
        return $this->db->select("name
            FROM sqlite_master
            WHERE type = 'table' AND name != 'sqlite_sequence' AND name != 'geometry_columns' AND name != 'spatial_ref_sys'
            UNION ALL
            SELECT name
            FROM sqlite_temp_master
            WHERE type = 'table'
            ORDER BY name");
    }

    public function tableExists(string $tableName): bool {
        throw new NotImplementedException();
    }

    public function deleteTable(string $tableName): void {
        throw new NotImplementedException();
    }

    public function tableDefinitionToSql(string $tableName, array $tableDefinition): array {
        throw new NotImplementedException();
    }

    public function deleteTableIfExists(string $tableName): void {
        throw new NotImplementedException();
    }

    public function createDatabase(string $dbName): void {
        throw new NotImplementedException();
    }

    public function createTableSql(string $tableName): string {
        throw new NotImplementedException();
    }
}
{'fraction_non_alphanumeric': 0.0949618320610687, 'fraction_numerical': 0.0012213740458015267, 'mean_word_length': 2.990255785627284, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4484479', 'n_tokens_mistral': 897, 'n_tokens_neox': 866, 'n_words': 253}