Git Product home page Git Product logo

db-oracle's Introduction

Oracle driver for Yii Database


Oracle driver for Yii Database is a database driver for Oracle databases.

The package allows you to connect to Oracle databases from your application and perform various database operations such as executing queries, creating and modifying database schema, and processing data. It supports a wide range of Oracle versions and provides a simple and efficient interface for working with Oracle databases.

To use the package, you need to have the Oracle client library installed and configured on your server, and you need to specify the correct database connection parameters. Once you have done this, you can use the driver to connect to your Oracle database and perform various database operations as needed.

Latest Stable Version Total Downloads rector codecov StyleCI

Support version

PHP Oracle Version CI-Actions
8.0 - 8.2 12c - 21c build Mutation testing badge static analysis type-coverage

Installation

The package could be installed via composer:

composer require yiisoft/db-oracle

Usage

For config connection to Oracle database check Connecting Oracle.

Check the documentation docs to learn about usage.

Testing

Check the documentation to learn about testing.

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack

License

The Yii Framework Oracle Extension is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

db-oracle's People

Contributors

arhell avatar cebe avatar darkdef avatar dependabot[bot] avatar devanych avatar faryshta avatar klimov-paul avatar lav45 avatar machour avatar mcd-php avatar miramir avatar mohorev avatar nidgetgod avatar nineinchnick avatar pana1990 avatar powergamer1 avatar qiangxue avatar rob006 avatar samdark avatar sergeymakinen avatar silverfire avatar ssiwek avatar stylecibot avatar terabytesoftw avatar tigrov avatar vaseninm avatar vbelogai avatar vjik avatar voroks avatar xepozz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

db-oracle's Issues

update src folder link

What steps will reproduce the problem?

http=>https

What is the expected result?

What do you get instead?

Additional info

Q A
Version 1.0.?
PHP version
Operating system

The requested package yiisoft/yii2-oracle ~1.0.0 is satisfiable by yiisoft/yii2-oracle[1.0.x-dev] but these conflict with your requirements or minimum-stability.

What steps will reproduce the problem?

I tried to install this package using composer via the command below as it is mentioned in the installation guide:
composer require --prefer-dist yiisoft/yii2-oracle "~1.0.0"

What I have got:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - The requested package yiisoft/yii2-oracle ~1.0.0 is satisfiable by yiisoft/yii2-oracle[1.0.x-dev] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.

Additional info

Q A
Yii version 2.0.14.1
Yii Oracle version 1.0.0
Oracle Database version Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
PHP version 7.2.3
Operating system ubuntu16.04.1 LTS

Versions and installation problems

Hi,

I have some problems with AR queries in Oracle. Normally it's working alright, but sometimes makes mistakes. E.g. command:

->addSelect('SUM(pk_me.gtat_bt (a_m_id, et.tl_id, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL)) BD')

result:

..., "NULL", "0", "NULL))" BD

I wanted to install this extension in the hope that it gets maybe better, but I'm not able to do that. I've tried to install it many different ways, but I'm getting various error messages in Composer:

composer require --prefer-dist yiisoft/yii2-oracle

Could not find a version of package yiisoft/yii2-oracle matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.

"yiisoft/yii2-oracle": "~1.0.0"

Problem 1 - The requested package yiisoft/yii2-oracle ~1.0.0 is satisfiable by yiisoft/yii2-oracle[1.0.x-dev] but these conflict with your requirements or minimum-stability.

"yiisoft/yii2-oracle": "@dev"

Your requirements could not be resolved to an installable set of packages.
Problem 1

  • yiisoft/yii2-oracle 1.0.x-dev requires yiisoft/core ^3.0@dev -> satisfiable by yiisoft/core[3.0.x-dev] but these conflict with your requirements or minimum-stability.
  • yiisoft/yii2-oracle dev-master requires yiisoft/core ^3.0@dev -> satisfiable by yiisoft/core[3.0.x-dev] but these conflict with your requirements or minimum-stability.
  • Installation request for yiisoft/yii2-oracle @dev -> satisfiable by yiisoft/yii2-oracle[dev-master, 1.0.x-dev].

https://www.yiiframework.com/extension/yiisoft/yii2-oracle:

  • says, it's for Yii 2.1 but the latest stable release is 2.0.15.1 (what I'm also already having)
  • the link says yii2-oracle, but then I'm in yii-oracle, I have no clue if it's alright
    Does it mean there is no extension for the actual stable version of yii2?

Thank you.

Q A
Yii version 2.0.15.1
Yii Oracle version -
Oracle Database version 11g
PHP version 5.6.25
Operating system Windows Server 2012 R2 Standard Edition

Execute `Query` without `->from()`

Executing Query without FROM statement fails in Oracle:

$scalar = (new Query($db))->select(new Expression('1'))->scalar();

Tests yiisoft/db#760

https://github.com/yiisoft/db/actions/runs/6324733173/job/17174800505?pr=760

1) Yiisoft\Db\Oracle\Tests\QueryTest::testSelectWithoutFrom
Yiisoft\Db\Exception\IntegrityException: SQLSTATE[HY000]: General error: 923 OCIStmtExecute: ORA-00923: FROM keyword not found where expected
 (/tmp/php-src-php-8.2.10/ext/pdo_oci/oci_statement.c:153)
The SQL being executed was: SELECT 1

This can be solved by adding FROM DUAL for SQL expressions without FROM statement.

update irc link

What steps will reproduce the problem?

What is the expected result?

What do you get instead?

Additional info

Q A
Version 1.0.?
PHP version
Operating system

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.