Skip to content

Commit 64f3211

Browse files
committed
Merge branch 'refs/heads/master' into column_type_classes2
2 parents 6065471 + 74594d9 commit 64f3211

File tree

6 files changed

+51
-42
lines changed

6 files changed

+51
-42
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Enh #255: Implement `SqlParser` and `ExpressionBuilder` driver classes (@Tigrov)
99
- Enh #236: Implement `ColumnSchemaInterface` classes according to the data type of database table columns
1010
for type casting performance. Related with yiisoft/db#752 (@Tigrov)
11+
- Chg #272: Replace call of `SchemaInterface::getRawTableName()` to `QuoterInterface::getRawTableName()` (@Tigrov)
1112

1213
## 1.3.0 March 21, 2024
1314

README.md

+25-24
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
<p align="center">
22
<a href="https://github.com/yiisoft" target="_blank">
3-
<img src="https://yiisoft.github.io/docs/images/yii_logo.svg" height="100px">
3+
<img src="https://yiisoft.github.io/docs/images/yii_logo.svg" height="100px" alt="Yii">
44
</a>
55
<a href="https://www.oracle.com/database/technologies/" target="_blank">
6-
<img src="https://avatars3.githubusercontent.com/u/4430336" height="100px">
6+
<img src="https://avatars3.githubusercontent.com/u/4430336" height="100px" alt="Oracle">
77
</a>
8-
<h1 align="center">Oracle driver for Yii Database</h1>
8+
<h1 align="center">Yii Database Oracle driver</h1>
99
<br>
1010
</p>
1111

