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
48f1879b
Commit
48f1879b
authored
Oct 16, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaking comments in sqlite connector.
parent
87e8dbeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
sqlite.php
laravel/database/connectors/sqlite.php
+4
-7
query.php
laravel/database/query.php
+0
-5
No files found.
laravel/database/connectors/sqlite.php
View file @
48f1879b
...
...
@@ -12,22 +12,19 @@ class SQLite extends Connector {
{
$options
=
$this
->
options
(
$config
);
// SQLite in-memory databases only live for the lifetime of the current request, and it
// is impossible to create two connections to the same in-memory database.
if
(
$config
[
'database'
]
==
':memory:'
)
{
return
new
PDO
(
'sqlite::memory:'
,
null
,
null
,
$options
);
}
// We will check for the database in the default storage directory for the application.
// Typically, this directory holds all of the SQLite databases for the application.
// First, we will check for the database in the default storage directory for the
// application. If we don't find the database there, we will assume the database
// name is actually a full qualified path to the database on disk and attempt
// to load it. If we still can't find it, we'll bail out.
elseif
(
file_exists
(
$path
=
DATABASE_PATH
.
$config
[
'database'
]
.
'.sqlite'
))
{
return
new
PDO
(
'sqlite:'
.
$path
,
null
,
null
,
$options
);
}
// If we still haven't located the database, we will assume the given database name
// is a fully qualified path to the database on disk and attempt to load it.
elseif
(
file_exists
(
$config
[
'database'
]))
{
return
new
PDO
(
'sqlite:'
.
$config
[
'database'
],
null
,
null
,
$options
);
...
...
laravel/database/query.php
View file @
48f1879b
...
...
@@ -110,7 +110,6 @@ class Query {
public
function
distinct
()
{
$this
->
distinct
=
true
;
return
$this
;
}
...
...
@@ -123,7 +122,6 @@ class Query {
public
function
select
(
$columns
=
array
(
'*'
))
{
$this
->
selects
=
(
array
)
$columns
;
return
$this
;
}
...
...
@@ -405,7 +403,6 @@ class Query {
public
function
order_by
(
$column
,
$direction
=
'asc'
)
{
$this
->
orderings
[]
=
compact
(
'column'
,
'direction'
);
return
$this
;
}
...
...
@@ -418,7 +415,6 @@ class Query {
public
function
skip
(
$value
)
{
$this
->
offset
=
$value
;
return
$this
;
}
...
...
@@ -431,7 +427,6 @@ class Query {
public
function
take
(
$value
)
{
$this
->
limit
=
$value
;
return
$this
;
}
...
...
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