Apache :: Session :: Store :: postgres

Apache :: Session :: Store :: Postgres può memorizzare dati persistenti in un database di Postgres.
Scarica ora

Apache :: Session :: Store :: postgres Classifica e riepilogo

Annuncio pubblicitario

  • Rating:
  • Licenza:
  • Perl Artistic License
  • Prezzo:
  • FREE
  • Nome editore:
  • Jeffrey William Baker
  • Sito web dell'editore:
  • http://search.cpan.org/~cwest/Apache-Session-1.81/Session/Store/Postgres.pm

Apache :: Session :: Store :: postgres Tag


Apache :: Session :: Store :: postgres Descrizione

Apache :: Session :: Store :: Postgres può memorizzare dati persistenti in un database di Postgres. Apache :: Session :: Store :: Postgres può memorizzare dati persistenti in un database postgres.synopsis usa Apache :: Session :: Store :: Postgres; My $ Store = New Apache :: Session :: Store :: postgres; $ STORE-> Inserisci ($ ref); $ STORE-> AGGIORNAMENTO ($ ref); $ STORE-> Materializza ($ ref); $ STORE-> Rimuovi ($ ref); Apache :: Session :: Store :: Postgres Soddisfa l'interfaccia di archiviazione di Apache :: Session. I dati della sessione sono memorizzati in un database postgres.Schemato Utilizzare questo modulo, è necessario almeno queste colonne in una tabella denominata "sessioni" o un altro nome se si fornisce il parametro TableName. ID Char (32) # o comunque lunghi gli ID di sessione sono. A_Session Text # Questo ha un limite ~ 8 Kb: (Per creare questo schema, è possibile eseguire questo comando utilizzando il programma PSQL: Creare sessioni di tabella (Char ID (32) non NULL chiave primaria, testo A_Session); se si utilizza un altro Comando, assicurarsi che vi sia un indice univoco sulla colonna ID della tabella.ConfigurationIl modulo deve sapere quale datasource, nome utente e password da utilizzare quando si collega al database. Questi valori possono essere impostati utilizzando le opzioni hash (vedere Apache :: Documentazione sessione ). Le opzioni sono: DataSource Nome utente Password Maniglia tabkenameexample: Tie% hash, 'Apache :: Session :: Postgres', $ ID, {DataSource => 'DBI: PG: dbname = Database', username => 'database_User', Password => 'k00l'}; invece, puoi passare in una maniglia DBI già aperta al tuo database. Tie% hash, 'Apache :: sessione :: postgres', $ id, {handle => $ dbh}; Requisiti : · Perl.


Apache :: Session :: Store :: postgres Software correlato