node-firebird-libfbclient icon indicating copy to clipboard operation
node-firebird-libfbclient copied to clipboard

creating an embedded database?

Open yinso opened this issue 10 years ago • 4 comments

Is it possible to create an embedded database via libfbclient, like in sqlite?

yinso avatar Dec 12 '14 01:12 yinso

In firebird 3 libfbclient can also open databases like libfbembed does (libfbembed and libfbclient are one)

In firebird 2.5 you need to do some small tweaks and rebuild it

https://groups.google.com/d/msg/nodejs/IoRlz2hT24I/K0bjHT-YhKgJ

mariuz avatar Jan 12 '15 13:01 mariuz

Sorry I wasn't clear.

With sqlite - you can create a database file at the moment you open it.

i.e. var db = sqlite.open("/new/database/path"); // before this line the database file doesn't exist.

Can the same be done with firebird?

yinso avatar Jan 27 '15 19:01 yinso

create_database api can be implemented similar to this example

http://www.sqlapi.com/HowTo/native_api.html

This is how create_database was implemeted also in python driver

http://pythonhosted.org/fdb/reference.html#functions

mariuz avatar Feb 23 '15 18:02 mariuz

there is no fbembedded.lib in /lib folder? So just replace the linking in binding.gyp will not work out of the box?

nofear87 avatar Apr 29 '16 08:04 nofear87