Skip to content

Commit e70c5a7

Browse files
authored
Merge pull request #47 from afgloeden/master
Package refactored
2 parents e052913 + 18d9ff4 commit e70c5a7

16 files changed

+379
-125
lines changed

.github/ISSUE_TEMPLATE.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Versions
2+
3+
* Laravel: Run `php artisan --version` to show the version.
4+
* PHP: Run `php --version` to show the version.
5+
* Composer: Run `composer --version` to show the version.
6+
* uepg/laravel-sybase: Get the version in `composer.lock`.
7+
8+
## Expected behavior
9+
10+
What should have happened? Please include as much detail as possible.
11+
12+
## Actual behavior
13+
14+
What actually happened? Please include as much detail as possible.
15+
16+
## Steps to reproduce
17+
18+
1. Step 1
19+
1. Step 2
20+
1. Step 3

.github/PULL_REQUEST_TEMPLATE.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Changes
2+
3+
* Feature 1
4+
* Feature 2
5+
* Change 1
6+
* Change 2
7+
* Change 3
8+
* Deletion 1
9+
* Fix #123
10+
* ...

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/vendor
2+
composer.lock

CHANGELOG.md

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
# Release Notes
2+
3+
## [Unreleased](https://github.com/uepg/laravel-sybase/compare/2.1.2...master)
4+
5+
6+
## [2.1.2 (2019-04-19)](https://github.com/uepg/laravel-sybase/compare/2.1.1...2.1.2)
7+
8+
Merge pull request [#43](https://github.com/uepg/laravel-sybase/pull/43) from afgloeden/master
9+
10+
Problem with constraint length of the primary key fixed
11+
12+
13+
## [2.1.1 (2019-04-05)](https://github.com/uepg/laravel-sybase/compare/2.1.0...2.1.1)
14+
15+
Merge pull request [#42](https://github.com/uepg/laravel-sybase/pull/42) from afgloeden/master
16+
17+
Changes related to PSR's
18+
19+
20+
## [2.1.0 (2019-01-23)](https://github.com/uepg/laravel-sybase/compare/2.0...2.1.0)
21+
22+
See README
23+
24+
25+
## [2.0 (2017-08-02)](https://github.com/uepg/laravel-sybase/compare/1.3.2...2.0)
26+
27+
Merge pull request [#36](https://github.com/uepg/laravel-sybase/pull/36) from marcelovsantos/master
28+
29+
Correction test for 5.3 and 5.4
30+
31+
32+
## [1.3.2 (2017-03-14)](https://github.com/uepg/laravel-sybase/compare/1.3.1...1.3.2)
33+
34+
Better identention
35+
36+
37+
## [1.3.1 (2017-03-14)](https://github.com/uepg/laravel-sybase/compare/1.3...1.3.1)
38+
39+
Fix [#29](https://github.com/uepg/laravel-sybase/issues/29)
40+
41+
42+
## [1.3 (2017-01-24)](https://github.com/uepg/laravel-sybase/compare/1.2.1...1.3)
43+
44+
Merging dev in master
45+
46+
47+
## [1.2.1 (2016-09-16)](https://github.com/uepg/laravel-sybase/compare/1.2.0.7...1.2.1)
48+
49+
Added support to multiples resultset
50+
51+
52+
## [1.2.0.7 (2016-06-09)](https://github.com/uepg/laravel-sybase/compare/1.2.0.6...1.2.0.7)
53+
54+
Merge branch 'case_insensitive'
55+
56+
57+
## [1.2.0.6 (2016-06-06)](https://github.com/uepg/laravel-sybase/compare/1.2.0.5...1.2.0.6)
58+
59+
Merge branch 'multiple_connections'
60+
61+
62+
## [1.2.0.5 (2016-06-02)](https://github.com/uepg/laravel-sybase/compare/1.2.0.4...1.2.0.5)
63+
64+
Fix a offset problem in joins
65+
66+
67+
## [1.2.0.4 (2016-05-23)](https://github.com/uepg/laravel-sybase/compare/1.2.0.3...1.2.0.4)
68+
69+
Fix [#13](https://github.com/uepg/laravel-sybase/issues/13)
70+
71+
72+
## [1.2.0.3 (2016-05-19)](https://github.com/uepg/laravel-sybase/compare/1.2.0.2...1.2.0.3)
73+
74+
Fix [#13](https://github.com/uepg/laravel-sybase/issues/13) for insert, remove and update
75+
76+
77+
## [1.2.0.2 (2016-05-18)](https://github.com/uepg/laravel-sybase/compare/1.2.0.1...1.2.0.2)
78+
79+
Fix [#14](https://github.com/uepg/laravel-sybase/issues/14)
80+
81+
82+
## [1.2.0.1 (2016-05-12)](https://github.com/uepg/laravel-sybase/compare/1.2...1.2.0.1)
83+
84+
Add money to
85+
86+
87+
## [1.2 (2016-05-03)](https://github.com/uepg/laravel-sybase/compare/1.1...1.2)
88+
89+
Merge branch 'dev'
90+
91+
92+
## [1.1 (2016-03-16)](https://github.com/uepg/laravel-sybase/compare/1.0.3...1.1)
93+
94+
Probably fixed [#11](https://github.com/uepg/laravel-sybase/issues/11) and possible other problems with querys builded without query builder (but all binds will be considered strings by default)
95+
96+
97+
## [1.0.3 (2016-02-18)](https://github.com/uepg/laravel-sybase/compare/1.0.2...1.0.3)
98+
99+
Fix [#8](https://github.com/uepg/laravel-sybase/issues/8)
100+
101+
102+
## [1.0.2 (2015-12-21)](https://github.com/uepg/laravel-sybase/compare/1.0.1...1.0.2)
103+
104+
Minor fixes and better stability.
105+
106+
107+
## [1.0.1 (2015-12-21)](https://github.com/uepg/laravel-sybase/compare/1.0...1.0.1)
108+
109+
Now offset works, but it is slow.
110+
111+
112+
## [1.0 (2015-12-21)](https://github.com/uepg/laravel-sybase/compare/0.3...1.0)
113+
114+
Now offset works, but it is slow.
115+
116+
117+
## [0.3 (2015-12-16)](https://github.com/uepg/laravel-sybase/compare/0.2.4...0.3)
118+
119+
Probably fixed [#4](https://github.com/uepg/laravel-sybase/issues/4) and [#5](https://github.com/uepg/laravel-sybase/issues/5)
120+
121+
122+
## [0.2.4 (2015-12-10)](https://github.com/uepg/laravel-sybase/compare/0.2.3...0.2.4)
123+
124+
This fix [#3](https://github.com/uepg/laravel-sybase/issues/3) (workaround).
125+
126+
127+
## [0.2.3 (2015-12-10)](https://github.com/uepg/laravel-sybase/compare/0.2.2...0.2.3)
128+
129+
Improving functions.
130+
131+
132+
## [0.2.2 (2015-12-08)](https://github.com/uepg/laravel-sybase/compare/0.2.1...0.2.2)
133+
134+
Update Readme.
135+
136+
137+
## [0.2.1 (2015-12-07)](https://github.com/uepg/laravel-sybase/compare/0.2...0.2.1)
138+
139+
This finally fix [#2](https://github.com/uepg/laravel-sybase/issues/2).
140+
141+
142+
## [0.2 (2015-12-04)](https://github.com/uepg/laravel-sybase/compare/0.1.1...0.2)
143+
144+
This fix [#2](https://github.com/uepg/laravel-sybase/issues/2)
145+
146+
147+
## [0.1.1 (2015-11-27)](https://github.com/uepg/laravel-sybase/compare/0.1.0...0.1.1)
148+
149+
Improvement in query seeking types.
150+
151+
152+
## [0.1.0 (2015-11-18)](https://github.com/uepg/laravel-sybase/compare/fd48f2b402acbfd72c3a2e903dabdb2df0a8cbc6...0.1.0)
153+
154+
Single quote problem solved.

Database/Query/SybaseProcessor.php

-10
This file was deleted.

README.md

+40-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
# laravel-sybase
1+
# Sybase ASE based Eloquent module extension for Laravel 5.x
2+
3+
[![Packagist Version](https://img.shields.io/packagist/v/uepg/laravel-sybase.svg)](https://packagist.org/packages/uepg/laravel-sybase)
4+
[![PHP from Packagist](https://img.shields.io/packagist/php-v/uepg/laravel-sybase.svg)](https://packagist.org/packages/uepg/laravel-sybase)
5+
[![Packagist](https://img.shields.io/packagist/dt/uepg/laravel-sybase.svg)](https://packagist.org/packages/uepg/laravel-sybase/stats)
6+
[![GitHub contributors](https://img.shields.io/github/contributors-anon/uepg/laravel-sybase.svg)](https://github.com/uepg/laravel-sybase/graphs/contributors)
7+
[![GitHub](https://img.shields.io/github/license/uepg/laravel-sybase.svg)](https://github.com/uepg/laravel-sybase/blob/master/LICENSE)
28

3-
Sybase ASE based Eloquent module extension for Laravel 5.x.
49
* Enables use of multiple kinds of fields.
510
* Use default eloquent: works with odbc and dblib!
611
* Migrations! (WIP - Work in Progress)
@@ -26,10 +31,16 @@ Update the package dependencies executing:
2631
composer update
2732
```
2833

29-
Add the following entry to your providers array in **config/app.php** file:
34+
Add the following entry to your providers array in **config/app.php** file, optional in Laravel 5.5 or above:
3035

3136
```php
32-
Uepg\LaravelSybase\Database\SybaseServiceProvider::class
37+
Uepg\LaravelSybase\SybaseServiceProvider::class,
38+
```
39+
40+
Add the following entry to your aliases array in **config/app.php** file, optional in Laravel 5.5 or above:
41+
42+
```php
43+
'UepgBlueprint' => Uepg\LaravelSybase\Database\Schema\Blueprint::class,
3344
```
3445

3546
Update your **config/database.php's** default driver with the settings for the **sqlsrv** or your custom odbc. See the following example:
@@ -45,14 +56,15 @@ return [
4556
'connections' => [
4657
...
4758

48-
'sqlsrv' => [
49-
'driver' => 'sqlsrv',
50-
'host' => env('DB_HOST', 'sybase.myserver.br:5000'),
59+
'sybase' => [
60+
'driver' => 'sqlsrv',
61+
'host' => env('DB_HOST', 'sybase.myserver.com'),
62+
'port' => env('DB_PORT', '5000'),
5163
'database' => env('DB_DATABASE', 'mydatabase'),
52-
'username' => env('DB_USERNAME', 'forge'),
53-
'password' => env('DB_PASSWORD', 'secret'),
54-
'charset' => 'utf8',
55-
'prefix' => '',
64+
'username' => env('DB_USERNAME', 'user'),
65+
'password' => env('DB_PASSWORD', 'password'),
66+
'charset' => 'utf8',
67+
'prefix' => '',
5668
],
5769

5870
...
@@ -62,6 +74,21 @@ return [
6274
]
6375
```
6476

77+
Update your **.env** with the settings for the **sqlsrv** or your custom odbc. See the following example:
78+
79+
```text
80+
...
81+
82+
DB_CONNECTION=sybase
83+
DB_HOST=sybase.myserver.com
84+
DB_PORT=5000
85+
DB_DATABASE=mydatabase
86+
DB_USERNAME=user
87+
DB_PASSWORD=password
88+
89+
...
90+
```
91+
6592
## Configuration of freetds driver
6693

6794
In Linux systems the driver version must be set in **freetds.conf** file to the right use of charset pages.
@@ -76,14 +103,14 @@ The file is usualy found in **/etc/freetds/freetds.conf**. Set the configuration
76103

77104
## Setting to use numeric data type
78105

79-
In the migration file you must replace `use Illuminate\Database\Schema\Blueprint;` with `use Uepg\LaravelSybase\Database\Schema\BlueprintSybase as Blueprint;`. See the following example:
106+
In the migration file you must replace `use Illuminate\Database\Schema\Blueprint;` with `use Uepg\LaravelSybase\Database\Schema\Blueprint;`. See the following example:
80107

81108
```php
82109
<?php
83110

84111
use Illuminate\Support\Facades\Schema;
85112
// use Illuminate\Database\Schema\Blueprint;
86-
use Uepg\LaravelSybase\Database\Schema\BlueprintSybase as Blueprint;
113+
use Uepg\LaravelSybase\Database\Schema\Blueprint; // or "use UepgBlueprint as Blueprint"
87114
use Illuminate\Database\Migrations\Migration;
88115

89116
class CreateTable extends Migration

composer.json

+23-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"name": "uepg/laravel-sybase",
33
"description": "Sybase based Eloquent module extension for Laravel 5.x.",
4-
"type": "library",
4+
"keywords": [
5+
"sybase"
6+
],
7+
"license": "GPL-2.0-only",
58
"authors": [
69
{
710
"name": "Gabriel Tadra Mainginski",
@@ -12,14 +15,29 @@
1215
"email": "[email protected]"
1316
}
1417
],
15-
"minimum-stability": "dev",
18+
"support": {
19+
"issues": "https://github.com/uepg/laravel-sybase/issues",
20+
"wiki": "https://github.com/uepg/laravel-sybase/wiki"
21+
},
1622
"require": {
17-
"php": ">=5.5",
18-
"laravel/framework": "5.*"
23+
"php": "^5.6.4 || ^7.0",
24+
"doctrine/dbal": "^2.5",
25+
"illuminate/database": "5.4.*|5.5.*|5.6.*|5.7.*",
26+
"illuminate/support": "5.4.*|5.5.*|5.6.*|5.7.*"
27+
},
28+
"extra": {
29+
"laravel": {
30+
"providers": [
31+
"Uepg\\LaravelSybase\\SybaseServiceProvider"
32+
],
33+
"aliases": {
34+
"UepgBlueprint": "Uepg\\LaravelSybase\\Database\\Schema\\Blueprint"
35+
}
36+
}
1937
},
2038
"autoload": {
2139
"psr-4": {
22-
"Uepg\\LaravelSybase\\Database\\": "Database/"
40+
"Uepg\\LaravelSybase\\": "src/"
2341
}
2442
}
2543
}

0 commit comments

Comments
 (0)