Andy Wermke

Results 447 comments of Andy Wermke

Sorry, your reply must have slipped through. Ahh, now I get it. You essentially want to have a method on the pool that returns the (eventual) worker count, right?

@EmmanuelAAM Thanks for the kind words! I'm afraid this is on hold as there seemed to be limited interest and I currently don't have extra time to spend on it.

Checked it out, but couldn't really see why it exists. Then I discovered the link to https://reactjs.org/docs/hooks-faq.html#how-to-read-an-often-changing-value-from-usecallback and read that. Now it made a bit more sense, but the React...

Thanks, @neves! > deps default to [] Yeah, let's openly discuss that. I was thinking about a default in the beginning, but then figured that it might be better to...

> How can you measure that the overhead in memo is faster then a component rerender that justify the use of it? Good question. You can benchmark the performance of...

> `memo.textChange(event => setValue(event.target.value), [setValue])` Yes, that's what I wanted to discuss: Explicit version (as it is right now) vs. implicit, but maybe a little more convenient 😉 > Maybe...

Once more, sorry for the delayed response. Yes, postguard *should* handle that (I would expect it to). I am not sure if postguard checks static values in queries, since it's...

> Is it possible to use this for validating plain SQL and not postgres sql? Since Postgres' SQL dialect is just a superset of "vanilla" SQL, there should be no...

@gregplaysguitar Yeah, that would be great! Shouldn't be too hard either, now as I think about it… Just not sure if I will have time to work on it anytime...

@gregplaysguitar You can have a look at: - [`parseTableDefinition()` in `src/babel/parse-table-definition.ts`](https://github.com/andywer/postguard/blob/master/src/babel/parse-table-definition.ts): It takes a piece of source code parsed by Babel and returns a `TableSchema` - [`src/postgres/parse-pg-query.ts`](https://github.com/andywer/postguard/blob/master/src/postgres/parse-pg-query.ts): Here you can...