profile
viewpoint
Leonardo Falk leonardofalk Compasso UOL Erechim/RS - Brazil

issue commenttypeorm/typeorm

Between Operators keep find Operation lasting forever

I think it's not in the docs but the example:

https://github.com/typeorm/react-native-example/blob/master/src/App.tsx#L16

jawil003

comment created time in 10 hours

issue commenttypeorm/typeorm

Between Operators keep find Operation lasting forever

From what I know, typeorm uses NodeJS stuff, typeorm/browser is for the browser and ReactNative runtime is more or like it.

@imnotjames RN uses metro bundler instead.

jawil003

comment created time in 11 hours

issue commenttypeorm/typeorm

Between Operators keep find Operation lasting forever

Nope, you must import everything

jawil003

comment created time in 11 hours

issue commenttypeorm/typeorm

Between Operators keep find Operation lasting forever

I think the problem is because you're importing from 'typeorm', you should use 'typeorm/browser'.

jawil003

comment created time in 11 hours

issue commenttypeorm/typeorm

Delete cache with prefix

I think the best way is to use redis commands to achieve what you want. Depending on redis lib, I think it'd be more or like this:

redis.scan('list_cache_*').then(keys => redis.unlink(keys))
hunglee

comment created time in a day

issue commenttypeorm/typeorm

Provide custom drivers support and split different databases into sub-packages

I guess I could lend some help on number 2, with a monorepo structure the path is more clear to a extensible driver factory.

pleerock

comment created time in a day

push eventleonardofalk/typeorm

Leonardo Falk

commit sha 37f0d8f7938ee5dbcf899a7f2855ea6dc6dc604e

