mirror of
https://github.com/stablyai/orca.git
synced 2026-11-18 11:54:46 +00:00
* refactor(push): organize provider, delivery, and host authentication owners * style(push): brace moved fixture guards and cleanup
22 lines
622 B
TypeScript
22 lines
622 B
TypeScript
import {
|
|
openCloudDatabase,
|
|
openInMemoryCloudDatabase,
|
|
type CloudDatabase,
|
|
type OpenCloudDatabaseInput
|
|
} from '@orca-cloud/cloud-database/cloud-database'
|
|
import { pushSchemaStatements } from './push-schema.js'
|
|
|
|
export async function openPushDatabase(
|
|
input: Omit<OpenCloudDatabaseInput, 'service' | 'schemaStatements'>
|
|
): Promise<CloudDatabase> {
|
|
return await openCloudDatabase({
|
|
...input,
|
|
service: 'push',
|
|
schemaStatements: pushSchemaStatements()
|
|
})
|
|
}
|
|
|
|
export async function openInMemoryPushDatabase(): Promise<CloudDatabase> {
|
|
return await openInMemoryCloudDatabase(pushSchemaStatements())
|
|
}
|