KinterBasDB - how to change the mode: embedded/server

D

durumdara

Hi!

I want to use KinterBasDB in mixed mode: sometimes embedded, sometimes
real local/remote server.
How can I set up the connection to KinterBasDB can determine, what
mode I want to use?

Thanks for your help:
dd
 
D

DarkBlue

Hi!

I want to use KinterBasDB in mixed mode: sometimes embedded, sometimes
real local/remote server.
How can I set up the connection to KinterBasDB can determine, what
mode I want to use?

Thanks for your help:
   dd

you could use 2 connection strings and make the selection yourself as
needed.



e.g.

def kbconnector(connectionmode):

if connectionmode=='use_embedded':
myonnectionstring=.....

elif connectionmode=='use_real':
myconnectionstring=kinterbasdb.connect....

return myconnectionstring


#connect to the embedded server
somemode='use_embedded'
myconnector=kbconnector(somemode)
mycursor=myconnector.cursor()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,174
Messages
2,570,941
Members
47,476
Latest member
blackwatermelon

Latest Threads

Top