fix: ILike operator generally available for any driver (#6945)

view details

Ilyas Foo

commit sha 7ec1b75f12832e4d99e1ed0cef40755f2b6d650a

fix: TreeRepository based entities primary column supports custom name. (#6942) Previously "id" was hardcoded, thus errors when an entity has a custom primary column name other than "id". Now it fetches the column name from metadata instead.

view details

James Ward

commit sha 9a0497b533b2f6896b8e7d189b36dd3892e58007

fix: support combination of many-to-one/cacade/composte PK (#6417) handle setting values deeply in entities with relations in ColumnMetadata, also check for a virtual relationship column in rawsqlresultstoentitytransformer this allows us to handle a case where `many-to-one` with explicit composite PKs columns were failing to persist a second time- instead of correctly updating the field they would cause an insert to occur leading to a unique PK constraint error

view details

Abdüssamet Özay

commit sha d624ca3b4efa7bbffe4802d04c5950aa5ac1e488

docs: update usage-with-javascript.md (#6952)

view details

push time in a day

startedhelfer/graphql-disable-introspection

started time in 2 days

started4Catalyzer/graphql-validation-complexity

started time in 2 days

startedturicas/eleicoes-brasil

started time in 2 days

startedMando75/typeorm-graphql-loader

started time in 2 days

pull request commenttypeorm/typeorm

fix: ILike operator generally available for any driver

Thanks guys!

leonardofalk

comment created time in 2 days

push eventleonardofalk/typeorm

Leonardo Falk

commit sha 67ef0892a5aa99dcae9aab51cf775f6ecc7fef47

fix: ILike operator generally available for any driver

view details

push time in 2 days

PullRequestReviewEvent

Pull request review commenttypeorm/typeorm

fix: ILike operator generally available for any driver

 export abstract class QueryBuilder<Entity> {             case "equal":                 return `${aliasPath} = ${parameters[0]}`;             case "ilike":-                return `${aliasPath} ILIKE ${parameters[0]}`;+                if (this.connection.driver instanceof PostgresDriver) {+                    return `${aliasPath} ILIKE ${parameters[0]}`;+                }++                return `UPPER(${aliasPath}) LIKE UPPER(${parameters[0]})`;

Also, this is exactly how hibernate works:

https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/criterion/LikeExpression.java

https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/criterion/IlikeExpression.java

leonardofalk

comment created time in 2 days

Pull request review commenttypeorm/typeorm

fix: ILike operator generally available for any driver

 export abstract class QueryBuilder<Entity> {             case "equal":                 return `${aliasPath} = ${parameters[0]}`;             case "ilike":-                return `${aliasPath} ILIKE ${parameters[0]}`;+                if (this.connection.driver instanceof PostgresDriver) {+                    return `${aliasPath} ILIKE ${parameters[0]}`;+                }++                return `UPPER(${aliasPath}) LIKE UPPER(${parameters[0]})`;

Doesn't look good, I don't know if it could be more performant, but it sound like we're lying to the dev that just wanted to do x ILIKE y.

leonardofalk

comment created time in 2 days

PullRequestReviewEvent

PR opened typeorm/typeorm

fix: ILike operator generally available for any driver

https://github.com/typeorm/typeorm/issues/4418

+6 -7

0 comment

2 changed files

pr created time in 2 days

create barnchleonardofalk/typeorm

branch : ilike-proposal

created branch time in 2 days

fork leonardofalk/typeorm

ORM for TypeScript and JavaScript (ES7, ES6, ES5). Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.

http://typeorm.io

fork in 2 days

issue commenttypeorm/typeorm

ILIKE find operator

@kendallroth I think the latest release isn't exactly as master, this happened before.

The problem with the current implementation it only works with PostgreSQL.

My personal take on this:

...
case "ilike":
  if (this.connection.driver instanceof PostgresqlDriver) {
    return `${aliasPath} ILIKE ${parameters[0]}`;
  }

  return `UPPER(${aliasPath}) LIKE UPPER(${parameters[0]})`;
ivanveselin

comment created time in 2 days

startedtuananh/camaro

started time in 9 days

startedis-a-dev/register

started time in 14 days

startederiklindernoren/ML-From-Scratch

started time in 15 days

issue commentyuzu-emu/yuzu

Pokemon Sword Issue

@Gratox

It freezes for me at this exact place in the DLC. You can bypass by loading a previous save and trying again, although I think it's impossible to finish the DLC now. At the title screen, where you press A to start the game, press UP + X + B instead and load the backup save.

Gratox

comment created time in 18 days

starteddhershman1/phone-fns

started time in 18 days

startedtonivj5/typeorm-naming-strategies

started time in 22 days

startedmingrammer/diagrams

started time in 23 days

starteddiscord/focus-layers

started time in 23 days

startedtensorflow/tensorflow

started time in 25 days

startedsaadmk11/changelog-ci

started time in 25 days

starteddouglasdeoliveira/react-micro-frontends

started time in a month

startedhappykit/flags

started time in a month

startedmateusnava/kombi-iot

started time in a month

startedandrewiggins/collect-react-stats

started time in a month

startedzapplebee/perenv.macro

started time in a month

startedoctoproject/octo-cli

started time in a month

startednikhil-malviya/awesome-recoil

started time in a month

startedserverscom/recoil-form

started time in a month

startedautomation-stack/node-machine-id

started time in a month

startedserverscom/recoil-form

started time in a month

startedisaacs/node-lru-cache

started time in a month

startedDmitryTsepelev/graphql-ruby-persisted_queries

started time in a month

startedsoldair/node-qrcode

started time in 2 months

startedkitze/react-genie

started time in 2 months

startedsquare/rails-auth

started time in 2 months

startedairbnb/ts-migrate

started time in 2 months

startedpiotrmurach/strings

started time in 2 months

startednrwl/nx

started time in 2 months

startedphil-r/react-native-looped-carousel

started time in 2 months

startedreact-workspaces/react-workspaces-playground

started time in 2 months

starteddanielgatis/puppeteer-recaptcha-solver

started time in 2 months

startedexcid3/noticed

started time in 3 months

startedrahuldkjain/github-profile-readme-generator

started time in 3 months

startedcoderoad/coderoad-vscode

started time in 3 months

startedreactos/reactos

started time in 3 months

startedPaddlePaddle/PaddleOCR

started time in 3 months

startedveeral-patel/how-to-secure-anything

started time in 3 months

startedkevinsqi/react-piano

started time in 3 months

starteddorny/paths-filter

started time in 3 months

startednighto/brasil-portugal

started time in 3 months

startedfirecracker-microvm/firecracker

started time in 3 months

started4lejandrito/react-guitar

started time in 3 months

startedgcanti/fp-ts

started time in 3 months

startedhwayne/awesome-cold-showers

started time in 3 months

startedbkuhlmann/versionaire

started time in 3 months

more