12+
[![Latest Stable Version](https://poser.pugx.org/yiisoft/db-oracle/v/stable.png)](https://packagist.org/packages/yiisoft/db-oracle)
13+
[![Total Downloads](https://poser.pugx.org/yiisoft/db-oracle/downloads.png)](https://packagist.org/packages/yiisoft/db-oracle)
14+
[![rector](https://github.com/yiisoft/db-oracle/actions/workflows/rector.yml/badge.svg)](https://github.com/yiisoft/db-oracle/actions/workflows/rector.yml)
15+
[![codecov](https://codecov.io/gh/yiisoft/db-oracle/branch/master/graph/badge.svg?token=XGJAFXVHSH)](https://codecov.io/gh/yiisoft/db-oracle)
16+
[![StyleCI](https://github.styleci.io/repos/114756574/shield?branch=master)](https://github.styleci.io/repos/114756574?branch=master)
17+
1218
Oracle driver for [Yii Database](https://github.com/yiisoft/db) is a database driver for [Oracle] databases.
1319

1420
The package allows you to connect to [Oracle] databases from your application and perform various database operations
@@ -21,35 +27,37 @@ your Oracle database and perform various database operations as needed.
2127

2228
[Oracle]: https://www.oracle.com/database/technologies/
2329

24-
[![Latest Stable Version](https://poser.pugx.org/yiisoft/db-oracle/v/stable.png)](https://packagist.org/packages/yiisoft/db-oracle)
25-
[![Total Downloads](https://poser.pugx.org/yiisoft/db-oracle/downloads.png)](https://packagist.org/packages/yiisoft/db-oracle)
26-
[![rector](https://github.com/yiisoft/db-oracle/actions/workflows/rector.yml/badge.svg)](https://github.com/yiisoft/db-oracle/actions/workflows/rector.yml)
27-
[![codecov](https://codecov.io/gh/yiisoft/db-oracle/branch/master/graph/badge.svg?token=XGJAFXVHSH)](https://codecov.io/gh/yiisoft/db-oracle)
28-
[![StyleCI](https://github.styleci.io/repos/114756574/shield?branch=master)](https://github.styleci.io/repos/114756574?branch=master)
29-
3030
## Support version
3131

32-
| PHP | Oracle Version | CI-Actions
33-
|:----:|:------------------------:|:---:|
32+
| PHP | Oracle Version | CI-Actions |
33+
|-----|----------------|------------|
3434
|**8.0 - 8.2**| **12c - 21c**|[![build](https://github.com/yiisoft/db-oracle/actions/workflows/build.yml/badge.svg?branch=dev)](https://github.com/yiisoft/db-oracle/actions/workflows/build.yml) [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fyiisoft%2Fdb-oracle%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/db-oracle/master) [![static analysis](https://github.com/yiisoft/db-oracle/actions/workflows/static.yml/badge.svg?branch=dev)](https://github.com/yiisoft/db-oracle/actions/workflows/static.yml) [![type-coverage](https://shepherd.dev/github/yiisoft/db-oracle/coverage.svg)](https://shepherd.dev/github/yiisoft/db-oracle)
3535

3636
## Installation
3737

38-
The package could be installed via composer:
38+
The package could be installed with [Composer](https://getcomposer.org):
3939

4040
```php
4141
composer require yiisoft/db-oracle
4242
```
4343

44-
## Usage
44+
## Documentation
4545

46-
For config connection to Oracle database check [Connecting Oracle](https://github.com/yiisoft/db/blob/master/docs/en/connection/oracle.md).
46+
For config connection to Oracle database check [Connecting Oracle](https://github.com/yiisoft/db/blob/master/docs/guide/en/connection/oracle.md).
4747

48-
[Check the documentation docs](https://github.com/yiisoft/db/blob/master/docs/en/README.md) to learn about usage.
48+
[Check the documentation docs](https://github.com/yiisoft/db/blob/master/docs/guide/en/README.md) to learn about usage.
4949

50-
## Testing
50+
- [Internals](docs/internals.md)
5151

52-
[Check the documentation](/docs/en/testing.md) to learn about testing.
52+
If you need help or have a question, the [Yii Forum](https://forum.yiiframework.com/c/yii-3-0/63) is a good place for that.
53+
You may also check out other [Yii Community Resources](https://www.yiiframework.com/community).
54+
55+
## License
56+
57+
The Yii Database Oracle driver is free software. It is released under the terms of the BSD License.
58+
Please see [`LICENSE`](./LICENSE.md) for more information.
59+
60+
Maintained by [Yii Software](https://www.yiiframework.com/).
5361

5462
## Support the project
5563

@@ -62,10 +70,3 @@ For config connection to Oracle database check [Connecting Oracle](https://githu
6270
[![Telegram](https://img.shields.io/badge/telegram-join-1DA1F2?style=flat&logo=telegram)](https://t.me/yii3en)
6371
[![Facebook](https://img.shields.io/badge/facebook-join-1DA1F2?style=flat&logo=facebook&logoColor=ffffff)](https://www.facebook.com/groups/yiitalk)
6472
[![Slack](https://img.shields.io/badge/slack-join-1DA1F2?style=flat&logo=slack)](https://yiiframework.com/go/slack)
65-
66-
## License
67-
68-
The Yii Framework Oracle Extension is free software. It is released under the terms of the BSD License.
69-
Please see [`LICENSE`](./LICENSE.md) for more information.
70-
71-
Maintained by [Yii Software](https://www.yiiframework.com/).

composer.json

+13-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,23 @@
1212
"type": "library",
1313
"license": "BSD-3-Clause",
1414
"support": {
15-
"issues": "https://github.com/yiisoft/db-oracle/issues",
15+
"issues": "https://github.com/yiisoft/db-oracle/issues?state=open",
16+
"source": "https://github.com/yiisoft/db-oracle",
1617
"forum": "https://www.yiiframework.com/forum/",
1718
"wiki": "https://www.yiiframework.com/wiki/",
1819
"irc": "ircs://irc.libera.chat:6697/yii",
19-
"chat": "https://t.me/yii3en",
20-
"source": "https://github.com/yiisoft/db-oracle"
20+
"chat": "https://t.me/yii3en"
2121
},
22+
"funding": [
23+
{
24+
"type": "opencollective",
25+
"url": "https://opencollective.com/yiisoft"
26+
},
27+
{
28+
"type": "github",
29+
"url": "https://github.com/sponsors/yiisoft"
30+
}
31+
],
2232
"require": {
2333
"ext-pdo": "*",
2434
"php": "^8.0",

docs/en/testing.md renamed to docs/internals.md

+10-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Testing
1+
# Internals
22

33
## Github actions
44

@@ -10,7 +10,7 @@ All our packages have github actions by default, so you can test your [contribut
1010

1111
For greater ease it is recommended to use docker containers, for this you can use the [docker-compose.yml](https://docs.docker.com/compose/compose-file/) file that is in the docs folder.
1212

13-
1. [Oracle 21](/docker-compose.yml)
13+
1. [Oracle 21](../docker-compose.yml)
1414

1515
For running the docker containers you can use the following command:
1616

@@ -20,9 +20,7 @@ docker compose up -d
2020

2121
## Unit testing
2222

23-
The package is tested with [PHPUnit](https://phpunit.de/).
24-
25-
The following steps are required to run the tests:
23+
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
2624

2725
1. Run the docker container for the dbms.
2826
2. Install the dependencies of the project with composer.
@@ -32,7 +30,7 @@ The following steps are required to run the tests:
3230
vendor/bin/phpunit
3331
```
3432

35-
### Mutation testing
33+
## Mutation testing
3634

3735
The package tests are checked with [Infection](https://infection.github.io/) mutation framework with
3836
[Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:
@@ -49,20 +47,19 @@ The code is statically analyzed with [Psalm](https://psalm.dev/). To run static
4947
./vendor/bin/psalm
5048
```
5149

52-
## Rector
50+
## Code style
5351

54-
Use [Rector](https://github.com/rectorphp/rector) to make codebase follow some specific rules or
55-
use either newest or any specific version of PHP:
52+
Use [Rector](https://github.com/rectorphp/rector) to make codebase follow some specific rules or
53+
use either newest or any specific version of PHP:
5654

5755
```shell
5856
./vendor/bin/rector
5957
```
6058

61-
## Composer require checker
62-
63-
This package uses [composer-require-checker](https://github.com/maglnet/ComposerRequireChecker) to check if all dependencies are correctly defined in `composer.json`.
59+
## Dependencies
6460

65-
To run the checker, execute the following command:
61+
This package uses [composer-require-checker](https://github.com/maglnet/ComposerRequireChecker) to check if
62+
all dependencies are correctly defined in `composer.json`. To run the checker, execute the following command:
6663

6764
```shell
6865
./vendor/bin/composer-require-checker

src/Command.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function insertWithReturningPks(string $table, array $columns): bool|arra
5454
$returnParams[$phName]['dataType'] = PDO::PARAM_INT;
5555
}
5656

57-
$returnParams[$phName]['size'] = $columnSchemas[$name]->getSize() ?? -1;
57+
$returnParams[$phName]['size'] = isset($columnSchemas[$name]) ? $columnSchemas[$name]->getSize() : -1;
5858

5959
$returning[] = $this->db->getQuoter()->quoteColumnName($name);
6060
}

src/Schema.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ protected function findViewNames(string $schema = ''): array
832832
*/
833833
protected function getCacheKey(string $name): array
834834
{
835-
return array_merge([self::class], $this->generateCacheKey(), [$this->getRawTableName($name)]);
835+
return array_merge([self::class], $this->generateCacheKey(), [$this->db->getQuoter()->getRawTableName($name)]);
836836
}
837837

838838
/**

0 commit comments

Comments
 (0)