Search found 55 matches
- 11.09.2022, 01:35
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Problem with malformed json using sqlite
- Replies: 2
- Views: 401
Re: Problem with malformed json using sqlite
Thanks for your reply.
- 10.09.2022, 10:43
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: Problem with malformed json using sqlite
- Replies: 2
- Views: 401
Problem with malformed json using sqlite
I have a sqlite table with ID and DATA (Text, to store json data) fields as follows: ID DATA 1 [1,2,3] 2 ["1","2","3"] 3 [1,2,3, [4,5,6]] 4 [1,2,3,{"AA":4, "BB":5, "CC":6}] 5 [1,2,3 6 [1] 7 {"AA":1} When I query (using TZQuery) th...
- 21.08.2022, 05:16
- Forum: Lazarus / Freepascal
- Topic: Encrypt/decrypt database with wsSQlite /Lazarus
- Replies: 19
- Views: 1514
Re: Encrypt/decrypt database with wsSQlite /Lazarus
I have updated and tested my amendment for the latest version of zeoslib (Merged revision(s) 7863 from branches/8.0-patches).
The modified file (ZDbcSqLite.pas) is available at :- https://github.com/kjteng/zeoslib/tree/main/ZDbcSqLite
The older version has been renamed to ZDbcSqLite2.pas
The modified file (ZDbcSqLite.pas) is available at :- https://github.com/kjteng/zeoslib/tree/main/ZDbcSqLite
The older version has been renamed to ZDbcSqLite2.pas
- 15.12.2021, 01:33
- Forum: Lazarus / Freepascal
- Topic: Encrypt/decrypt database with wsSQlite /Lazarus
- Replies: 19
- Views: 1514
Re: Encrypt/decrypt database with wsSQlite /Lazarus
Hi aehimself: Thanks for the pointer on the github procedures. The pragma codes will not works if it is put in before connect or after connect. By trial and error, I found that wxSqlite decryption works only if the pragma statements are called after 'FPlainDriver.sqlite3_open(....)' but before the '...
- 14.12.2021, 10:39
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: dbmemo/dbgrid problem
- Replies: 5
- Views: 558
Re: dbmemo/dbgrid problem
Hmmm - could you please check what happens if you disable the ZFields? I am not sure wether that has to happen in the Zeos.inc or in the properties of the dataset though... You mean set the DisableZFields ? I tried ...same outcome whether disableZFields is True or False. The change in memofield wou...
- 14.12.2021, 02:44
- Forum: Lazarus / Freepascal
- Topic: Encrypt/decrypt database with wsSQlite /Lazarus
- Replies: 19
- Views: 1514
Re: Encrypt/decrypt database with wsSQlite /Lazarus
Nice :) Unfortunately I don't have a license for SEE. So all we can do for now is to hope that we get everything right. Some questions though: - Is this change part of your file on github? - Any chance for you to clone Zeos on Github and make the changes there? ;) Best regards, Jan - Yes. I have up...
- 12.12.2021, 09:39
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: dbmemo/dbgrid problem
- Replies: 5
- Views: 558
Re: dbmemo/dbgrid problem
Ya, if I have add a line 'fields[x].asString := fields[x].asString (x is another field) then the memofield will be updated.
Is there a bug somewhere?
Is there a bug somewhere?
- 12.12.2021, 06:30
- Forum: Lazarus / Freepascal
- Topic: Encrypt/decrypt database with wsSQlite /Lazarus
- Replies: 19
- Views: 1514
Re: Encrypt/decrypt database with wsSQlite /Lazarus
OK. I have made further changes to cater for SEE Sqlite. User for SEE Squlite should leave the Info.value['Cipher'] empty and include the cipher type as part of the key e.g. aes256:mykey, rc4:mykey etc to comply with SEE format. My problem now: SEE extension of Sqlite is not public dormain (i.e. nee...
- 22.11.2021, 05:16
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: dbmemo/dbgrid problem
- Replies: 5
- Views: 558
dbmemo/dbgrid problem
I noticed that changes in dbmemo are not saved when I moved to another record (in dbgrid). This happens if I am using Tzquery/TzMemtable (but not when I am using TMemDataset or Tdbf component).
Attached is the demo file.
Attached is the demo file.
- 21.11.2021, 08:25
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtableExt - helper class for zMemTable
- Replies: 2
- Views: 197
Re: zMemtableExt - helper class for zMemTable
Hi aehimself:
Thank you so much for your valuable feedback.
I have made the necessary changes based on your advice. I used array of integer instead of TArray<Integer> because I am not familiar with the use of generic type (and will study further on this subject).
Regards,
kjteng
Thank you so much for your valuable feedback.
I have made the necessary changes based on your advice. I used array of integer instead of TArray<Integer> because I am not familiar with the use of generic type (and will study further on this subject).
Regards,
kjteng
- 20.11.2021, 16:56
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemTable - remove fields and unwanted records
- Replies: 12
- Views: 651
Re: zMemTable - remove fields and unwanted records
- 20.11.2021, 16:53
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtableExt - helper class for zMemTable
- Replies: 2
- Views: 197
zMemtableExt - helper class for zMemTable
This is a helper class for zMemTable developed for my personal project. I have and made it (with demo program) available at https://github.com/kjteng/zMemTableExt Methods implemented (using zstream.pas to compress the data) procedure SaveToBlob(BField: TBlobField); procedure LoadFromBlob(BField: TBl...
- 18.11.2021, 00:05
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemTable - remove fields and unwanted records
- Replies: 12
- Views: 651
- 17.11.2021, 11:56
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemTable - remove fields and unwanted records
- Replies: 12
- Views: 651
Re: zMemTable - remove fields and unwanted records
OK I see your point. Thank you for the valuable advice.
Where can I find ZMemTableUtils.pas ?
- 17.11.2021, 04:21
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemTable - remove fields and unwanted records
- Replies: 12
- Views: 651
Re: zMemTable - remove fields and unwanted records
Hi kjteng, all, You can operate between many different ZMemTable. It would be more interesting and relatively simple to write/read parts (from-to) of the ZMemTable to/from disk, and merge data. Though it might actually be useful to copy the definitions of the specified fields and data to the ZMemTa...