websightnl/yii2-sybase

Yii2 schema support for Sybase database, tested with SQL Anywhere 12.0.

Maintainers

Package info

github.com/websightnl/yii2-sybase

pkg:composer/websightnl/yii2-sybase

Statistics

Installs: 829

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 2

v0.1.5 2016-10-10 07:09 UTC

This package is auto-updated.

Last update: 2026-02-21 00:59:57 UTC


README

This library adds Sybase schema support to yii2. This allows you to create ActiveRecord models of tables; manually or by using Gii.

Compatibility

It has been tested on SAP SQL Anywhere 12.0 over an ODBC link.

Usage

Add the following lines to your database configuration (for example config/db.php):

<?php
return [
    'class' => 'yii\db\Connection',
    ***'driverName' => 'sybase',
    'schemaMap' => [
        'sybase' => \websightnl\yii2\sybase\Schema::className(),
    ],***
    'dsn' => 'odbc:mydsn',
]