Skip to content

Commit cd22c38

Browse files
authored
Merge pull request #1 from mbdavid/master
k
2 parents 721c10b + 00d28bf commit cd22c38

File tree

554 files changed

+66196
-18264
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

554 files changed

+66196
-18264
lines changed

.editorconfig

-17
This file was deleted.

.gitattributes

-21
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Version**
11+
Which LiteDB version/OS/.NET framework version are you using. **(REQUIRED)**
12+
13+
**Describe the bug**
14+
A clear and concise description of what the bug is.
15+
16+
**Code to Reproduce**
17+
Write a small snippet to isolate your bug and could be possible to our team test. **(REQUIRED)**
18+
19+
**Expected behavior**
20+
A clear and concise description of what you expected to happen.
21+
22+
**Screenshots/Stacktrace**
23+
If applicable, add screenshots/stacktrace
24+
25+
**Additional context**
26+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[SUGGESTION]"
5+
labels: suggestion
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/question.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Question
3+
about: Write your question about LiteDB
4+
title: "[QUESTION]"
5+
labels: question
6+
assignees: ''
7+
8+
---
9+
10+

.gitignore

+41-1
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,44 @@ FakesAssemblies/
182182
# Nuget 3.0 Files
183183
*.lock.json
184184
*.nuget.props
185-
*.nuget.targets
185+
*.nuget.targets
186+
187+
# Intellij
188+
*.iml
189+
.idea/workspace.xml
190+
.idea/tasks.xml
191+
.idea/gradle.xml
192+
.idea/dictionaries
193+
.idea/libraries
194+
195+
# User-specific configurations
196+
.idea/libraries/
197+
.idea/.name
198+
.idea/compiler.xml
199+
.idea/copyright/profiles_settings.xml
200+
.idea/encodings.xml
201+
.idea/misc.xml
202+
.idea/modules.xml
203+
.idea/scopes/scope_settings.xml
204+
.idea/vcs.xml
205+
.idea/jsLibraryMappings.xml
206+
.idea/datasources.xml
207+
.idea/dataSources.ids
208+
.idea/sqlDataSources.xml
209+
.idea/dynamic.xml
210+
.idea/uiDesigner.xml
211+
212+
### JetBrains+all Patch ###
213+
# Ignores the whole idea folder
214+
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
215+
216+
.idea/
217+
218+
# NuGet Packages
219+
*.nupkg
220+
# The packages folder can be ignored because of Package Restore
221+
**/packages/*
222+
# except build/, which is used as an MSBuild target.
223+
!**/packages/build/
224+
# Uncomment if necessary however generally it will be regenerated when needed
225+
#!**/packages/repositories.config

.travis.yml

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
sudo: required
2-
31
language: csharp
4-
matrix:
2+
mono: none
3+
os: linux
4+
dotnet: 3.1.101
5+
6+
jobs:
57
include:
68
- os: linux
7-
dotnet: 2.0.0
8-
mono: none
9-
dist: trusty
10-
before_install:
11-
- ./.travis/before-install-$TRAVIS_OS_NAME.sh
9+
dist: bionic
10+
- os: osx
11+
12+
env:
13+
global:
14+
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
15+
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
1216

1317
script:
1418
- dotnet restore ./LiteDB/LiteDB.csproj
15-
- dotnet build ./LiteDB/LiteDB.csproj -f netstandard1.3
16-
- dotnet restore ./LiteDB.Tests/LiteDB.Tests.csproj
17-
- dotnet build ./LiteDB.Tests/LiteDB.Tests.csproj
18-
- dotnet test ./LiteDB.Tests/LiteDB.Tests.csproj --logger:console;verbosity=normal
19+
- dotnet build ./LiteDB/LiteDB.csproj -f netstandard2.0
20+
- dotnet test ./LiteDB.Tests/LiteDB.Tests.csproj --logger:console --verbosity=minimal
1921

2022
notifications:
2123
email: false

.travis/before-install-linux.sh

-10
This file was deleted.

.travis/before-install-osx.sh

-20
This file was deleted.

.vscode/launch.json

-28
This file was deleted.

.vscode/tasks.json

-15
This file was deleted.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014-2015 Mauricio David
3+
Copyright (c) 2014-2020 Mauricio David
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using BenchmarkDotNet.Attributes;
2+
3+
namespace LiteDB.Benchmarks.Benchmarks
4+
{
5+
public abstract class BenchmarkBase
6+
{
7+
// Insertion data size
8+
[Params(10, 50, 100, 500, 1000, 5000, 10000)]
9+
public int DatasetSize;
10+
11+
public virtual string DatabasePath
12+
{
13+
get => Constants.DATABASE_NAME;
14+
set => throw new System.NotImplementedException();
15+
}
16+
17+
[Params(ConnectionType.Direct)]
18+
public ConnectionType ConnectionType;
19+
20+
[Params(null, "SecurePassword")]
21+
public string Password;
22+
23+
public ConnectionString ConnectionString() => new ConnectionString(DatabasePath)
24+
{
25+
Connection = ConnectionType,
26+
Password = Password
27+
};
28+
29+
protected ILiteDatabase DatabaseInstance { get; set; }
30+
}
31+
}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
namespace LiteDB.Benchmarks.Benchmarks
2+
{
3+
internal static class Constants
4+
{
5+
internal const string DATABASE_NAME = "Lite.db";
6+
7+
internal static class Categories
8+
{
9+
internal const string DATA_GEN = nameof(DATA_GEN);
10+
internal const string QUERIES = nameof(QUERIES);
11+
internal const string INSERTION = nameof(INSERTION);
12+
internal const string DELETION = nameof(DELETION);
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)