xdenser / node-firebird-libfbclient

Firebird SQL binding
MIT License
82 stars 34 forks source link

creating an embedded database? #44

Open yinso opened 9 years ago

yinso commented 9 years ago

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

mariuz commented 9 years ago

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

yinso commented 9 years ago

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?

mariuz commented 9 years ago

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

nofear87 commented 8 years ago

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