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

Index SPI - types&interfaces, implementation for MySQL #356

Open
wants to merge 33 commits into
base: adapter-v2
Choose a base branch
from

Conversation

Idokah
Copy link
Collaborator

@Idokah Idokah commented Nov 13, 2022

EDIT:
need to fix - ERROR 1170 (42000): BLOB/TEXT column '' used in key specification without a key length
if the column type is text and length is not specified, need to configure the index length.

@Idokah Idokah changed the base branch from master to managed-adapter November 13, 2022 13:58
@Idokah Idokah force-pushed the index-spi branch 2 times, most recently from b75dbe5 to 9c9cec4 Compare December 4, 2022 14:57
@Idokah Idokah requested review from MXPOL and michaelir December 6, 2022 12:38
libs/velo-external-db-types/src/index.ts Outdated Show resolved Hide resolved
return new Promise((resolve, reject) => {
promise.catch((e: any) => {
console.log('failed to create index', e);
this.failedIndexes[index.name] = ({ ...index, status: DomainIndexStatus.FAILED, error: this.translateErrorCodes(e) })
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe extract this to a function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I understand which part?

libs/external-db-mysql/src/mysql_index_provider.ts Outdated Show resolved Hide resolved
libs/external-db-mysql/src/mysql_index_provider.ts Outdated Show resolved Hide resolved
libs/external-db-mysql/src/mysql_index_provider.ts Outdated Show resolved Hide resolved
libs/velo-external-db-core/src/router.ts Outdated Show resolved Hide resolved
* filter by date v3

* remove ts-ignore
michaelir and others added 2 commits December 18, 2022 10:47
* implementing errors spi

* wip

* added some tests

* wip

* changed 400 to 500

* applied pr commesnts

* wip

* use data test support

* fix duplicate item insert test

* lint

Co-authored-by: Ido Kahlon <[email protected]>
@Idokah Idokah added the WIP Work In Progress label Dec 21, 2022
@Idokah Idokah changed the title Index SPI - types&interfaces, implementation for MySQL - WIP Index SPI - types&interfaces, implementation for MySQL Dec 21, 2022
MXPOL and others added 3 commits December 26, 2022 14:59
* feat: new collection related types

* refactor: collection spi update

* feat: list all collection in the new format

* feat: getColumnCapabilitiesFor implementation in MySql

* feat: new type and interface methods

* feat: new collection implementations

* feat: changeColumn mysql implementation

* feat: new collection routes

* feat: some of the functions of the class will be optional

* feat: stream collection api

* test: expect to the right things

* feat: give subtype to field type

* test: new collection e2e tests

* feat: clear cache when refreshing

* tests: delete collection test

* feat: new column compare function and tests

* test: extract some function in class

* refactor: rename function in schema utils

* style: some lint fixes

* style: some lint fixes

* style: some lint fixes

* refactor: extracted function from schema provider

* test: new tests for schema utils

* test: remove unsupported field types from gen

* refactor: deleted old schema routes

* test: disable schema hooks test

* test: disabled test

* test: refactor some tests

* refactor: delete old schema functions

* refactor: extract some internal logic to function

* refactor: removed schemas tests

* refactor: schema import names

* test: schema hooks tests rename and skip

* refactor: lint fixes + extract collection types to a new file

* lint fixes after rebase

* test: new collection update test - change type

* fix: added collection name to catch in change type

* Change float default precision (#380)

* new number column - float ,mysql float- percision (15,2)

* fix unit tests

* test: moved some tests

Co-authored-by: Ido Kahlon <[email protected]>
Co-authored-by: Ido Kahlon <[email protected]>
@Idokah Idokah force-pushed the managed-adapter branch 3 times, most recently from afd93fc to 6f0ce45 Compare February 7, 2023 14:49
@MXPOL MXPOL changed the base branch from managed-adapter to adapter-v2 March 5, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work In Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants