Skip to content

Commit 94acc09

Browse files
authored
Replaces Spiral\Database with Cycle\Database (#1)
- replaces composer package name spiral/database with cycle/database
1 parent 3a88162 commit 94acc09

File tree

214 files changed

+705
-706
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+705
-706
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Spiral DBAL
1+
Cycle DBAL
22
========
3-
[![Latest Stable Version](https://poser.pugx.org/spiral/database/v/stable)](https://packagist.org/packages/spiral/database)
4-
[![Build Status](https://github.com/spiral/database/workflows/build/badge.svg)](https://github.com/spiral/database/actions)
5-
[![Codecov](https://codecov.io/gh/spiral/database/branch/master/graph/badge.svg)](https://codecov.io/gh/spiral/database/)
3+
[![Latest Stable Version](https://poser.pugx.org/cycle/database/v/stable)](https://packagist.org/packages/cycle/database)
4+
[![Build Status](https://github.com/cycle/database/workflows/build/badge.svg)](https://github.com/cycle/database/actions)
5+
[![Codecov](https://codecov.io/gh/cycle/database/branch/master/graph/badge.svg)](https://codecov.io/gh/cycle/database/)
66

77
Secure, multiple SQL dialects (MySQL, PostgreSQL, SQLite, SQLServer), schema introspection, schema declaration, smart identifier wrappers, database partitions, query builders, nested queries.
88

@@ -28,7 +28,7 @@ Make sure that your server is configured with following PHP version and extensio
2828
To install the component:
2929

3030
```
31-
$ composer require spiral/database
31+
$ composer require cycle/database
3232
```
3333

3434
## Example
@@ -40,9 +40,9 @@ declare(strict_types=1);
4040

4141
require_once "vendor/autoload.php";
4242

43-
use Spiral\Database\Config\DatabaseConfig;
44-
use Spiral\Database\DatabaseManager;
45-
use Spiral\Database\Driver\SQLite\SQLiteDriver;
43+
use Cycle\Database\Config\DatabaseConfig;
44+
use Cycle\Database\DatabaseManager;
45+
use Cycle\Database\Driver\SQLite\SQLiteDriver;
4646

4747
$dbm = new DatabaseManager(new DatabaseConfig([
4848
'databases' => [

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "spiral/database",
2+
"name": "cycle/database",
33
"type": "library",
44
"description": "DBAL, schema introspection, migration and pagination",
55
"license": "MIT",
@@ -25,12 +25,12 @@
2525
},
2626
"autoload": {
2727
"psr-4": {
28-
"Spiral\\Database\\": "src/"
28+
"Cycle\\Database\\": "src/"
2929
}
3030
},
3131
"autoload-dev": {
3232
"psr-4": {
33-
"Spiral\\Database\\Tests\\": "tests/Database/"
33+
"Cycle\\Database\\Tests\\": "tests/Database/"
3434
}
3535
}
3636
}

src/ColumnInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
declare(strict_types=1);
1111

12-
namespace Spiral\Database;
12+
namespace Cycle\Database;
1313

1414
/**
1515
* Represents table schema column abstraction.

src/Config/DatabaseConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
declare(strict_types=1);
1111

12-
namespace Spiral\Database\Config;
12+
namespace Cycle\Database\Config;
1313

1414
use Spiral\Core\Container\Autowire;
1515
use Spiral\Core\InjectableConfig;
1616
use Spiral\Core\Traits\Config\AliasTrait;
17-
use Spiral\Database\Exception\ConfigException;
17+
use Cycle\Database\Exception\ConfigException;
1818

1919
final class DatabaseConfig extends InjectableConfig
2020
{

src/Config/DatabasePartial.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
declare(strict_types=1);
1111

12-
namespace Spiral\Database\Config;
12+
namespace Cycle\Database\Config;
1313

1414
final class DatabasePartial
1515
{

src/Database.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99

1010
declare(strict_types=1);
1111

12-
namespace Spiral\Database;
12+
namespace Cycle\Database;
1313

1414
use Spiral\Core\Container\InjectableInterface;
15-
use Spiral\Database\Driver\Driver;
16-
use Spiral\Database\Driver\DriverInterface;
17-
use Spiral\Database\Query\DeleteQuery;
18-
use Spiral\Database\Query\InsertQuery;
19-
use Spiral\Database\Query\SelectQuery;
20-
use Spiral\Database\Query\UpdateQuery;
15+
use Cycle\Database\Driver\DriverInterface;
16+
use Cycle\Database\Query\DeleteQuery;
17+
use Cycle\Database\Query\InsertQuery;
18+
use Cycle\Database\Query\SelectQuery;
19+
use Cycle\Database\Query\UpdateQuery;
2120
use Throwable;
2221

2322
/**

src/DatabaseInterface.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99

1010
declare(strict_types=1);
1111

12-
namespace Spiral\Database;
13-
14-
use Spiral\Database\Driver\DriverInterface;
15-
use Spiral\Database\Exception\StatementException;
16-
use Spiral\Database\Query\DeleteQuery;
17-
use Spiral\Database\Query\InsertQuery;
18-
use Spiral\Database\Query\SelectQuery;
19-
use Spiral\Database\Query\UpdateQuery;
12+
namespace Cycle\Database;
13+
14+
use Cycle\Database\Driver\DriverInterface;
15+
use Cycle\Database\Exception\StatementException;
16+
use Cycle\Database\Query\DeleteQuery;
17+
use Cycle\Database\Query\InsertQuery;
18+
use Cycle\Database\Query\SelectQuery;
19+
use Cycle\Database\Query\UpdateQuery;
2020

2121
/**
2222
* DatabaseInterface is high level abstraction used to represent single database. You must always

src/DatabaseManager.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99

1010
declare(strict_types=1);
1111

12-
namespace Spiral\Database;
12+
namespace Cycle\Database;
1313

1414
use Psr\Container\ContainerExceptionInterface;
1515
use Psr\Log\LoggerAwareInterface;
1616
use Psr\Log\LoggerInterface;
1717
use Psr\Log\NullLogger;
1818
use Spiral\Core\Container;
1919
use Spiral\Core\FactoryInterface;
20-
use Spiral\Database\Config\DatabaseConfig;
21-
use Spiral\Database\Config\DatabasePartial;
22-
use Spiral\Database\Driver\Driver;
23-
use Spiral\Database\Driver\DriverInterface;
24-
use Spiral\Database\Exception\DatabaseException;
25-
use Spiral\Database\Exception\DBALException;
20+
use Cycle\Database\Config\DatabaseConfig;
21+
use Cycle\Database\Config\DatabasePartial;
22+
use Cycle\Database\Driver\Driver;
23+
use Cycle\Database\Driver\DriverInterface;
24+
use Cycle\Database\Exception\DatabaseException;
25+
use Cycle\Database\Exception\DBALException;
2626
use Spiral\Logger\Traits\LoggerTrait;
2727

2828
/**

src/DatabaseProviderInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
declare(strict_types=1);
1111

12-
namespace Spiral\Database;
12+
namespace Cycle\Database;
1313

14-
use Spiral\Database\Exception\DBALException;
14+
use Cycle\Database\Exception\DBALException;
1515

1616
interface DatabaseProviderInterface
1717
{

src/Driver/CachingCompilerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
declare(strict_types=1);
1111

12-
namespace Spiral\Database\Driver;
12+
namespace Cycle\Database\Driver;
1313

14-
use Spiral\Database\Query\QueryParameters;
14+
use Cycle\Database\Query\QueryParameters;
1515

1616
/**
1717
* Provides the ability to calculate query hash and generate cacheble statements.

0 commit comments

Comments
 (0)