DMPersistence.lfm 895 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. object Persistence: TPersistence
  2. OldCreateOrder = False
  3. Height = 150
  4. HorizontalOffset = 340
  5. VerticalOffset = 119
  6. Width = 330
  7. object SQLConnector: TSQLConnector
  8. Connected = False
  9. LoginPrompt = False
  10. DatabaseName = '../../DB/DataBase.sqlite3'
  11. KeepConnection = False
  12. Transaction = SQLTransaction
  13. ConnectorType = 'SQLite3'
  14. Left = 56
  15. Top = 40
  16. end
  17. object SQLTransaction: TSQLTransaction
  18. Active = False
  19. Database = SQLConnector
  20. Left = 160
  21. Top = 40
  22. end
  23. object SQLQuery: TSQLQuery
  24. FieldDefs = <>
  25. Database = SQLConnector
  26. Transaction = SQLTransaction
  27. SQL.Strings = (
  28. 'SELECT * FROM persons'
  29. )
  30. UpdateSQL.Strings = (
  31. 'UPDATE persons SET name = :name WHERE id = :id'
  32. )
  33. DeleteSQL.Strings = (
  34. 'DELETE FROM persons WHERE id = :OLD_id'
  35. )
  36. Params = <>
  37. Left = 256
  38. Top = 40
  39. end
  40. end