Re: [Lazarus] SQLDBRestBridge

2022-11-09 Thread Michael Van Canneyt via lazarus
On Wed, 9 Nov 2022, duilio foschi wrote: we switched to using datatables.net very interesting. Is any sample code available for its use with pas2js? . Hm. I just noticed this was not migrated from our old SVN repo to the Git repo :-/ Luckily I kept a copy of the SVN repos :-) I

Re: [Lazarus] SQLDBRestBridge

2022-11-09 Thread duilio foschi via lazarus
>we switched to using datatables.net very interesting. Is any sample code available for its use with pas2js? . Thank you Peppe On Wed, Nov 9, 2022 at 1:08 PM Michael Van Canneyt via lazarus wrote: > > > > On Tue, 8 Nov 2022, duilio foschi wrote: > > > I am puzzled by TMS Software. > > You

Re: [Lazarus] SQLDBRestBridge

2022-11-09 Thread Michael Van Canneyt via lazarus
On Tue, 8 Nov 2022, duilio foschi wrote: I am puzzled by TMS Software. You are not alone. Your story is recognizable. [snip] I bought TMS Web Core months ago with the idea of quickly write web applications in Lazarus, with a special aim at their TWebGridComponent, but I can say today

Re: [Lazarus] SQLDBRestBridge

2022-11-08 Thread duilio foschi via lazarus
I am puzzled by TMS Software. 1. there is one demo specific for SQLDBRestBridge, but the application is obviously bugged, as you see from the following screenshot https://i.ibb.co/m4wVGtM/2.jpg as a start, the code for the login and logout button is the same, what cannot be 2. the support will

Re: [Lazarus] SQLDBRestBridge

2022-11-07 Thread Michael Van Canneyt via lazarus
On Mon, 7 Nov 2022, duilio foschi wrote: I fixed the code in Lazarus and got a client based on BufDataClient that successfully talks with a restbridge server. As a next step, I'd like to connect to the same server from a TWebForm of TMS Web Core library. Normally, TMS Web Core contains a

Re: [Lazarus] SQLDBRestBridge

2022-11-07 Thread duilio foschi via lazarus
I fixed the code in Lazarus and got a client based on BufDataClient that successfully talks with a restbridge server. As a next step, I'd like to connect to the same server from a TWebForm of TMS Web Core library. I started with a slow step. There is only a TWebHttpRequest in the form (which has

Re: [Lazarus] SQLDBRestBridge

2022-11-06 Thread Michael Van Canneyt via lazarus
On Sun, 6 Nov 2022, duilio foschi wrote: Hi Michael, I am digging into your SQLDBRestBridge component. Very useful code. I could fix and run both the server part and the client part (I used the BufDataset client). My code (with very few changes applied to the original one) can be

Re: [Lazarus] SQLDBRestBridge

2022-11-06 Thread duilio foschi via lazarus
Hi Michael, I am digging into your SQLDBRestBridge component. Very useful code. I could fix and run both the server part and the client part (I used the BufDataset client). My code (with very few changes applied to the original one) can be downloaded from this link:

Re: [Lazarus] SQLDBRestBridge

2022-11-04 Thread Michael Van Canneyt via lazarus
On Thu, 3 Nov 2022, duilio foschi wrote: Please look at the intercept example could you please expand on this? In the http request router, you can register global handlers which are executed for every request. You can choose if the handler is executed before or after the normal handler

Re: [Lazarus] SQLDBRestBridge

2022-11-03 Thread duilio foschi via lazarus
>Please look at the intercept example could you please expand on this? Where do I find the intercept example? Thank you Peppe On Thu, Nov 3, 2022 at 11:17 PM Michael Van Canneyt via lazarus wrote: > > > > On Thu, 3 Nov 2022, duilio foschi wrote: > > > Hi Michael, > > > > I was able to log

Re: [Lazarus] SQLDBRestBridge

2022-11-03 Thread Michael Van Canneyt via lazarus
On Thu, 3 Nov 2022, duilio foschi wrote: Hi Michael, I was able to log the info shown in this pic https://i.ibb.co/f4MJQFJ/1.jpg (I used a rough writeln for now). This is fine when you want to verify the behaviour of the application itself. 1. == Is there a way to have the server log

Re: [Lazarus] SQLDBRestBridge

2022-11-03 Thread duilio foschi via lazarus
Hi Michael, I was able to log the info shown in this pic https://i.ibb.co/f4MJQFJ/1.jpg (I used a rough writeln for now). This is fine when you want to verify the behaviour of the application itself. 1. == Is there a way to have the server log HTTP commands received from the client? Like:

Re: [Lazarus] SQLDBRestBridge

2022-11-03 Thread Michael Van Canneyt via lazarus
On Thu, 3 Nov 2022, duilio foschi via lazarus wrote: I could get client and server talk each other. For the future, it would be nice to have the server (when in debug mode) write a log of commands and data exchanged with the client. This exists already. TRestDispatcherLogOption gives you

[Lazarus] SQLDBRestBridge

2022-11-03 Thread duilio foschi via lazarus
I could get client and server talk each other. For the future, it would be nice to have the server (when in debug mode) write a log of commands and data exchanged with the client. Both inbound and outbound commands/data are needed. I have a hard time figuring out where to insert my code. Any

Re: [Lazarus] SQLDBRestBridge memory consumption attn Michael

2021-12-27 Thread Michael Van Canneyt via lazarus
On Mon, 27 Dec 2021, zeljko wrote: Hi all, fpc-3.2.2, lazarus trunk...found that sqldbrestdispatcher does not free some unused resources, so sqldbrestserver memory alloc grows and after few thousand connections eats more than 1GB of memory. Just found in