Fastdb learning notes

xiaoxiao2021-04-07  334

Fastdb learning notes

These days have been learning FASTDB's use, write some learning experience and notes for your reference!

1, register_in () macro cannot be used in the main function; 2, the update and deleting the cursor is UpdateCurrsor, the other is a general currsor; 3, the current value of the cursor is the object of the current query. 4, client server structure The program needs to use the CLI interface, and the program contains CLI.LIB5. If you use fastdb.lib in CBuilder, the OMF format problem is used directly, and the files in all src directories (several CPPs can be found from the name of other platforms or use Don't be able to add to a CBUILDER's lib engineering, then Build generate fastdb.lib can solve this problem. This problem may also occur when using the CLI, as the upper side, CLI.cpp, cgistub.cpp , repsock.cpp, stdtp.cpp, w32sock.cpp Add to a lib engineering, generate CLI.Lib to solve the problem. 6, shared Classes between different databases, first define the class, use the register_unassigned () registration class, use When the cursor has a pointer you want to fame as a parameter. Use this to identify the database you want to operate. If you want to insert the data, the insert () function is a member of a Database class. With this identification Inserted database. 7, FASTDB class (that is, the data member of the table must be a public), otherwise the outside is not accessible. 8, the field of the FastDB table can be a nested structure or a dynamic growth array type. And the table There is a method .9, fastdb supports the AutoInCrement field, the int4 type can declare the autocrement.10 in Descriptor, using fastdb yourself's export command to guide the memory database into an XML file .11, fastdb Inverse Reference guaranteed The data is referenced when you delete records in the database. When you delete records in the database, INVERSE REFERENCE automatically updates. 12, FASTDB1.20 supports Cascade deletes, as long as the corresponding field is declared as Owner. If included Reference's field is Owner, this field is also declared at the same time.

转载请注明原文地址:https://www.9cbs.com/read-132434.html

New Post(0)