Create a protected database with user authentication
masterTo enable user authentication in a SQLite database, include the _auth argument in your connection string. When _auth is present, the provided _auth_user is created as an admin user. After the initial creation, the _auth parameter can be omitted.
Required arguments when using _auth:
_auth_user: The username to be created as admin._auth_pass: The password for the admin user.
Example connection strings:
- Basic authentication:
file:test.s3db?_auth&_auth_user=admin&_auth_pass=admin - Authentication with SHA1 encoding:
file:test.s3db?_auth&_auth_user=admin&_auth_pass=admin&_auth_crypt=sha1
`file:test.s3db?_auth&_auth_user=admin&_auth_pass=admin`