Skip to content

Change SQLite file password #252

Closed
ghost opened this Issue Dec 5, 2013 · 4 comments

1 participant

@ghost
ghost commented Dec 5, 2013

Hey,
how can I change the password of the SQLite file?

UsingFileWithPassword("File", "Mypass")
connection.ChangePassword("Mypass");

Greetings

@chester89
Collaborator

Are you sure you want this done via Fluent NHibernate? maybe that's RDBMS concern?

@ghost
ghost commented Dec 5, 2013

Yes, the SQLite file is created by SchemaExport().Create. There must be a way to change the password of the file.

@chester89
Collaborator
@ghost
ghost commented Dec 5, 2013

.Create creates the SQLite file first if it does not exist yet.

Fluently.Configure()ExposeConfiguration(Sub(cfg) SE(cfg))

Private Sub SE(cfg As NHibernate.Cfg.Configuration)
    Dim se As New SchemaExport(cfg)
    se.Create(True, True)
End Sub
@chester89 chester89 closed this Jan 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.