Aller au contenu principal

Connect from any language

Complete hosted setup first. You can use any maintained native driver compatible with the selected engine; no Lordbase-specific SDK is required.

  1. Get the database’s public host, port, native database name and TLS options from connection details.
  2. Create an application database user with the permissions you need. Save the returned username and password.
  3. Configure your driver with these values. If using a URI, encode username/password components correctly and preserve engine-specific query options.
  4. Run a minimal operation: PostgreSQL SELECT 1, a Redis command within your assigned key prefix, or a MongoDB ping.
  5. Add connection timeouts, bounded pooling and error handling before introducing application queries.
EngineDriver exampleExtra configuration
PostgreSQLNode.js pgActual database name and deployment TLS policy
RedisPython redisACL username, database 0, exact key_prefix
MongoDBPython pymongoPreserve authSource, database name and TLS URI options

For other languages, map the same connection fields to your driver’s configuration. Hostnames, ports and engine versions in examples are not promises about your resource. Always read the values for your database.

A connection URI contains a password. Keep it in a server-side environment variable or secret store, never in a frontend bundle or committed config. See application configuration for a reusable layout.