Skip to content

Commit cf90a45

Browse files
SeanKilleenoskardudycz
authored andcommitted
linting
1 parent 0f1115c commit cf90a45

File tree

8 files changed

+5
-15
lines changed

8 files changed

+5
-15
lines changed

Diff for: docs/diagnostics.md

-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ theSession.Logger = new TestOutputMartenLogger(_output);
364364
<sup><a href='https://github.com/JasperFx/marten/blob/master/src/Marten.Testing/Events/archiving_events.cs#L230-L236' title='Snippet source file'>snippet source</a> | <a href='#snippet-sample_replacing_logger_per_session' title='Start of snippet'>anchor</a></sup>
365365
<!-- endSnippet -->
366366

367-
368367
## Previewing the PostgreSQL Query Plan
369368

370369
Marten has a helper to find and preview the [PostgreSQL EXPLAIN plan](http://www.postgresql.org/docs/9.5/static/using-explain.html) for a Linq query. Our hope is that this will be a valuable aid to teams who need face performance problems while using Marten. The syntax for fetching the EXPLAIN plan for the Linq query from the previous section is shown below:

Diff for: docs/documents/indexing/computed-indexes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ var store = DocumentStore.For(_ =>
8484

8585
The configuration above creates an index like this:
8686

87-
```
87+
```sql
8888
CREATE INDEX mt_doc_user_idx_first_namelast_name ON public.mt_doc_user USING btree (((data ->> 'FirstName'::text)), ((data ->> 'LastName'::text)))
8989
```
9090

Diff for: docs/documents/indexing/index.md

-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ My own personal bias is to avoid adding persistence concerns directly to the doc
1818
will prefer to use either attributes or the new embedded configuration option with the thinking that it's
1919
better to keep the persistence configuration on the document type itself for easier traceability. Either way,
2020
Marten has you covered with the various configuration options shown here.
21-

Diff for: docs/documents/querying/linq/strings.md

-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,3 @@ query.Query<User>().Single(x => x.UserName.EqualsIgnoreCase("aBc")).Id.ShouldBe(
4848
<!-- endSnippet -->
4949

5050
This defaults to `String.Equals` with `StringComparison.CurrentCultureIgnoreCase` as comparison type.
51-

Diff for: docs/documents/querying/sql.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ In all the code samples on this page, the `session` variable is of type
55
`IQuerySession`.
66
:::
77

8-
The Marten project strives to make the Linq provider robust and performant,
9-
but if there's ever a time when the Linq support is insufficient, you can
10-
drop down to using raw SQL to query documents in Marten.
8+
The Marten project strives to make the Linq provider robust and performant, but if there's ever a time when the Linq support is insufficient, you can drop down to using raw SQL to query documents in Marten.
119

1210
Here's the simplest possible usage to query for `User` documents with a `WHERE` clause:
1311

Diff for: docs/documents/storing.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ await session.SaveChangesAsync();
3838
<sup><a href='https://github.com/JasperFx/marten/blob/master/src/Marten.Testing/Examples/StoringDocuments.cs#L37-L60' title='Snippet source file'>snippet source</a> | <a href='#snippet-sample_using_documentsession_store' title='Start of snippet'>anchor</a></sup>
3939
<!-- endSnippet -->
4040

41-
The `Store()` method can happily take a mixed bag of document types at one time, but you'll
42-
need to tell Marten to use `Store<object>()` instead of letting it infer the document type
43-
as shown below:
41+
The `Store()` method can happily take a mixed bag of document types at one time, but you'll need to tell Marten to use `Store<object>()` instead of letting it infer the document type as shown below:
4442

4543
<!-- snippet: sample_store_mixed_bag_of_document_types -->
4644
<a id='snippet-sample_store_mixed_bag_of_document_types'></a>
@@ -131,9 +129,7 @@ theSession.Query<Target>().Count().ShouldBe(data.Length);
131129
<sup><a href='https://github.com/JasperFx/marten/blob/master/src/Marten.Testing/CoreFunctionality/bulk_loading_async_Tests.cs#L94-L104' title='Snippet source file'>snippet source</a> | <a href='#snippet-sample_using_bulk_insert_async' title='Start of snippet'>anchor</a></sup>
132130
<!-- endSnippet -->
133131

134-
By default, bulk insert will fail if there are any duplicate id's between the documents being inserted and
135-
the existing database data. You can alter this behavior through the `BulkInsertMode` enumeration
136-
as shown below:
132+
By default, bulk insert will fail if there are any duplicate id's between the documents being inserted and the existing database data. You can alter this behavior through the `BulkInsertMode` enumeration as shown below:
137133

138134
<!-- snippet: sample_BulkInsertMode_usages -->
139135
<a id='snippet-sample_bulkinsertmode_usages'></a>

Diff for: docs/events/archiving.md

-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,3 @@ var events = await theSession.Events.QueryAllRawEvents()
4949
```
5050
<sup><a href='https://github.com/JasperFx/marten/blob/master/src/Marten.Testing/Events/archiving_events.cs#L196-L201' title='Snippet source file'>snippet source</a> | <a href='#snippet-sample_query_for_maybe_archived_events' title='Start of snippet'>anchor</a></sup>
5151
<!-- endSnippet -->
52-

Diff for: docs/events/configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Event Store Configuration
22

3-
## Specifying the Schema
3+
## Specifying the Schema
44

55
The database schema name for the event store tables is by default, the same schema as the document store
66
itself. The event storage can be explicitly moved to a separate schema as shown below:

0 commit comments

Comments
 (0)