Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
295c3b80
Commit
295c3b80
authored
May 03, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add sqlite query driver.
parent
4822f847
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
connection.php
laravel/database/connection.php
+3
-0
sqlite.php
laravel/database/query/grammars/sqlite.php
+24
-0
uri.php
laravel/uri.php
+1
-1
No files found.
laravel/database/connection.php
View file @
295c3b80
...
@@ -83,6 +83,9 @@ class Connection {
...
@@ -83,6 +83,9 @@ class Connection {
case
'mysql'
:
case
'mysql'
:
return
$this
->
grammar
=
new
Query\Grammars\MySQL
(
$this
);
return
$this
->
grammar
=
new
Query\Grammars\MySQL
(
$this
);
case
'sqlite'
:
return
$this
->
grammar
=
new
Query\Grammars\SQLite
(
$this
);
case
'sqlsrv'
:
case
'sqlsrv'
:
return
$this
->
grammar
=
new
Query\Grammars\SQLServer
(
$this
);
return
$this
->
grammar
=
new
Query\Grammars\SQLServer
(
$this
);
...
...
laravel/database/query/grammars/sqlite.php
0 → 100644
View file @
295c3b80
<?php
namespace
Laravel\Database\Query\Grammars
;
use
Laravel\Database\Query
;
class
SQLite
extends
Grammar
{
/**
* Compile the ORDER BY clause for a query.
*
* @param Query $query
* @return string
*/
protected
function
orderings
(
Query
$query
)
{
foreach
(
$query
->
orderings
as
$ordering
)
{
$sql
[]
=
$this
->
wrap
(
$ordering
[
'column'
])
.
' COLLATE NOCASE '
.
strtoupper
(
$ordering
[
'direction'
]);
}
return
'ORDER BY '
.
implode
(
', '
,
$sql
);
}
}
\ No newline at end of file
laravel/uri.php
View file @
295c3b80
...
@@ -37,7 +37,7 @@ class URI {
...
@@ -37,7 +37,7 @@ class URI {
// We'll simply get the path info from the Symfony Request instance and then
// We'll simply get the path info from the Symfony Request instance and then
// format to meet our needs in the router. If the URI is root, we'll give
// format to meet our needs in the router. If the URI is root, we'll give
// back a single slash, otherwise we'll strip
the slashes
.
// back a single slash, otherwise we'll strip
all of the slashes off
.
$uri
=
static
::
format
(
Request
::
getPathInfo
());
$uri
=
static
::
format
(
Request
::
getPathInfo
());
static
::
segments
(
$uri
);
static
::
segments
(
$uri
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment