Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
Details
Activity
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
sinan
laravel-mongodb
Commits
fecc60cb
Commit
fecc60cb
authored
8 years ago
by
Jens Segers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add grammar class for #999
parent
81ae5a63
master
develop
4.0.0-alpha.1
v3.6.4
v3.6.3
v3.6.2
v3.6.1
v3.6.0
v3.5.3
v3.5.2
v3.5.1
v3.5.0
v3.4.6
v3.4.5
v3.4.4
v3.4.3
v3.4.2
v3.4.1
v3.4.0
v3.3.1
v3.3.0
v3.3.0-alpha
v3.2.3
v3.2.2
v3.2.1
v3.2.0
v3.1.4
v3.1.3
v3.1.2
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
Connection.php
src/Jenssegers/Mongodb/Connection.php
+12
-0
Grammar.php
src/Jenssegers/Mongodb/Schema/Grammar.php
+7
-0
No files found.
src/Jenssegers/Mongodb/Connection.php
View file @
fecc60cb
...
@@ -40,6 +40,8 @@ class Connection extends \Illuminate\Database\Connection
...
@@ -40,6 +40,8 @@ class Connection extends \Illuminate\Database\Connection
$this
->
db
=
$this
->
connection
->
selectDatabase
(
$config
[
'database'
]);
$this
->
db
=
$this
->
connection
->
selectDatabase
(
$config
[
'database'
]);
$this
->
useDefaultPostProcessor
();
$this
->
useDefaultPostProcessor
();
$this
->
useDefaultSchemaGrammar
();
}
}
/**
/**
...
@@ -207,6 +209,16 @@ class Connection extends \Illuminate\Database\Connection
...
@@ -207,6 +209,16 @@ class Connection extends \Illuminate\Database\Connection
return
'mongodb'
;
return
'mongodb'
;
}
}
/**
* Get the default schema grammar instance.
*
* @return Schema\Grammar
*/
protected
function
getDefaultSchemaGrammar
()
{
return
new
Schema\Grammar
;
}
/**
/**
* Dynamically pass methods to the connection.
* Dynamically pass methods to the connection.
*
*
...
...
This diff is collapsed.
Click to expand it.
src/Jenssegers/Mongodb/Schema/Grammar.php
0 → 100644
View file @
fecc60cb
<?php
namespace
Jenssegers\Mongodb\Schema
;
use
Illuminate\Database\Schema\Grammars\Grammar
as
BaseGrammar
;
class
Grammar
extends
BaseGrammar
{
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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