diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6dd1a0ec00..bf8332107a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -93,7 +93,7 @@ jobs: if: matrix.os == 'macos-latest' uses: actions/cache/save@v4 with: - path: dist/darwin_amd64 + path: dist/darwin_arm64 key: darwin-${{ env.sha_short }} - name: Save cache on Windows @@ -146,7 +146,7 @@ jobs: id: restore-macos uses: actions/cache/restore@v4 with: - path: dist/darwin_amd64 + path: dist/darwin_arm64 key: darwin-${{ env.sha_short }} fail-on-cache-miss: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 342cfb3a53..7345a58cc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,70 @@ + + +## [v0.11.0](https://github.com/sourcenetwork/defradb/compare/v0.10.0...v0.11.0) + +> 2024-05-03 + +DefraDB v0.11 is a major pre-production release. Until the stable version 1.0 is reached, the SemVer minor patch number will denote notable releases, which will give the project freedom to experiment and explore potentially breaking changes. + +To get a full outline of the changes, we invite you to review the official changelog below. This release does include a Breaking Change to existing v0.10.x databases. If you need help migrating an existing deployment, reach out at [hello@source.network](mailto:hello@source.network) or join our Discord at https://discord.gg/w7jYQVJ/. + +### Features + +* Update corelog to 0.0.7 ([#2547](https://github.com/sourcenetwork/defradb/issues/2547)) +* Move relation field properties onto collection ([#2529](https://github.com/sourcenetwork/defradb/issues/2529)) +* Lens runtime config ([#2497](https://github.com/sourcenetwork/defradb/issues/2497)) +* Add P Counter CRDT ([#2482](https://github.com/sourcenetwork/defradb/issues/2482)) +* Add Access Control Policy ([#2338](https://github.com/sourcenetwork/defradb/issues/2338)) +* Force explicit primary decl. in SDL for one-ones ([#2462](https://github.com/sourcenetwork/defradb/issues/2462)) +* Allow mutation of col sources via PatchCollection ([#2424](https://github.com/sourcenetwork/defradb/issues/2424)) +* Add Defra-Lens support for branching schema ([#2421](https://github.com/sourcenetwork/defradb/issues/2421)) +* Add PatchCollection ([#2402](https://github.com/sourcenetwork/defradb/issues/2402)) + +### Fixes + +* Return correct results from one-many indexed filter ([#2579](https://github.com/sourcenetwork/defradb/issues/2579)) +* Handle compound filters on related indexed fields ([#2575](https://github.com/sourcenetwork/defradb/issues/2575)) +* Add check to filter result for logical ops ([#2573](https://github.com/sourcenetwork/defradb/issues/2573)) +* Make all array kinds nillable ([#2534](https://github.com/sourcenetwork/defradb/issues/2534)) +* Allow update when updating non-indexed field ([#2511](https://github.com/sourcenetwork/defradb/issues/2511)) + +### Documentation + +* Add data definition document ([#2544](https://github.com/sourcenetwork/defradb/issues/2544)) + +### Refactoring + +* Merge collection UpdateWith and DeleteWith ([#2531](https://github.com/sourcenetwork/defradb/issues/2531)) +* DB transactions context ([#2513](https://github.com/sourcenetwork/defradb/issues/2513)) +* Add NormalValue ([#2404](https://github.com/sourcenetwork/defradb/issues/2404)) +* Clean up client/request package ([#2443](https://github.com/sourcenetwork/defradb/issues/2443)) +* Rewrite convertImmutable ([#2445](https://github.com/sourcenetwork/defradb/issues/2445)) +* Unify Field Kind and Schema properties ([#2414](https://github.com/sourcenetwork/defradb/issues/2414)) +* Replace logging package with corelog ([#2406](https://github.com/sourcenetwork/defradb/issues/2406)) + +### Testing + +* Add flag to skip network tests ([#2495](https://github.com/sourcenetwork/defradb/issues/2495)) + +### Bot + +* Update dependencies (bulk dependabot PRs) 30-04-2024 ([#2570](https://github.com/sourcenetwork/defradb/issues/2570)) +* Bump [@typescript](https://github.com/typescript)-eslint/parser from 7.7.0 to 7.7.1 in /playground ([#2550](https://github.com/sourcenetwork/defradb/issues/2550)) +* Bump [@typescript](https://github.com/typescript)-eslint/eslint-plugin from 7.7.0 to 7.7.1 in /playground ([#2551](https://github.com/sourcenetwork/defradb/issues/2551)) +* Bump swagger-ui-react from 5.16.2 to 5.17.0 in /playground ([#2549](https://github.com/sourcenetwork/defradb/issues/2549)) +* Update dependencies (bulk dependabot PRs) 23-04-2023 ([#2548](https://github.com/sourcenetwork/defradb/issues/2548)) +* Bump go.opentelemetry.io/otel/sdk/metric from 1.24.0 to 1.25.0 ([#2499](https://github.com/sourcenetwork/defradb/issues/2499)) +* Bump typescript from 5.4.3 to 5.4.5 in /playground ([#2515](https://github.com/sourcenetwork/defradb/issues/2515)) +* Bump swagger-ui-react from 5.14.0 to 5.15.0 in /playground ([#2514](https://github.com/sourcenetwork/defradb/issues/2514)) +* Update dependencies (bulk dependabot PRs) 2024-04-09 ([#2509](https://github.com/sourcenetwork/defradb/issues/2509)) +* Update dependencies (bulk dependabot PRs) 2024-04-03 ([#2492](https://github.com/sourcenetwork/defradb/issues/2492)) +* Update dependencies (bulk dependabot PRs) 03-04-2024 ([#2486](https://github.com/sourcenetwork/defradb/issues/2486)) +* Bump github.com/multiformats/go-multiaddr from 0.12.2 to 0.12.3 ([#2480](https://github.com/sourcenetwork/defradb/issues/2480)) +* Bump [@types](https://github.com/types)/react from 18.2.66 to 18.2.67 in /playground ([#2427](https://github.com/sourcenetwork/defradb/issues/2427)) +* Bump [@typescript](https://github.com/typescript)-eslint/parser from 7.2.0 to 7.3.1 in /playground ([#2428](https://github.com/sourcenetwork/defradb/issues/2428)) +* Update dependencies (bulk dependabot PRs) 19-03-2024 ([#2426](https://github.com/sourcenetwork/defradb/issues/2426)) +* Update dependencies (bulk dependabot PRs) 03-11-2024 ([#2399](https://github.com/sourcenetwork/defradb/issues/2399)) + ## [v0.10.0](https://github.com/sourcenetwork/defradb/compare/v0.9.0...v0.10.0) diff --git a/README.md b/README.md index 4924170e79..220c48f842 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,6 @@ Read the documentation on [docs.source.network](https://docs.source.network/). ## Table of Contents -- [Early Access](#early-access) - [Install](#install) - [Start](#start) - [Configuration](#configuration) @@ -32,12 +31,14 @@ Read the documentation on [docs.source.network](https://docs.source.network/). - [Collection subscription example](#collection-subscription-example) - [Replicator example](#replicator-example) - [Securing the HTTP API with TLS](#securing-the-http-api-with-tls) +- [Access Control System](#access-control-system) - [Supporting CORS](#supporting-cors) - [Backing up and restoring](#backing-up-and-restoring) +- [Community](#community) - [Licensing](#licensing) - [Contributors](#contributors) -DISCLAIMER: At this early stage, DefraDB does not offer access control or data encryption, and the default configuration exposes the database to the network. The software is provided "as is" and is not guaranteed to be stable, secure, or error-free. We encourage you to experiment with DefraDB and provide feedback, but please do not use it for production purposes until it has been thoroughly tested and developed. +DISCLAIMER: At this early stage, DefraDB does not offer data encryption, and the default configuration exposes the database to the network. The software is provided "as is" and is not guaranteed to be stable, secure, or error-free. We encourage you to experiment with DefraDB and provide feedback, but please do not use it for production purposes until it has been thoroughly tested and developed. ## Install diff --git a/client/mocks/collection.go b/client/mocks/collection.go index fac90fe1e4..7c227edd2b 100644 --- a/client/mocks/collection.go +++ b/client/mocks/collection.go @@ -344,171 +344,6 @@ func (_c *Collection_DeleteDocIndex_Call) RunAndReturn(run func(context.Context, return _c } -// DeleteWith provides a mock function with given fields: ctx, target -func (_m *Collection) DeleteWith(ctx context.Context, target interface{}) (*client.DeleteResult, error) { - ret := _m.Called(ctx, target) - - var r0 *client.DeleteResult - var r1 error - if rf, ok := ret.Get(0).(func(context.Context, interface{}) (*client.DeleteResult, error)); ok { - return rf(ctx, target) - } - if rf, ok := ret.Get(0).(func(context.Context, interface{}) *client.DeleteResult); ok { - r0 = rf(ctx, target) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*client.DeleteResult) - } - } - - if rf, ok := ret.Get(1).(func(context.Context, interface{}) error); ok { - r1 = rf(ctx, target) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// Collection_DeleteWith_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteWith' -type Collection_DeleteWith_Call struct { - *mock.Call -} - -// DeleteWith is a helper method to define mock.On call -// - ctx context.Context -// - target interface{} -func (_e *Collection_Expecter) DeleteWith(ctx interface{}, target interface{}) *Collection_DeleteWith_Call { - return &Collection_DeleteWith_Call{Call: _e.mock.On("DeleteWith", ctx, target)} -} - -func (_c *Collection_DeleteWith_Call) Run(run func(ctx context.Context, target interface{})) *Collection_DeleteWith_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(interface{})) - }) - return _c -} - -func (_c *Collection_DeleteWith_Call) Return(_a0 *client.DeleteResult, _a1 error) *Collection_DeleteWith_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *Collection_DeleteWith_Call) RunAndReturn(run func(context.Context, interface{}) (*client.DeleteResult, error)) *Collection_DeleteWith_Call { - _c.Call.Return(run) - return _c -} - -// DeleteWithDocID provides a mock function with given fields: ctx, docID -func (_m *Collection) DeleteWithDocID(ctx context.Context, docID client.DocID) (*client.DeleteResult, error) { - ret := _m.Called(ctx, docID) - - var r0 *client.DeleteResult - var r1 error - if rf, ok := ret.Get(0).(func(context.Context, client.DocID) (*client.DeleteResult, error)); ok { - return rf(ctx, docID) - } - if rf, ok := ret.Get(0).(func(context.Context, client.DocID) *client.DeleteResult); ok { - r0 = rf(ctx, docID) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*client.DeleteResult) - } - } - - if rf, ok := ret.Get(1).(func(context.Context, client.DocID) error); ok { - r1 = rf(ctx, docID) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// Collection_DeleteWithDocID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteWithDocID' -type Collection_DeleteWithDocID_Call struct { - *mock.Call -} - -// DeleteWithDocID is a helper method to define mock.On call -// - ctx context.Context -// - docID client.DocID -func (_e *Collection_Expecter) DeleteWithDocID(ctx interface{}, docID interface{}) *Collection_DeleteWithDocID_Call { - return &Collection_DeleteWithDocID_Call{Call: _e.mock.On("DeleteWithDocID", ctx, docID)} -} - -func (_c *Collection_DeleteWithDocID_Call) Run(run func(ctx context.Context, docID client.DocID)) *Collection_DeleteWithDocID_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(client.DocID)) - }) - return _c -} - -func (_c *Collection_DeleteWithDocID_Call) Return(_a0 *client.DeleteResult, _a1 error) *Collection_DeleteWithDocID_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *Collection_DeleteWithDocID_Call) RunAndReturn(run func(context.Context, client.DocID) (*client.DeleteResult, error)) *Collection_DeleteWithDocID_Call { - _c.Call.Return(run) - return _c -} - -// DeleteWithDocIDs provides a mock function with given fields: ctx, docIDs -func (_m *Collection) DeleteWithDocIDs(ctx context.Context, docIDs []client.DocID) (*client.DeleteResult, error) { - ret := _m.Called(ctx, docIDs) - - var r0 *client.DeleteResult - var r1 error - if rf, ok := ret.Get(0).(func(context.Context, []client.DocID) (*client.DeleteResult, error)); ok { - return rf(ctx, docIDs) - } - if rf, ok := ret.Get(0).(func(context.Context, []client.DocID) *client.DeleteResult); ok { - r0 = rf(ctx, docIDs) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*client.DeleteResult) - } - } - - if rf, ok := ret.Get(1).(func(context.Context, []client.DocID) error); ok { - r1 = rf(ctx, docIDs) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// Collection_DeleteWithDocIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteWithDocIDs' -type Collection_DeleteWithDocIDs_Call struct { - *mock.Call -} - -// DeleteWithDocIDs is a helper method to define mock.On call -// - ctx context.Context -// - docIDs []client.DocID -func (_e *Collection_Expecter) DeleteWithDocIDs(ctx interface{}, docIDs interface{}) *Collection_DeleteWithDocIDs_Call { - return &Collection_DeleteWithDocIDs_Call{Call: _e.mock.On("DeleteWithDocIDs", ctx, docIDs)} -} - -func (_c *Collection_DeleteWithDocIDs_Call) Run(run func(ctx context.Context, docIDs []client.DocID)) *Collection_DeleteWithDocIDs_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].([]client.DocID)) - }) - return _c -} - -func (_c *Collection_DeleteWithDocIDs_Call) Return(_a0 *client.DeleteResult, _a1 error) *Collection_DeleteWithDocIDs_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *Collection_DeleteWithDocIDs_Call) RunAndReturn(run func(context.Context, []client.DocID) (*client.DeleteResult, error)) *Collection_DeleteWithDocIDs_Call { - _c.Call.Return(run) - return _c -} - // DeleteWithFilter provides a mock function with given fields: ctx, filter func (_m *Collection) DeleteWithFilter(ctx context.Context, filter interface{}) (*client.DeleteResult, error) { ret := _m.Called(ctx, filter) @@ -1159,174 +994,6 @@ func (_c *Collection_UpdateDocIndex_Call) RunAndReturn(run func(context.Context, return _c } -// UpdateWith provides a mock function with given fields: ctx, target, updater -func (_m *Collection) UpdateWith(ctx context.Context, target interface{}, updater string) (*client.UpdateResult, error) { - ret := _m.Called(ctx, target, updater) - - var r0 *client.UpdateResult - var r1 error - if rf, ok := ret.Get(0).(func(context.Context, interface{}, string) (*client.UpdateResult, error)); ok { - return rf(ctx, target, updater) - } - if rf, ok := ret.Get(0).(func(context.Context, interface{}, string) *client.UpdateResult); ok { - r0 = rf(ctx, target, updater) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*client.UpdateResult) - } - } - - if rf, ok := ret.Get(1).(func(context.Context, interface{}, string) error); ok { - r1 = rf(ctx, target, updater) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// Collection_UpdateWith_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWith' -type Collection_UpdateWith_Call struct { - *mock.Call -} - -// UpdateWith is a helper method to define mock.On call -// - ctx context.Context -// - target interface{} -// - updater string -func (_e *Collection_Expecter) UpdateWith(ctx interface{}, target interface{}, updater interface{}) *Collection_UpdateWith_Call { - return &Collection_UpdateWith_Call{Call: _e.mock.On("UpdateWith", ctx, target, updater)} -} - -func (_c *Collection_UpdateWith_Call) Run(run func(ctx context.Context, target interface{}, updater string)) *Collection_UpdateWith_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(interface{}), args[2].(string)) - }) - return _c -} - -func (_c *Collection_UpdateWith_Call) Return(_a0 *client.UpdateResult, _a1 error) *Collection_UpdateWith_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *Collection_UpdateWith_Call) RunAndReturn(run func(context.Context, interface{}, string) (*client.UpdateResult, error)) *Collection_UpdateWith_Call { - _c.Call.Return(run) - return _c -} - -// UpdateWithDocID provides a mock function with given fields: ctx, docID, updater -func (_m *Collection) UpdateWithDocID(ctx context.Context, docID client.DocID, updater string) (*client.UpdateResult, error) { - ret := _m.Called(ctx, docID, updater) - - var r0 *client.UpdateResult - var r1 error - if rf, ok := ret.Get(0).(func(context.Context, client.DocID, string) (*client.UpdateResult, error)); ok { - return rf(ctx, docID, updater) - } - if rf, ok := ret.Get(0).(func(context.Context, client.DocID, string) *client.UpdateResult); ok { - r0 = rf(ctx, docID, updater) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*client.UpdateResult) - } - } - - if rf, ok := ret.Get(1).(func(context.Context, client.DocID, string) error); ok { - r1 = rf(ctx, docID, updater) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// Collection_UpdateWithDocID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWithDocID' -type Collection_UpdateWithDocID_Call struct { - *mock.Call -} - -// UpdateWithDocID is a helper method to define mock.On call -// - ctx context.Context -// - docID client.DocID -// - updater string -func (_e *Collection_Expecter) UpdateWithDocID(ctx interface{}, docID interface{}, updater interface{}) *Collection_UpdateWithDocID_Call { - return &Collection_UpdateWithDocID_Call{Call: _e.mock.On("UpdateWithDocID", ctx, docID, updater)} -} - -func (_c *Collection_UpdateWithDocID_Call) Run(run func(ctx context.Context, docID client.DocID, updater string)) *Collection_UpdateWithDocID_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(client.DocID), args[2].(string)) - }) - return _c -} - -func (_c *Collection_UpdateWithDocID_Call) Return(_a0 *client.UpdateResult, _a1 error) *Collection_UpdateWithDocID_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *Collection_UpdateWithDocID_Call) RunAndReturn(run func(context.Context, client.DocID, string) (*client.UpdateResult, error)) *Collection_UpdateWithDocID_Call { - _c.Call.Return(run) - return _c -} - -// UpdateWithDocIDs provides a mock function with given fields: ctx, docIDs, updater -func (_m *Collection) UpdateWithDocIDs(ctx context.Context, docIDs []client.DocID, updater string) (*client.UpdateResult, error) { - ret := _m.Called(ctx, docIDs, updater) - - var r0 *client.UpdateResult - var r1 error - if rf, ok := ret.Get(0).(func(context.Context, []client.DocID, string) (*client.UpdateResult, error)); ok { - return rf(ctx, docIDs, updater) - } - if rf, ok := ret.Get(0).(func(context.Context, []client.DocID, string) *client.UpdateResult); ok { - r0 = rf(ctx, docIDs, updater) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*client.UpdateResult) - } - } - - if rf, ok := ret.Get(1).(func(context.Context, []client.DocID, string) error); ok { - r1 = rf(ctx, docIDs, updater) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// Collection_UpdateWithDocIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWithDocIDs' -type Collection_UpdateWithDocIDs_Call struct { - *mock.Call -} - -// UpdateWithDocIDs is a helper method to define mock.On call -// - ctx context.Context -// - docIDs []client.DocID -// - updater string -func (_e *Collection_Expecter) UpdateWithDocIDs(ctx interface{}, docIDs interface{}, updater interface{}) *Collection_UpdateWithDocIDs_Call { - return &Collection_UpdateWithDocIDs_Call{Call: _e.mock.On("UpdateWithDocIDs", ctx, docIDs, updater)} -} - -func (_c *Collection_UpdateWithDocIDs_Call) Run(run func(ctx context.Context, docIDs []client.DocID, updater string)) *Collection_UpdateWithDocIDs_Call { - _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].([]client.DocID), args[2].(string)) - }) - return _c -} - -func (_c *Collection_UpdateWithDocIDs_Call) Return(_a0 *client.UpdateResult, _a1 error) *Collection_UpdateWithDocIDs_Call { - _c.Call.Return(_a0, _a1) - return _c -} - -func (_c *Collection_UpdateWithDocIDs_Call) RunAndReturn(run func(context.Context, []client.DocID, string) (*client.UpdateResult, error)) *Collection_UpdateWithDocIDs_Call { - _c.Call.Return(run) - return _c -} - // UpdateWithFilter provides a mock function with given fields: ctx, filter, updater func (_m *Collection) UpdateWithFilter(ctx context.Context, filter interface{}, updater string) (*client.UpdateResult, error) { ret := _m.Called(ctx, filter, updater) diff --git a/client/mocks/db.go b/client/mocks/db.go index 31c44c1241..20b5988fe7 100644 --- a/client/mocks/db.go +++ b/client/mocks/db.go @@ -32,23 +32,23 @@ func (_m *DB) EXPECT() *DB_Expecter { return &DB_Expecter{mock: &_m.Mock} } -// AddPolicy provides a mock function with given fields: ctx, creatorID, policy -func (_m *DB) AddPolicy(ctx context.Context, creatorID string, policy string) (client.AddPolicyResult, error) { - ret := _m.Called(ctx, creatorID, policy) +// AddPolicy provides a mock function with given fields: ctx, policy +func (_m *DB) AddPolicy(ctx context.Context, policy string) (client.AddPolicyResult, error) { + ret := _m.Called(ctx, policy) var r0 client.AddPolicyResult var r1 error - if rf, ok := ret.Get(0).(func(context.Context, string, string) (client.AddPolicyResult, error)); ok { - return rf(ctx, creatorID, policy) + if rf, ok := ret.Get(0).(func(context.Context, string) (client.AddPolicyResult, error)); ok { + return rf(ctx, policy) } - if rf, ok := ret.Get(0).(func(context.Context, string, string) client.AddPolicyResult); ok { - r0 = rf(ctx, creatorID, policy) + if rf, ok := ret.Get(0).(func(context.Context, string) client.AddPolicyResult); ok { + r0 = rf(ctx, policy) } else { r0 = ret.Get(0).(client.AddPolicyResult) } - if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { - r1 = rf(ctx, creatorID, policy) + if rf, ok := ret.Get(1).(func(context.Context, string) error); ok { + r1 = rf(ctx, policy) } else { r1 = ret.Error(1) } @@ -63,15 +63,14 @@ type DB_AddPolicy_Call struct { // AddPolicy is a helper method to define mock.On call // - ctx context.Context -// - creatorID string // - policy string -func (_e *DB_Expecter) AddPolicy(ctx interface{}, creatorID interface{}, policy interface{}) *DB_AddPolicy_Call { - return &DB_AddPolicy_Call{Call: _e.mock.On("AddPolicy", ctx, creatorID, policy)} +func (_e *DB_Expecter) AddPolicy(ctx interface{}, policy interface{}) *DB_AddPolicy_Call { + return &DB_AddPolicy_Call{Call: _e.mock.On("AddPolicy", ctx, policy)} } -func (_c *DB_AddPolicy_Call) Run(run func(ctx context.Context, creatorID string, policy string)) *DB_AddPolicy_Call { +func (_c *DB_AddPolicy_Call) Run(run func(ctx context.Context, policy string)) *DB_AddPolicy_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(string), args[2].(string)) + run(args[0].(context.Context), args[1].(string)) }) return _c } @@ -81,7 +80,7 @@ func (_c *DB_AddPolicy_Call) Return(_a0 client.AddPolicyResult, _a1 error) *DB_A return _c } -func (_c *DB_AddPolicy_Call) RunAndReturn(run func(context.Context, string, string) (client.AddPolicyResult, error)) *DB_AddPolicy_Call { +func (_c *DB_AddPolicy_Call) RunAndReturn(run func(context.Context, string) (client.AddPolicyResult, error)) *DB_AddPolicy_Call { _c.Call.Return(run) return _c } diff --git a/db/fetcher/mocks/fetcher.go b/db/fetcher/mocks/fetcher.go index 44421230a0..4f537aefea 100644 --- a/db/fetcher/mocks/fetcher.go +++ b/db/fetcher/mocks/fetcher.go @@ -138,13 +138,13 @@ func (_c *Fetcher_FetchNext_Call) RunAndReturn(run func(context.Context) (fetche return _c } -// Init provides a mock function with given fields: ctx, id, txn, _a3, col, fields, filter, docmapper, reverse, showDeleted -func (_m *Fetcher) Init(ctx context.Context, id immutable.Option[identity.Identity], txn datastore.Txn, _a3 immutable.Option[acp.ACP], col client.Collection, fields []client.FieldDefinition, filter *mapper.Filter, docmapper *core.DocumentMapping, reverse bool, showDeleted bool) error { - ret := _m.Called(ctx, id, txn, _a3, col, fields, filter, docmapper, reverse, showDeleted) +// Init provides a mock function with given fields: ctx, _a1, txn, _a3, col, fields, filter, docmapper, reverse, showDeleted +func (_m *Fetcher) Init(ctx context.Context, _a1 immutable.Option[identity.Identity], txn datastore.Txn, _a3 immutable.Option[acp.ACP], col client.Collection, fields []client.FieldDefinition, filter *mapper.Filter, docmapper *core.DocumentMapping, reverse bool, showDeleted bool) error { + ret := _m.Called(ctx, _a1, txn, _a3, col, fields, filter, docmapper, reverse, showDeleted) var r0 error if rf, ok := ret.Get(0).(func(context.Context, immutable.Option[identity.Identity], datastore.Txn, immutable.Option[acp.ACP], client.Collection, []client.FieldDefinition, *mapper.Filter, *core.DocumentMapping, bool, bool) error); ok { - r0 = rf(ctx, id, txn, _a3, col, fields, filter, docmapper, reverse, showDeleted) + r0 = rf(ctx, _a1, txn, _a3, col, fields, filter, docmapper, reverse, showDeleted) } else { r0 = ret.Error(0) } @@ -159,7 +159,7 @@ type Fetcher_Init_Call struct { // Init is a helper method to define mock.On call // - ctx context.Context -// - id immutable.Option[identity.Identity] +// - _a1 immutable.Option[identity.Identity] // - txn datastore.Txn // - _a3 immutable.Option[acp.ACP] // - col client.Collection @@ -168,11 +168,11 @@ type Fetcher_Init_Call struct { // - docmapper *core.DocumentMapping // - reverse bool // - showDeleted bool -func (_e *Fetcher_Expecter) Init(ctx interface{}, id interface{}, txn interface{}, _a3 interface{}, col interface{}, fields interface{}, filter interface{}, docmapper interface{}, reverse interface{}, showDeleted interface{}) *Fetcher_Init_Call { - return &Fetcher_Init_Call{Call: _e.mock.On("Init", ctx, id, txn, _a3, col, fields, filter, docmapper, reverse, showDeleted)} +func (_e *Fetcher_Expecter) Init(ctx interface{}, _a1 interface{}, txn interface{}, _a3 interface{}, col interface{}, fields interface{}, filter interface{}, docmapper interface{}, reverse interface{}, showDeleted interface{}) *Fetcher_Init_Call { + return &Fetcher_Init_Call{Call: _e.mock.On("Init", ctx, _a1, txn, _a3, col, fields, filter, docmapper, reverse, showDeleted)} } -func (_c *Fetcher_Init_Call) Run(run func(ctx context.Context, id immutable.Option[identity.Identity], txn datastore.Txn, _a3 immutable.Option[acp.ACP], col client.Collection, fields []client.FieldDefinition, filter *mapper.Filter, docmapper *core.DocumentMapping, reverse bool, showDeleted bool)) *Fetcher_Init_Call { +func (_c *Fetcher_Init_Call) Run(run func(ctx context.Context, _a1 immutable.Option[identity.Identity], txn datastore.Txn, _a3 immutable.Option[acp.ACP], col client.Collection, fields []client.FieldDefinition, filter *mapper.Filter, docmapper *core.DocumentMapping, reverse bool, showDeleted bool)) *Fetcher_Init_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(immutable.Option[identity.Identity]), args[2].(datastore.Txn), args[3].(immutable.Option[acp.ACP]), args[4].(client.Collection), args[5].([]client.FieldDefinition), args[6].(*mapper.Filter), args[7].(*core.DocumentMapping), args[8].(bool), args[9].(bool)) }) diff --git a/docs/cli/defradb.md b/docs/cli/defradb.md index 00b29d7392..602206e575 100644 --- a/docs/cli/defradb.md +++ b/docs/cli/defradb.md @@ -16,6 +16,7 @@ Start a DefraDB node, interact with a local or remote node, and much more. -h, --help help for defradb --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client.md b/docs/cli/defradb_client.md index e799d5b4f7..302e171dd3 100644 --- a/docs/cli/defradb_client.md +++ b/docs/cli/defradb_client.md @@ -21,6 +21,7 @@ Execute queries, add schema types, obtain node info, etc. --allowed-origins stringArray List of origins to allow for CORS requests --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_acp.md b/docs/cli/defradb_client_acp.md index 43d1cae8ac..d3f57ae230 100644 --- a/docs/cli/defradb_client_acp.md +++ b/docs/cli/defradb_client_acp.md @@ -23,6 +23,7 @@ Learn more about [ACP](/acp/README.md) -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_acp_policy.md b/docs/cli/defradb_client_acp_policy.md index 54445062c1..2e659a0eb4 100644 --- a/docs/cli/defradb_client_acp_policy.md +++ b/docs/cli/defradb_client_acp_policy.md @@ -19,6 +19,7 @@ Interact with the acp policy features of DefraDB instance -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_acp_policy_add.md b/docs/cli/defradb_client_acp_policy_add.md index 65f3aa68d8..f426909323 100644 --- a/docs/cli/defradb_client_acp_policy_add.md +++ b/docs/cli/defradb_client_acp_policy_add.md @@ -67,6 +67,7 @@ defradb client acp policy add [-i --identity] [policy] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_backup.md b/docs/cli/defradb_client_backup.md index 6fdd82b1cf..ffa879365c 100644 --- a/docs/cli/defradb_client_backup.md +++ b/docs/cli/defradb_client_backup.md @@ -20,6 +20,7 @@ Currently only supports JSON format. -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_backup_export.md b/docs/cli/defradb_client_backup_export.md index e950883096..fc05e8ee14 100644 --- a/docs/cli/defradb_client_backup_export.md +++ b/docs/cli/defradb_client_backup_export.md @@ -34,6 +34,7 @@ defradb client backup export [-c --collections | -p --pretty | -f --format] ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_backup_import.md b/docs/cli/defradb_client_backup_import.md index 1865785bde..373f5be89c 100644 --- a/docs/cli/defradb_client_backup_import.md +++ b/docs/cli/defradb_client_backup_import.md @@ -26,6 +26,7 @@ defradb client backup import [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_collection.md b/docs/cli/defradb_client_collection.md index 94c5f5975a..59faa94f78 100644 --- a/docs/cli/defradb_client_collection.md +++ b/docs/cli/defradb_client_collection.md @@ -24,6 +24,7 @@ Create, read, update, and delete documents within a collection. --allowed-origins stringArray List of origins to allow for CORS requests --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_collection_create.md b/docs/cli/defradb_client_collection_create.md index daaaa2902f..b565c2a547 100644 --- a/docs/cli/defradb_client_collection_create.md +++ b/docs/cli/defradb_client_collection_create.md @@ -41,6 +41,7 @@ defradb client collection create [-i --identity] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_collection_delete.md b/docs/cli/defradb_client_collection_delete.md index 110654ff5d..2bca8d7d8a 100644 --- a/docs/cli/defradb_client_collection_delete.md +++ b/docs/cli/defradb_client_collection_delete.md @@ -36,6 +36,7 @@ defradb client collection delete [-i --identity] [--filter --docID ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_collection_describe.md b/docs/cli/defradb_client_collection_describe.md index 184a0bd723..bea05a1321 100644 --- a/docs/cli/defradb_client_collection_describe.md +++ b/docs/cli/defradb_client_collection_describe.md @@ -40,6 +40,7 @@ defradb client collection describe [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_collection_docIDs.md b/docs/cli/defradb_client_collection_docIDs.md index 1f9de21946..1cf1a8444a 100644 --- a/docs/cli/defradb_client_collection_docIDs.md +++ b/docs/cli/defradb_client_collection_docIDs.md @@ -31,6 +31,7 @@ defradb client collection docIDs [-i --identity] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_collection_get.md b/docs/cli/defradb_client_collection_get.md index 34724bea54..7b80a2a54b 100644 --- a/docs/cli/defradb_client_collection_get.md +++ b/docs/cli/defradb_client_collection_get.md @@ -32,6 +32,7 @@ defradb client collection get [-i --identity] [--show-deleted] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_collection_patch.md b/docs/cli/defradb_client_collection_patch.md index 25cff2d710..c8540aa397 100644 --- a/docs/cli/defradb_client_collection_patch.md +++ b/docs/cli/defradb_client_collection_patch.md @@ -38,6 +38,7 @@ defradb client collection patch [patch] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_collection_update.md b/docs/cli/defradb_client_collection_update.md index 19533da6b3..ab6b8999b0 100644 --- a/docs/cli/defradb_client_collection_update.md +++ b/docs/cli/defradb_client_collection_update.md @@ -43,6 +43,7 @@ defradb client collection update [-i --identity] [--filter --docID ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_dump.md b/docs/cli/defradb_client_dump.md index e488234c5f..a819df1514 100644 --- a/docs/cli/defradb_client_dump.md +++ b/docs/cli/defradb_client_dump.md @@ -19,6 +19,7 @@ defradb client dump [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_index.md b/docs/cli/defradb_client_index.md index e4577d3c10..bb59a6373b 100644 --- a/docs/cli/defradb_client_index.md +++ b/docs/cli/defradb_client_index.md @@ -19,6 +19,7 @@ Manage (create, drop, or list) collection indexes on a DefraDB node. -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_index_create.md b/docs/cli/defradb_client_index_create.md index dffc32822c..8c365e348e 100644 --- a/docs/cli/defradb_client_index_create.md +++ b/docs/cli/defradb_client_index_create.md @@ -36,6 +36,7 @@ defradb client index create -c --collection --fields [-n - -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_index_drop.md b/docs/cli/defradb_client_index_drop.md index 7e91607c3a..03b206c6cb 100644 --- a/docs/cli/defradb_client_index_drop.md +++ b/docs/cli/defradb_client_index_drop.md @@ -28,6 +28,7 @@ defradb client index drop -c --collection -n --name [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_index_list.md b/docs/cli/defradb_client_index_list.md index 563b622cde..3c776f73ac 100644 --- a/docs/cli/defradb_client_index_list.md +++ b/docs/cli/defradb_client_index_list.md @@ -30,6 +30,7 @@ defradb client index list [-c --collection ] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_p2p.md b/docs/cli/defradb_client_p2p.md index 5ac781aa5c..2506208717 100644 --- a/docs/cli/defradb_client_p2p.md +++ b/docs/cli/defradb_client_p2p.md @@ -19,6 +19,7 @@ Interact with the DefraDB P2P system -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_p2p_collection.md b/docs/cli/defradb_client_p2p_collection.md index f664c94414..a1de966445 100644 --- a/docs/cli/defradb_client_p2p_collection.md +++ b/docs/cli/defradb_client_p2p_collection.md @@ -20,6 +20,7 @@ The selected collections synchronize their events on the pubsub network. -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_p2p_collection_add.md b/docs/cli/defradb_client_p2p_collection_add.md index 5a45967831..01bc79ca0f 100644 --- a/docs/cli/defradb_client_p2p_collection_add.md +++ b/docs/cli/defradb_client_p2p_collection_add.md @@ -31,6 +31,7 @@ defradb client p2p collection add [collectionIDs] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_p2p_collection_getall.md b/docs/cli/defradb_client_p2p_collection_getall.md index 66b8f919c6..8d10944ad2 100644 --- a/docs/cli/defradb_client_p2p_collection_getall.md +++ b/docs/cli/defradb_client_p2p_collection_getall.md @@ -24,6 +24,7 @@ defradb client p2p collection getall [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_p2p_collection_remove.md b/docs/cli/defradb_client_p2p_collection_remove.md index e8f8320222..1cd6a14ee9 100644 --- a/docs/cli/defradb_client_p2p_collection_remove.md +++ b/docs/cli/defradb_client_p2p_collection_remove.md @@ -31,6 +31,7 @@ defradb client p2p collection remove [collectionIDs] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_p2p_info.md b/docs/cli/defradb_client_p2p_info.md index 7a84f1152f..385780ad3d 100644 --- a/docs/cli/defradb_client_p2p_info.md +++ b/docs/cli/defradb_client_p2p_info.md @@ -23,6 +23,7 @@ defradb client p2p info [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_p2p_replicator.md b/docs/cli/defradb_client_p2p_replicator.md index 3dbe42b935..b9d5b561c7 100644 --- a/docs/cli/defradb_client_p2p_replicator.md +++ b/docs/cli/defradb_client_p2p_replicator.md @@ -20,6 +20,7 @@ A replicator replicates one or all collection(s) from one node to another. -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_p2p_replicator_delete.md b/docs/cli/defradb_client_p2p_replicator_delete.md index 88c68fa6b4..93e5ff6d95 100644 --- a/docs/cli/defradb_client_p2p_replicator_delete.md +++ b/docs/cli/defradb_client_p2p_replicator_delete.md @@ -29,6 +29,7 @@ defradb client p2p replicator delete [-c, --collection] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_p2p_replicator_getall.md b/docs/cli/defradb_client_p2p_replicator_getall.md index 38c015f24d..cc9cc1ed63 100644 --- a/docs/cli/defradb_client_p2p_replicator_getall.md +++ b/docs/cli/defradb_client_p2p_replicator_getall.md @@ -28,6 +28,7 @@ defradb client p2p replicator getall [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_p2p_replicator_set.md b/docs/cli/defradb_client_p2p_replicator_set.md index 24e514250a..4fbc980a7c 100644 --- a/docs/cli/defradb_client_p2p_replicator_set.md +++ b/docs/cli/defradb_client_p2p_replicator_set.md @@ -29,6 +29,7 @@ defradb client p2p replicator set [-c, --collection] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_query.md b/docs/cli/defradb_client_query.md index cd53fcaf48..493acca2d4 100644 --- a/docs/cli/defradb_client_query.md +++ b/docs/cli/defradb_client_query.md @@ -41,6 +41,7 @@ defradb client query [-i --identity] [request] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_schema.md b/docs/cli/defradb_client_schema.md index 569d8e95f9..2e144a89e6 100644 --- a/docs/cli/defradb_client_schema.md +++ b/docs/cli/defradb_client_schema.md @@ -19,6 +19,7 @@ Make changes, updates, or look for existing schema types. -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_schema_add.md b/docs/cli/defradb_client_schema_add.md index e425110a1b..0ff3f683f4 100644 --- a/docs/cli/defradb_client_schema_add.md +++ b/docs/cli/defradb_client_schema_add.md @@ -40,6 +40,7 @@ defradb client schema add [schema] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_schema_describe.md b/docs/cli/defradb_client_schema_describe.md index cf94bed188..0b28a1e64e 100644 --- a/docs/cli/defradb_client_schema_describe.md +++ b/docs/cli/defradb_client_schema_describe.md @@ -39,6 +39,7 @@ defradb client schema describe [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_schema_migration.md b/docs/cli/defradb_client_schema_migration.md index 3f4640a672..c339763571 100644 --- a/docs/cli/defradb_client_schema_migration.md +++ b/docs/cli/defradb_client_schema_migration.md @@ -19,6 +19,7 @@ Make set or look for existing schema migrations on a DefraDB node. -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_schema_migration_down.md b/docs/cli/defradb_client_schema_migration_down.md index 72cd07b96e..f741f5bec9 100644 --- a/docs/cli/defradb_client_schema_migration_down.md +++ b/docs/cli/defradb_client_schema_migration_down.md @@ -36,6 +36,7 @@ defradb client schema migration down --collection [fl -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_schema_migration_reload.md b/docs/cli/defradb_client_schema_migration_reload.md index 8e56cd1a0c..8a1d8480c0 100644 --- a/docs/cli/defradb_client_schema_migration_reload.md +++ b/docs/cli/defradb_client_schema_migration_reload.md @@ -23,6 +23,7 @@ defradb client schema migration reload [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_schema_migration_set-registry.md b/docs/cli/defradb_client_schema_migration_set-registry.md index cf0b117b30..ebb4c625c7 100644 --- a/docs/cli/defradb_client_schema_migration_set-registry.md +++ b/docs/cli/defradb_client_schema_migration_set-registry.md @@ -29,6 +29,7 @@ defradb client schema migration set-registry [collectionID] [cfg] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_schema_migration_set.md b/docs/cli/defradb_client_schema_migration_set.md index 135e39308b..8386fd8369 100644 --- a/docs/cli/defradb_client_schema_migration_set.md +++ b/docs/cli/defradb_client_schema_migration_set.md @@ -36,6 +36,7 @@ defradb client schema migration set [src] [dst] [cfg] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_schema_migration_up.md b/docs/cli/defradb_client_schema_migration_up.md index 863d033f91..b55ace45ad 100644 --- a/docs/cli/defradb_client_schema_migration_up.md +++ b/docs/cli/defradb_client_schema_migration_up.md @@ -36,6 +36,7 @@ defradb client schema migration up --collection [flag -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_schema_patch.md b/docs/cli/defradb_client_schema_patch.md index 796604ff4b..7d16e632ae 100644 --- a/docs/cli/defradb_client_schema_patch.md +++ b/docs/cli/defradb_client_schema_patch.md @@ -39,6 +39,7 @@ defradb client schema patch [schema] [migration] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_schema_set-active.md b/docs/cli/defradb_client_schema_set-active.md index 909e54a925..7f7b4f4cd5 100644 --- a/docs/cli/defradb_client_schema_set-active.md +++ b/docs/cli/defradb_client_schema_set-active.md @@ -24,6 +24,7 @@ defradb client schema set-active [versionID] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_tx.md b/docs/cli/defradb_client_tx.md index f1e38f6b6c..67bf63e2df 100644 --- a/docs/cli/defradb_client_tx.md +++ b/docs/cli/defradb_client_tx.md @@ -19,6 +19,7 @@ Create, commit, and discard DefraDB transactions -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_tx_commit.md b/docs/cli/defradb_client_tx_commit.md index 536fdd1284..eba408dc57 100644 --- a/docs/cli/defradb_client_tx_commit.md +++ b/docs/cli/defradb_client_tx_commit.md @@ -23,6 +23,7 @@ defradb client tx commit [id] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_tx_create.md b/docs/cli/defradb_client_tx_create.md index 7a986e416a..26668e6ad2 100644 --- a/docs/cli/defradb_client_tx_create.md +++ b/docs/cli/defradb_client_tx_create.md @@ -25,6 +25,7 @@ defradb client tx create [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_tx_discard.md b/docs/cli/defradb_client_tx_discard.md index fc0bb2a8db..3989bc4c05 100644 --- a/docs/cli/defradb_client_tx_discard.md +++ b/docs/cli/defradb_client_tx_discard.md @@ -23,6 +23,7 @@ defradb client tx discard [id] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_view.md b/docs/cli/defradb_client_view.md index 3c77088c29..09c5bab11b 100644 --- a/docs/cli/defradb_client_view.md +++ b/docs/cli/defradb_client_view.md @@ -19,6 +19,7 @@ Manage (add) views withing a running DefraDB instance -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_client_view_add.md b/docs/cli/defradb_client_view_add.md index 1e7b94f2b8..b671d8290c 100644 --- a/docs/cli/defradb_client_view_add.md +++ b/docs/cli/defradb_client_view_add.md @@ -29,6 +29,7 @@ defradb client view add [query] [sdl] [transform] [flags] -i, --identity string ACP Identity --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_server-dump.md b/docs/cli/defradb_server-dump.md index ff58487c65..3651d32e9c 100644 --- a/docs/cli/defradb_server-dump.md +++ b/docs/cli/defradb_server-dump.md @@ -18,6 +18,7 @@ defradb server-dump [flags] --allowed-origins stringArray List of origins to allow for CORS requests --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_start.md b/docs/cli/defradb_start.md index 4a4edeaf48..e0f732cb04 100644 --- a/docs/cli/defradb_start.md +++ b/docs/cli/defradb_start.md @@ -22,6 +22,7 @@ defradb start [flags] --allowed-origins stringArray List of origins to allow for CORS requests --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/docs/cli/defradb_version.md b/docs/cli/defradb_version.md index 810d0dc477..b4693fddbf 100644 --- a/docs/cli/defradb_version.md +++ b/docs/cli/defradb_version.md @@ -20,6 +20,7 @@ defradb version [flags] --allowed-origins stringArray List of origins to allow for CORS requests --log-format string Log format to use. Options are text or json (default "text") --log-level string Log level to use. Options are debug, info, error, fatal (default "info") + --log-no-color Disable colored log output --log-output string Log output path. Options are stderr or stdout. (default "stderr") --log-overrides string Logger config overrides. Format ,=,...;,... --log-source Include source location in logs diff --git a/licenses/BSL.txt b/licenses/BSL.txt index 38cf309ebc..64d1d657d6 100644 --- a/licenses/BSL.txt +++ b/licenses/BSL.txt @@ -7,7 +7,7 @@ Parameters Licensor: Democratized Data (D2) Foundation -Licensed Work: DefraDB v0.10.0 +Licensed Work: DefraDB v0.11.0 The Licensed Work is (c) 2023 D2 Foundation. @@ -28,7 +28,7 @@ Additional Use Grant: You may only use the Licensed Work for the -Change Date: 2028-03-08 +Change Date: 2028-05-03 Change License: Apache License, Version 2.0