Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store indexes metadata #3434

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
5f63251
wip
rumyantseva Sep 26, 2023
4632b38
wip
rumyantseva Sep 26, 2023
b4bac2d
Merge branch 'main' into issue-3375-pg-indexes-mentadata
Sep 26, 2023
9547f3a
wip
rumyantseva Sep 26, 2023
ada4498
wip
rumyantseva Sep 26, 2023
d31b7ba
wip
rumyantseva Sep 27, 2023
61bb540
wip
rumyantseva Sep 27, 2023
86e88c6
wip
rumyantseva Sep 27, 2023
ccc1b97
wip
rumyantseva Sep 27, 2023
97e0a21
fixed a strange thing
rumyantseva Sep 27, 2023
fa4684f
merge conflicts
rumyantseva Sep 28, 2023
e97422b
bugfix
rumyantseva Sep 28, 2023
cdaca09
fix test
rumyantseva Sep 28, 2023
a198a14
linter things
rumyantseva Sep 28, 2023
1d6f3fb
Merge branch 'main' into issue-3375-pg-indexes-mentadata
rumyantseva Sep 28, 2023
acb5d20
Merge branch 'main' into issue-3375-pg-indexes-mentadata
rumyantseva Sep 28, 2023
49ece35
wip
rumyantseva Sep 28, 2023
ed53d66
wip
rumyantseva Sep 29, 2023
184ec9a
wip
rumyantseva Sep 29, 2023
c1e2861
wip
rumyantseva Sep 29, 2023
0d7bf07
wip
rumyantseva Sep 29, 2023
586f314
wip
rumyantseva Sep 29, 2023
3661271
wip
rumyantseva Sep 29, 2023
9a9a5a8
wip
rumyantseva Sep 29, 2023
97afd35
wip
rumyantseva Sep 29, 2023
db39ee5
wip
rumyantseva Sep 29, 2023
05139bb
wip
rumyantseva Sep 29, 2023
650df0d
Merge branch 'main' into issue-3375-pg-indexes-mentadata
Sep 29, 2023
8019fe0
Merge branch 'main' into issue-3375-pg-indexes-mentadata
Sep 29, 2023
0fb411a
wip
rumyantseva Sep 29, 2023
71c8389
wip
rumyantseva Sep 29, 2023
e577da1
wip
rumyantseva Sep 29, 2023
fc0ad27
Merge branch 'main' into issue-3375-pg-indexes-mentadata
AlekSi Oct 2, 2023
ebe36f1
Simplify
AlekSi Oct 2, 2023
0f6cf2c
Tidy comments
AlekSi Oct 2, 2023
f268901
Extract settings
AlekSi Oct 2, 2023
402e731
Refactor
AlekSi Oct 2, 2023
3fc9156
Cleanup
AlekSi Oct 2, 2023
9819817
Remove tests for library functions
AlekSi Oct 2, 2023
800d3b7
Merge branch 'main' into issue-3375-pg-indexes-mentadata
AlekSi Oct 4, 2023
47de006
version without uuid
rumyantseva Oct 4, 2023
11958ae
simpler way to check for existing indexes
rumyantseva Oct 4, 2023
b03d927
wip
rumyantseva Oct 4, 2023
14ad43d
Merge branch 'main' into issue-3375-pg-indexes-mentadata
Oct 4, 2023
4ebd311
wip
rumyantseva Oct 4, 2023
ee8a461
wip
rumyantseva Oct 4, 2023
bc35680
wip
rumyantseva Oct 4, 2023
97e89f7
wip
rumyantseva Oct 4, 2023
335953f
Merge branch 'main' into issue-3375-pg-indexes-mentadata
Oct 4, 2023
13a7cf7
wip
rumyantseva Oct 5, 2023
bc1800a
Merge branch 'main' into issue-3375-pg-indexes-mentadata
AlekSi Oct 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove tests for library functions
  • Loading branch information
AlekSi committed Oct 2, 2023
commit 9819817b4ba241be9db190bc65086e1a0fbf1534
67 changes: 0 additions & 67 deletions internal/backends/postgresql/collection_test.go

This file was deleted.

23 changes: 23 additions & 0 deletions internal/backends/postgresql/dummy_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2021 FerretDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package postgresql

import (
"testing"
)

func TestDummy(t *testing.T) {
// we need at least one test per package to correctly calculate coverage
}
23 changes: 23 additions & 0 deletions internal/backends/postgresql/metadata/pool/dummy_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2021 FerretDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package pool

import (
"testing"
)

func TestDummy(t *testing.T) {
// we need at least one test per package to correctly calculate coverage
}
155 changes: 0 additions & 155 deletions internal/backends/postgresql/metadata/pool/transaction_test.go

This file was deleted.

31 changes: 0 additions & 31 deletions internal/backends/sqlite/collection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,6 @@ import (
"github.com/FerretDB/FerretDB/internal/util/testutil"
)

func TestInsert(t *testing.T) {
sp, err := state.NewProvider("")
require.NoError(t, err)

b, err := NewBackend(&NewBackendParams{URI: "file:./?mode=memory", L: testutil.Logger(t), P: sp})
require.NoError(t, err)

defer b.Close()

db, err := b.Database(testutil.DatabaseName(t))
require.NoError(t, err)

c, err := db.Collection(testutil.CollectionName(t))
require.NoError(t, err)

ctx := testutil.Ctx(t)

doc, err := types.NewDocument("_id", types.NewObjectID())
require.NoError(t, err)

_, err = c.InsertAll(ctx, &backends.InsertAllParams{
Docs: []*types.Document{doc},
})
require.NoError(t, err)

_, err = c.InsertAll(ctx, &backends.InsertAllParams{
Docs: []*types.Document{doc},
})
require.True(t, backends.ErrorCodeIs(err, backends.ErrorCodeInsertDuplicateID))
}

func TestCollectionStats(t *testing.T) {
t.Parallel()
ctx := testutil.Ctx(t)
Expand Down
Loading