getConnection()); $builder->select('table_name') ->from('information_schema.tables') ->where('table_schema', '=', $query->getConnection()->getDatabase()); return \rtrim($builder->toSql(), ';'); } /** * Compile from. * * @param SchemaBuilder $query Builder * @param string $table Tables * * @return string * * @since 1.0.0 */ protected function compileSelectFields(SchemaBuilder $query, string $table) : string { $builder = new Builder($query->getConnection()); $builder->select('*') ->from('information_schema.columns') ->where('table_schema', '=', $query->getConnection()->getDatabase()) ->andWhere('table_name', '=', $table); return \rtrim($builder->toSql(), ';'); } }