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
Oct 31, 2016
by
Jens Segers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add grammar class for #999
parent
81ae5a63
Show 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.
*
*
...
...
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
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