Exchange of databases?

It seems that the goal of many ORM tools and user data access layers (DAO template, etc.) is to abstract the database to such an extent that you could change the entire database system with minimal work.

Following common DAL patterns is usually a good idea in the code, but it seems like there will never be minimal work to replace the database. (Cost, training, data migration, etc.)

Does anyone have experience replacing one database with another in a large system and solving code problems? Should you worry about abstracting the actual database from your code?

+3
source share
4 answers

1: - ?

, . Delphi MS Access. SQL Server. , . . , - .

, :

  • MS Access .
  • MS Access . MS Access Access , . . Client < > Server < > MS Access. MS Access. MS Access. MS Access. : MS Access , - , , MS Access - 10 .

, :

  • SQL: (SELECT, UPDATE, DELETE, INSERT, CREATE TABLE) , SQL. , ( , , , , , , , , () ..).
  • . . 200 . .
  • : . .
  • : , , . . , . .
  • : . "" , .

2: ?

. . , . SQL, . , , , . , . . . .

+2

, , , , ORM, .

ORM, . - ? .

+2

, , HSQL Oracle . ORM .

DAO ( - - ).

ORM , , - .

, - ORM, , , .. . , - , SQL, .

+1

, ( ORM) - , . , , .

, MySQL ( ), , Oracle. , .

, ORM , , . , , , - , , ORM-, - .

+1

Source: https://habr.com/ru/post/1703626/


All Articles