Skip to main content

Installation

  1. Add InsForge dependencies to your project
build.gradle.kts:
  1. Initialize InsForge SDK
  1. Enable Logging (Optional)
For debugging, you can configure the SDK log level:
Use NONE or ERROR in production to avoid exposing sensitive data in logs.

Android Initialization

  1. Add Chrome Custom Tabs dependency to your build.gradle.kts:
  1. Initialize InsForge SDK (With Chrome Custom Tabs and Session Storage)
  1. Use Jetpack DataStore for Session Storage (Optional)

insert()

Insert new records into a table.

Examples


update()

Update existing records in a table.

Examples


delete()

Delete records from a table.

Examples


select()

Query records from a table.

Examples


executeRaw()

Execute SELECT query and return raw JSON array. Use this method when you need to work with dynamic/untyped data, such as queries with joins that return nested objects.

Examples


rpc()

Call PostgreSQL stored functions (RPC - Remote Procedure Call). This method allows you to directly invoke SQL functions defined in your database.

Signature

Parameters

  • functionName (String) - Name of the PostgreSQL function to call
  • args (Map\<String, Any?\>?, optional) - Arguments to pass to the function

Implementation details

  • No arguments: Uses GET request to /api/database/rpc/{functionName}
  • With arguments: Uses POST request with JSON body to /api/database/rpc/{functionName}

Examples

rpcRaw() examples

Use rpcRaw() when the return type is dynamic or unknown at compile time.

Filters


Modifiers