Skip to content

websightnl/yii2-sybase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

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',
]