xata
XataClient
扩展
DatabaseClient
<DatabaseSchema
>
构造函数
new XataClient(options)
new XataClient(options?): XataClient
参数
参数 | 类型 |
---|---|
options ? | BaseClientOptions |
返回值
重写
DatabaseClient<DatabaseSchema>.constructor
方法
getConfig()
getConfig(): Promise<{
branch: string;
databaseURL: string;
}>
返回值
Promise
<{ branch
: string
; databaseURL
: string
; }>
branch
branch: string;
databaseURL
databaseURL: string;
继承自
DatabaseClient.getConfig
NextauthAccount
属性
access_token?
optional access_token: null | string;
expires_at?
optional expires_at: null | number;
id_token?
optional id_token: null | string;
provider?
optional provider: null | string;
providerAccountId?
optional providerAccountId: null | string;
refresh_token?
optional refresh_token: null | string;
scope?
optional scope: null | string;
session_state?
optional session_state: null | string;
token_type?
optional token_type: null | string;
type?
optional type: null | string;
user?
optional user: null | NextauthUserRecord;
NextauthSession
属性
expires?
optional expires: null | Date;
sessionToken?
optional sessionToken: null | string;
user?
optional user: null | NextauthUserRecord;
NextauthUser
属性
email?
optional email: null | string;
emailVerified?
optional emailVerified: null | Date;
image?
optional image: null | string;
name?
optional name: null | string;
NextauthUsersAccount
属性
account?
optional account: null | NextauthAccountRecord;
user?
optional user: null | NextauthUserRecord;
NextauthUsersSession
属性
session?
optional session: null | NextauthSessionRecord;
user?
optional user: null | NextauthUserRecord;
NextauthVerificationToken
属性
expires?
optional expires: null | Date;
identifier?
optional identifier: null | string;
token?
optional token: null | string;
DatabaseSchema
type DatabaseSchema: {
nextauth_accounts: NextauthAccountRecord;
nextauth_sessions: NextauthSessionRecord;
nextauth_users: NextauthUserRecord;
nextauth_users_accounts: NextauthUsersAccountRecord;
nextauth_users_sessions: NextauthUsersSessionRecord;
nextauth_verificationTokens: NextauthVerificationTokenRecord;
};
类型声明
nextauth_accounts
nextauth_accounts: NextauthAccountRecord;
nextauth_sessions
nextauth_sessions: NextauthSessionRecord;
nextauth_users
nextauth_users: NextauthUserRecord;
nextauth_users_accounts
nextauth_users_accounts: NextauthUsersAccountRecord;
nextauth_users_sessions
nextauth_users_sessions: NextauthUsersSessionRecord;
nextauth_verificationTokens
nextauth_verificationTokens: NextauthVerificationTokenRecord;
NextauthAccountRecord
type NextauthAccountRecord: NextauthAccount & XataRecord;
NextauthSessionRecord
type NextauthSessionRecord: NextauthSession & XataRecord;
NextauthUserRecord
type NextauthUserRecord: NextauthUser & XataRecord;
NextauthUsersAccountRecord
type NextauthUsersAccountRecord: NextauthUsersAccount & XataRecord;
NextauthUsersSessionRecord
type NextauthUsersSessionRecord: NextauthUsersSession & XataRecord;
NextauthVerificationTokenRecord
type NextauthVerificationTokenRecord: NextauthVerificationToken & XataRecord;